Searched refs:stride (Results 1 - 25 of 137) sorted by relevance

123456

/frameworks/rs/tests/cppstrided/
H A Dcompute.cpp13 uint32_t stride = 1025; local
18 printf("stride must be greater than or equal to 1024\n");
21 stride = (uint32_t) tempStride;
40 uint32_t* buf = (uint32_t*) malloc(stride * numElems * sizeof(uint32_t));
48 *(buf+(stride*i)+ct) = (uint32_t)ct + (i * numElems);
52 ain->copy2DStridedFrom(buf, stride * sizeof(uint32_t));
56 aout->copy2DStridedTo(buf, stride * sizeof(uint32_t));
60 if (*(buf+(stride*i)+ct) != (uint32_t)(ct + (i * numElems)) * 2) {
61 printf("Mismatch at location %d, %d: %u\n", i, ct, *(buf+(stride*i)+ct));
67 printf("Test successful with %u stride!\
[all...]
/frameworks/native/opengl/libs/GLES_CM/
H A Dgl.cpp42 GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
44 GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
47 GLsizei stride, const GLvoid *pointer, GLsizei count);
49 GLsizei stride, const GLvoid *pointer, GLsizei count);
51 GLsizei stride, const GLvoid *pointer, GLsizei count);
53 GLsizei stride, const GLvoid *pointer, GLsizei count);
55 GLsizei stride, const GLvoid *pointer, GLsizei count);
58 void glColorPointerBounds(GLint size, GLenum type, GLsizei stride, argument
60 glColorPointer(size, type, stride, ptr);
62 void glNormalPointerBounds(GLenum type, GLsizei stride, argument
66 glTexCoordPointerBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei count) argument
70 glVertexPointerBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei count) argument
75 glPointSizePointerOESBounds(GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei count) argument
80 glMatrixIndexPointerOESBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei count) argument
85 glWeightPointerOESBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei count) argument
[all...]
/frameworks/native/opengl/libagl/
H A Ddxt.h29 void *surface, int stride, int format);
H A Dmipmap.cpp52 int stride = w; local
53 int bs = base->stride;
74 dst[x + y*stride] = rgb;
94 dst[x + y*stride] = (r<<11)|(g<<6)|(b<<1)|a;
121 dst[x + y*stride] = rgba;
140 stride *= skip;
149 dst[x + y*stride + c] = (p00 + p10 + p01 + p11) >> 2;
172 dst[x + y*stride] = rgba;
/frameworks/compile/libbcc/lib/Renderscript/runtime/
H A Drs_allocation.c117 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; \
118 *((T*)&p[(eSize * x) + (y * stride)]) = val; \
124 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; \
126 uint8_t *dp = &p[(sizeof(T) * x) + (y * stride) + (z * stride * dimY)]; \
139 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; \
140 return *((T*)&p[(sizeof(T) * x) + (y * stride)]); \
167 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
176 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
193 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
202 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
263 const uint32_t stride = alloc->mHal.drvState.lod[1].stride; local
291 const uint32_t stride = alloc->mHal.drvState.lod[2].stride; local
299 const uint32_t stride = alloc->mHal.drvState.lod[1].stride; local
[all...]
H A Drs_sample.c85 getElementAt1(const uint8_t *p, size_t stride, int32_t x, int32_t y) { argument
86 p += y * stride;
92 getElementAt2(const uint8_t *p, size_t stride, int32_t x, int32_t y) { argument
93 p += y * stride;
100 getElementAt3(const uint8_t *p, size_t stride, int32_t x, int32_t y) { argument
101 p += y * stride;
108 getElementAt4(const uint8_t *p, size_t stride, int32_t x, int32_t y) { argument
109 p += y * stride;
116 getElementAt565(const uint8_t *p, size_t stride, int32_t x, int32_t y) { argument
117 p += y * stride;
189 getSample_A(const uint8_t *p, size_t stride, int locX, int locY, int nextX, int nextY, float w0, float w1, float w2, float w3) argument
202 getSample_L(const uint8_t *p, size_t stride, int locX, int locY, int nextX, int nextY, float w0, float w1, float w2, float w3) argument
215 getSample_LA(const uint8_t *p, size_t stride, int locX, int locY, int nextX, int nextY, float w0, float w1, float w2, float w3) argument
228 getSample_RGB(const uint8_t *p, size_t stride, int locX, int locY, int nextX, int nextY, float w0, float w1, float w2, float w3) argument
241 getSample_RGBA(const uint8_t *p, size_t stride, int locX, int locY, int nextX, int nextY, float w0, float w1, float w2, float w3) argument
253 getSample_565(const uint8_t *p, size_t stride, int locX, int locY, int nextX, int nextY, float w0, float w1, float w2, float w3) argument
324 size_t stride = alloc->mHal.drvState.lod[lod].stride; local
392 size_t stride = alloc->mHal.drvState.lod[lod].stride; local
[all...]
/frameworks/rs/driver/
H A DrsdVertexArray.cpp48 stride = 0;
54 void RsdVertexArray::Attrib::set(uint32_t type, uint32_t size, uint32_t stride, argument
62 this->stride = stride;
70 ALOGV("va %i: slot=%i name=%s buf=%i ptr=%p size=%i type=0x%x stride=0x%x norm=%i offset=0x%x",
77 mAttribs[idx].stride,
114 mAttribs[ct].stride,
H A DrsdVertexArray.h40 uint32_t stride; member in class:RsdVertexArray::Attrib
46 void set(uint32_t type, uint32_t size, uint32_t stride, bool normalized, uint32_t offset, const char *name);
H A DrsdAllocation.cpp97 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride;
98 ptr += yoff * alloc->mHal.drvState.lod[lod].stride;
263 state->lod[2].stride = rsRound(state->lod[0].stride >> 1, 16);
265 (state->lod[0].stride * state->lod[0].dimY);
266 uvSize += state->lod[2].stride * state->lod[2].dimY;
270 state->lod[1].stride = state->lod[2].stride;
272 (state->lod[2].stride * state->lod[2].dimY);
273 uvSize += state->lod[1].stride * stat
301 size_t stride = alloc->mHal.drvState.lod[0].dimX * type->getElementSizeBytes(); local
535 size_t stride = alloc->mHal.state.elementSizeBytes; local
848 rsdAllocationData2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes, size_t stride) argument
899 rsdAllocationData3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) argument
950 rsdAllocationRead2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes, size_t stride) argument
979 rsdAllocationRead3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride) argument
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DETC1.java91 * pixel (x,y) is at pIn + pixelSize * x + stride * y;
98 int pixelSize, int stride, Buffer out);
104 * pixel (x,y) is at pIn + pixelSize * x + stride * y. Must be
110 int width, int height, int pixelSize, int stride);
97 encodeImage(Buffer in, int width, int height, int pixelSize, int stride, Buffer out) argument
109 decodeImage(Buffer in, Buffer out, int width, int height, int pixelSize, int stride) argument
H A DGLES10.java382 // C function void glColorPointer ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer )
387 int stride,
395 int stride,
401 stride,
409 (stride >= 0)) {
945 // C function void glNormalPointer ( GLenum type, GLsizei stride, const GLvoid *pointer )
949 int stride,
956 int stride,
961 stride,
969 (stride >
384 glColorPointerBounds( int size, int type, int stride, java.nio.Buffer pointer, int remaining ) argument
392 glColorPointer( int size, int type, int stride, java.nio.Buffer pointer ) argument
947 glNormalPointerBounds( int type, int stride, java.nio.Buffer pointer, int remaining ) argument
954 glNormalPointer( int type, int stride, java.nio.Buffer pointer ) argument
1138 glTexCoordPointerBounds( int size, int type, int stride, java.nio.Buffer pointer, int remaining ) argument
1146 glTexCoordPointer( int size, int type, int stride, java.nio.Buffer pointer ) argument
1283 glVertexPointerBounds( int size, int type, int stride, java.nio.Buffer pointer, int remaining ) argument
1291 glVertexPointer( int size, int type, int stride, java.nio.Buffer pointer ) argument
[all...]
/frameworks/native/opengl/include/ETC1/
H A Detc1.h62 // pixel (x,y) is at pIn + pixelSize * x + stride * y;
68 etc1_uint32 pixelSize, etc1_uint32 stride, etc1_byte* pOut);
73 // pixel (x,y) is at pIn + pixelSize * x + stride * y. Must be
80 etc1_uint32 pixelSize, etc1_uint32 stride);
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
H A DGL11Ext.java128 int stride,
135 int stride,
142 int stride,
149 int stride,
125 glMatrixIndexPointerOES( int size, int type, int stride, java.nio.Buffer pointer ) argument
132 glMatrixIndexPointerOES( int size, int type, int stride, int offset ) argument
139 glWeightPointerOES( int size, int type, int stride, java.nio.Buffer pointer ) argument
146 glWeightPointerOES( int size, int type, int stride, int offset ) argument
/frameworks/av/libvideoeditor/lvpp/
H A DPreviewRenderer.cpp85 // Provides a buffer and associated stride
97 void PreviewRenderer::getBufferYV12(uint8_t **data, size_t *stride) { argument
116 *stride = mBuf->stride;
H A DPreviewRenderer.h40 void getBufferYV12(uint8_t **data, size_t *stride);
/frameworks/native/include/android/
H A Dbitmap.h46 uint32_t stride; member in struct:__anon1331
H A Dnative_window.h47 int32_t stride; member in struct:ANativeWindow_Buffer
/frameworks/native/libs/gui/tests/
H A DCpuConsumer_test.cpp171 bPtr += y * buf.stride + x;
190 bPtr += y * buf.stride + x;
196 // stride is in pixels, not in bytes
197 uint16_t *bPtr = ((uint16_t*)buf.data) + y * buf.stride + x;
205 bPtr += (y * buf.stride + x) * bytesPerPixel;
220 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride);
224 void fillGreyscaleBuffer(T* buf, int w, int h, int stride, int bpp) { argument
232 // stride is in pixels, not in bytes
233 int yuvTexStrideY = stride;
253 void fillRgba8888Buffer(uint8_t* buf, int w, int h, int stride) argument
280 fillBayerRawBuffer(uint8_t* buf, int w, int h, int stride) argument
483 produceOneFrame(const sp<ANativeWindow>& anw, const CpuConsumerTestParams& params, int64_t timestamp, uint32_t *stride) argument
552 uint32_t stride; local
587 uint32_t stride[numInQueue]; local
629 uint32_t stride; local
[all...]
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A Dcommon.cpp23 GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
25 GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
28 GLsizei stride, const GLvoid *pointer, GLsizei count);
30 GLsizei stride, const GLvoid *pointer, GLsizei count);
32 GLsizei stride, const GLvoid *pointer, GLsizei count);
34 GLsizei stride, const GLvoid *pointer, GLsizei count);
36 GLsizei stride, const GLvoid *pointer, GLsizei count);
40 GLboolean normalized, GLsizei stride, const GLvoid *pointer, GLsizei count) {
41 glVertexAttribPointer(indx, size, type, normalized, stride, pointer);
46 GLsizei stride, cons
39 glVertexAttribPointerBounds(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer, GLsizei count) argument
45 glVertexAttribIPointerBounds(GLuint indx, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei count) argument
[all...]
/frameworks/base/opengl/java/com/google/android/gles_jni/
H A DGLImpl.java196 // C function void glColorPointer ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer )
201 int stride,
209 int stride,
215 stride,
223 (stride >= 0)) {
770 // C function void glNormalPointer ( GLenum type, GLsizei stride, const GLvoid *pointer )
774 int stride,
781 int stride,
786 stride,
794 (stride >
198 glColorPointerBounds( int size, int type, int stride, java.nio.Buffer pointer, int remaining ) argument
206 glColorPointer( int size, int type, int stride, java.nio.Buffer pointer ) argument
772 glNormalPointerBounds( int type, int stride, java.nio.Buffer pointer, int remaining ) argument
779 glNormalPointer( int type, int stride, java.nio.Buffer pointer ) argument
963 glTexCoordPointerBounds( int size, int type, int stride, java.nio.Buffer pointer, int remaining ) argument
971 glTexCoordPointer( int size, int type, int stride, java.nio.Buffer pointer ) argument
1108 glVertexPointerBounds( int size, int type, int stride, java.nio.Buffer pointer, int remaining ) argument
1116 glVertexPointer( int size, int type, int stride, java.nio.Buffer pointer ) argument
1232 glColorPointer( int size, int type, int stride, int offset ) argument
1543 glNormalPointer( int type, int stride, int offset ) argument
1595 glPointSizePointerOESBounds( int type, int stride, java.nio.Buffer pointer, int remaining ) argument
1602 glPointSizePointerOES( int type, int stride, java.nio.Buffer pointer ) argument
1622 glTexCoordPointer( int size, int type, int stride, int offset ) argument
1715 glVertexPointer( int size, int type, int stride, int offset ) argument
1827 glMatrixIndexPointerOESBounds( int size, int type, int stride, java.nio.Buffer pointer, int remaining ) argument
1835 glMatrixIndexPointerOES( int size, int type, int stride, java.nio.Buffer pointer ) argument
1862 glMatrixIndexPointerOES( int size, int type, int stride, int offset ) argument
1871 glWeightPointerOESBounds( int size, int type, int stride, java.nio.Buffer pointer, int remaining ) argument
1879 glWeightPointerOES( int size, int type, int stride, java.nio.Buffer pointer ) argument
1896 glWeightPointerOES( int size, int type, int stride, int offset ) argument
[all...]
/frameworks/native/opengl/tools/glgen/specs/gles11/
H A DGLES11.spec7 void glColorPointer ( GLint size, GLenum type, GLsizei stride, GLint offset )
31 void glNormalPointer ( GLenum type, GLsizei stride, GLint offset )
36 void glPointSizePointerOES ( GLenum type, GLsizei stride, const GLvoid *pointer )
37 void glTexCoordPointer ( GLint size, GLenum type, GLsizei stride, GLint offset )
44 void glVertexPointer ( GLint size, GLenum type, GLsizei stride, GLint offset )
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java721 * @param stride Number of colors in the array between rows (must be >=
731 public static Bitmap createBitmap(int colors[], int offset, int stride, argument
733 return createBitmap(null, colors, offset, stride, width, height, config);
746 * @param stride Number of colors in the array between rows (must be >=
757 int offset, int stride, int width, int height, Config config) {
760 if (Math.abs(stride) < width) {
761 throw new IllegalArgumentException("abs(stride) must be >= width");
763 int lastScanline = offset + (height - 1) * stride;
772 Bitmap bm = nativeCreate(colors, offset, stride, width, height,
1121 * a packed int representing a {@link Color}. The stride paramete
756 createBitmap(DisplayMetrics display, int colors[], int offset, int stride, int width, int height, Config config) argument
1142 getPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1182 checkPixelsAccess(int x, int y, int width, int height, int offset, int stride, int pixels[]) argument
1256 setPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1401 nativeCreate(int[] colors, int offset, int stride, int width, int height, int nativeConfig, boolean mutable) argument
1419 nativeGetPixels(int nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1425 nativeSetPixels(int nativeBitmap, int[] colors, int offset, int stride, int x, int y, int width, int height) argument
[all...]
/frameworks/av/media/libstagefright/colorconversion/
H A DSoftwareRenderer.cpp164 buf->stride, buf->height,
172 size_t dst_y_size = buf->stride * buf->height;
173 size_t dst_c_stride = ALIGN(buf->stride / 2, 16);
182 dst_y += buf->stride;
205 size_t dst_y_size = buf->stride * buf->height;
206 size_t dst_c_stride = ALIGN(buf->stride / 2, 16);
215 dst_y += buf->stride;
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicConvolve5x5.cpp132 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; local
140 const uchar4 *py0 = (const uchar4 *)(pin + stride * y0);
141 const uchar4 *py1 = (const uchar4 *)(pin + stride * y1);
142 const uchar4 *py2 = (const uchar4 *)(pin + stride * y2);
143 const uchar4 *py3 = (const uchar4 *)(pin + stride * y3);
144 const uchar4 *py4 = (const uchar4 *)(pin + stride * y4);
/frameworks/native/libs/ui/
H A DGraphicBuffer.cpp43 stride =
56 stride =
72 stride = inStride;
85 stride = buffer->stride;
147 status_t err = allocator.alloc(w, h, format, reqUsage, &handle, &stride);
225 buf[3] = stride;
267 stride = buf[3];
275 width = height = stride = format = usage = 0;

Completed in 3519 milliseconds

123456