Searched refs:stride (Results 1 - 25 of 172) 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
/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
487 produceOneFrame(const sp<ANativeWindow>& anw, const CpuConsumerTestParams& params, int64_t timestamp, uint32_t *stride) argument
556 uint32_t stride; local
591 uint32_t stride[numInQueue]; local
633 uint32_t stride; local
[all...]
/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/services/surfaceflinger/RenderEngine/
H A DMesh.cpp34 size_t stride = vertexSize + texCoordSize; local
35 size_t remainder = (stride * vertexCount) / vertexCount;
36 // Since all of the input parameters are unsigned, if stride is less than
38 // will be equal to stride as long as stride * vertexCount doesn't overflow.
39 if ((stride < vertexSize) || (remainder != stride)) {
51 mVertices = new float[stride * vertexCount];
52 mStride = stride;
/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/base/libs/hwui/renderstate/
H A DMeshState.cpp71 ALOGD("MeshState vertices: vertex data %p, stride %d",
73 ALOGD("MeshState texCoord: data %p, stride %d",
107 void MeshState::bindPositionVertexPointer(bool force, const GLvoid* vertices, GLsizei stride) { argument
108 if (force || vertices != mCurrentPositionPointer || stride != mCurrentPositionStride) {
109 glVertexAttribPointer(Program::kBindingPosition, 2, GL_FLOAT, GL_FALSE, stride, vertices);
111 mCurrentPositionStride = stride;
115 void MeshState::bindTexCoordsVertexPointer(bool force, const GLvoid* vertices, GLsizei stride) { argument
116 if (force || vertices != mCurrentTexCoordsPointer || stride != mCurrentTexCoordsStride) {
117 glVertexAttribPointer(Program::kBindingTexCoords, 2, GL_FLOAT, GL_FALSE, stride, vertices);
119 mCurrentTexCoordsStride = stride;
[all...]
H A DMeshState.h83 * Assumes a stride of gTextureVertexStride and a size of 2.
86 GLsizei stride = kTextureVertexStride);
90 * Assumes a stride of gTextureVertexStride and a size of 2.
93 GLsizei stride = kTextureVertexStride);
/frameworks/native/opengl/libagl/
H A Ddxt.h29 void *surface, int stride, int format);
/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
319 const size_t stride = alloc->mHal.drvState.lod[1].stride; local
333 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,
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
H A DUT_script_group2_gatherscatter.java79 int stride;
80 for (stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) {
88 Type.createX(pRS, Element.I32_4(pRS), stride),
89 new ScriptGroup.Binding(s.getFieldID_reduction_stride(), stride),
/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/native/libs/ui/
H A DGraphicBufferAllocator.cpp69 rec.width, rec.stride, rec.height, rec.format, rec.usage);
73 rec.width, rec.stride, rec.height, rec.format, rec.usage);
95 uint32_t* stride)
114 *stride = static_cast<uint32_t>(outStride);
126 rec.stride = *stride;
129 rec.size = static_cast<size_t>(height * (*stride) * bpp);
93 alloc(uint32_t width, uint32_t height, PixelFormat format, uint32_t usage, buffer_handle_t* handle, uint32_t* stride) argument
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicResize.cpp325 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
336 const uchar4 *yp0 = (const uchar4 *)(pin + stride * ys0);
337 const uchar4 *yp1 = (const uchar4 *)(pin + stride * ys1);
338 const uchar4 *yp2 = (const uchar4 *)(pin + stride * ys2);
339 const uchar4 *yp3 = (const uchar4 *)(pin + stride * ys3);
392 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
403 const uchar2 *yp0 = (const uchar2 *)(pin + stride * ys0);
404 const uchar2 *yp1 = (const uchar2 *)(pin + stride * ys
459 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
526 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
566 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
606 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
655 const size_t stride = mAlloc->mHal.drvState.lod[0].stride; local
[all...]
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...]
/frameworks/av/media/libstagefright/filters/
H A DColorConvert.h38 uint8_t *src, int32_t width, int32_t height, uint32_t stride,
/frameworks/native/include/android/
H A Dbitmap.h72 uint32_t stride; member in struct:__anon1240
/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/include/ui/
H A DGraphicBufferAllocator.h65 buffer_handle_t* handle, uint32_t* stride);
76 uint32_t stride; member in struct:android::GraphicBufferAllocator::alloc_rec_t

Completed in 577 milliseconds

1234567