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

1234567

/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglBindVertexBuffer.java1 // C function void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride )
7 int stride
H A DglBindVertexBuffer.cpp1 /* void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride ) */
4 (JNIEnv *_env, jobject _this, jint bindingindex, jint buffer, jlong offset, jint stride) {
13 (GLsizei)stride
3 android_glBindVertexBuffer__IIJI(JNIEnv *_env, jobject _this, jint bindingindex, jint buffer, jlong offset, jint stride) argument
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/native/libs/gui/tests/
H A DFillBuffer.h26 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride);
29 void fillYV12BufferRect(uint8_t* buf, int w, int h, int stride,
32 void fillRGBA8Buffer(uint8_t* buf, int w, int h, int stride);
H A DFillBuffer.cpp25 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride) { argument
29 int yuvTexStrideY = stride;
54 void fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, argument
57 int yuvTexStrideY = stride;
78 void fillRGBA8Buffer(uint8_t* buf, int w, int h, int stride) {
82 off_t offset = (y * stride + x) * PIXEL_SIZE;
H A DCpuConsumer_test.cpp172 bPtr += y * buf.stride + x;
191 bPtr += y * buf.stride + x;
197 // stride is in pixels, not in bytes
198 uint16_t *bPtr = ((uint16_t*)buf.data) + y * buf.stride + x;
206 bPtr += (y * buf.stride + x) * bytesPerPixel;
221 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride);
225 void fillGreyscaleBuffer(T* buf, int w, int h, int stride, int bpp) { argument
233 // stride is in pixels, not in bytes
234 int yuvTexStrideY = stride;
254 void fillRgba8888Buffer(uint8_t* buf, int w, int h, int stride) argument
281 fillBayerRawBuffer(uint8_t* buf, int w, int h, int stride) argument
484 produceOneFrame(const sp<ANativeWindow>& anw, const CpuConsumerTestParams& params, int64_t timestamp, uint32_t *stride) argument
553 uint32_t stride; local
588 uint32_t stride[numInQueue]; local
630 uint32_t stride; local
[all...]
H A DSurfaceTextureFBO.h59 void fillRGBA8BufferSolid(uint8_t* buf, int w, int h, int stride, argument
64 off_t offset = (y * stride + x) * PIXEL_SIZE;
/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.cpp39 GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
41 GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
44 GLsizei stride, const GLvoid *pointer, GLsizei count);
46 GLsizei stride, const GLvoid *pointer, GLsizei count);
48 GLsizei stride, const GLvoid *pointer, GLsizei count);
50 GLsizei stride, const GLvoid *pointer, GLsizei count);
52 GLsizei stride, const GLvoid *pointer, GLsizei count);
55 void glColorPointerBounds(GLint size, GLenum type, GLsizei stride, argument
57 glColorPointer(size, type, stride, ptr);
59 void glNormalPointerBounds(GLenum type, GLsizei stride, argument
63 glTexCoordPointerBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) argument
67 glVertexPointerBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) argument
72 glPointSizePointerOESBounds(GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) argument
77 glMatrixIndexPointerOESBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) argument
82 glWeightPointerOESBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) 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/rs/driver/runtime/
H A Drs_sample.c84 getElementAt1(const uint8_t *p, size_t stride, int32_t x, int32_t y) { argument
85 p += y * stride;
91 getElementAt2(const uint8_t *p, size_t stride, int32_t x, int32_t y) { argument
92 p += y * stride;
99 getElementAt3(const uint8_t *p, size_t stride, int32_t x, int32_t y) { argument
100 p += y * stride;
107 getElementAt4(const uint8_t *p, size_t stride, int32_t x, int32_t y) { argument
108 p += y * stride;
115 getElementAt565(const uint8_t *p, size_t stride, int32_t x, int32_t y) { argument
116 p += y * stride;
188 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
201 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
214 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
227 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
240 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
252 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
323 size_t stride = alloc->mHal.drvState.lod[lod].stride; local
389 size_t stride = alloc->mHal.drvState.lod[lod].stride; local
[all...]
H A Drs_allocation.c112 const uint32_t stride = (uint32_t)alloc->mHal.drvState.lod[0].stride; local
114 uint8_t *dp = &p[(sizeOf * x) + (y * stride) +
115 (z * stride * dimY)];
127 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
130 uint8_t *dp = &p[(sizeOf * x) + (y * stride) +
131 (z * stride * dimY)];
202 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
211 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
228 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
237 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; local
315 const size_t stride = alloc->mHal.drvState.lod[1].stride; local
329 const size_t stride = alloc->mHal.drvState.lod[2].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%p",
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, size_t offset, const char *name);
/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
/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/rs/cpu_ref/
H A DrsCpuIntrinsicConvolve5x5.cpp358 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; local
366 const uchar4 *py0 = (const uchar4 *)(pin + stride * y0);
367 const uchar4 *py1 = (const uchar4 *)(pin + stride * y1);
368 const uchar4 *py2 = (const uchar4 *)(pin + stride * y2);
369 const uchar4 *py3 = (const uchar4 *)(pin + stride * y3);
370 const uchar4 *py4 = (const uchar4 *)(pin + stride * y4);
418 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; local
426 const uchar2 *py0 = (const uchar2 *)(pin + stride * y
467 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; local
516 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; local
565 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; local
614 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; local
[all...]
H A DrsCpuIntrinsicResize.cpp190 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
201 const uchar4 *yp0 = (const uchar4 *)(pin + stride * ys0);
202 const uchar4 *yp1 = (const uchar4 *)(pin + stride * ys1);
203 const uchar4 *yp2 = (const uchar4 *)(pin + stride * ys2);
204 const uchar4 *yp3 = (const uchar4 *)(pin + stride * ys3);
230 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
241 const uchar2 *yp0 = (const uchar2 *)(pin + stride * ys0);
242 const uchar2 *yp1 = (const uchar2 *)(pin + stride * ys
270 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
317 const size_t stride = mAlloc->mHal.drvState.lod[0].stride; local
[all...]
/frameworks/native/include/android/
H A Dbitmap.h46 uint32_t stride; member in struct:__anon1178
/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/services/surfaceflinger/RenderEngine/
H A DMesh.h36 * VertexArray handles the stride automatically.
43 VertexArray(float* data, size_t stride) : mData(data), mStride(stride) { } argument
76 // return stride in bytes
79 // return stride in floats
/frameworks/base/media/jni/
H A Dandroid_media_ImageReader.cpp297 width = (buffer->width + buffer->stride * (buffer->height - 1)) * 4;
368 dataSize = buffer->stride * (buffer->height - 1) + buffer->width;
376 cr = buffer->data + (buffer->stride * buffer->height);
392 // Y and C stride need to be 16 pixel aligned.
393 LOG_ALWAYS_FATAL_IF(buffer->stride % 16,
394 "Stride is not 16 pixel aligned %d", buffer->stride);
396 ySize = buffer->stride * buffer->height;
397 cStride = ALIGN(buffer->stride / 2, 16);
415 dataSize = buffer->stride * buffer->height;
423 dataSize = buffer->stride * buffe
[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 )

Completed in 563 milliseconds

1234567