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

123456789

/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;
/frameworks/rs/tests/cpp_api/cppstrided/
H A Dcompute.cpp10 uint32_t stride = 1025; local
15 printf("stride must be greater than or equal to 1024\n");
18 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.cpp38 GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride,
40 GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride,
43 GLsizei stride, const GLvoid *pointer, GLsizei count);
45 GLsizei stride, const GLvoid *pointer, GLsizei count);
47 GLsizei stride, const GLvoid *pointer, GLsizei count);
49 GLsizei stride, const GLvoid *pointer, GLsizei count);
51 GLsizei stride, const GLvoid *pointer, GLsizei count);
54 void glColorPointerBounds(GLint size, GLenum type, GLsizei stride, argument
56 glColorPointer(size, type, stride, ptr);
58 void glNormalPointerBounds(GLenum type, GLsizei stride, argument
62 glTexCoordPointerBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) argument
66 glVertexPointerBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) argument
71 glPointSizePointerOESBounds(GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) argument
76 glMatrixIndexPointerOESBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) argument
81 glWeightPointerOESBounds(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer, GLsizei ) argument
[all...]
/frameworks/native/libs/vr/libbufferhub/
H A Dion_buffer.cpp27 uint32_t stride, uint32_t format, uint64_t usage)
28 : IonBuffer(handle, width, height, kDefaultGraphicBufferLayerCount, stride,
32 uint32_t layer_count, uint32_t stride, uint32_t format,
37 "stride=%u format=%u usage=%" PRIx64,
38 handle, width, height, layer_count, stride, format, usage);
40 Import(handle, width, height, layer_count, stride, format, usage);
46 "IonBuffer::~IonBuffer: handle=%p width=%u height=%u stride=%u "
48 handle(), width(), height(), stride(), format(), usage());
92 uint32_t layer_count, uint32_t stride, uint32_t format,
96 "stride
26 IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height, uint32_t stride, uint32_t format, uint64_t usage) argument
31 IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t stride, uint32_t format, uint64_t usage) argument
91 Reset(buffer_handle_t handle, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t stride, uint32_t format, uint64_t usage) argument
101 Import(buffer_handle_t handle, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t stride, uint32_t format, uint64_t usage) argument
122 Import(const int* fd_array, int fd_count, const int* int_array, int int_count, uint32_t width, uint32_t height, uint32_t layer_count, uint32_t stride, uint32_t format, uint64_t usage) argument
[all...]
/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...]
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
H A Dion_buffer.h17 uint32_t stride, uint32_t format, uint64_t usage);
19 uint32_t layer_count, uint32_t stride, uint32_t format,
40 uint32_t layer_count, uint32_t stride, uint32_t format,
47 uint32_t layer_count, uint32_t stride, uint32_t format,
55 uint32_t layer_count, uint32_t stride, uint32_t format,
78 uint32_t stride() const { return buffer_.get() ? buffer_->getStride() : 0; } function in class:android::dvr::IonBuffer
/frameworks/rs/driver/
H A DrsdVertexArray.cpp47 stride = 0;
53 void RsdVertexArray::Attrib::set(uint32_t type, uint32_t size, uint32_t stride, argument
61 this->stride = stride;
69 ALOGV("va %i: slot=%i name=%s buf=%i ptr=%p size=%i type=0x%x stride=0x%x norm=%i offset=0x%p",
76 mAttribs[idx].stride,
113 mAttribs[ct].stride,
/frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/test/
H A DUT_script_group2_gatherscatter.java81 int stride;
82 for (stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) {
90 Type.createX(pRS, Element.I32_4(pRS), stride),
91 new ScriptGroup.Binding(s.getFieldID_reduction_stride(), stride),
/frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/
H A DUT_script_group2_gatherscatter.java77 int stride;
78 for (stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) {
86 Type.createX(pRS, Element.I32_4(pRS), stride),
87 new ScriptGroup.Binding(s.getFieldID_reduction_stride(), stride),
/frameworks/av/media/ndk/
H A DNdkImage.cpp289 // those are single plane data without pixel stride defined
319 *rowStride = (planeIdx == 0) ? mLockedBuffer->stride
326 if (mLockedBuffer->stride % 16) {
327 ALOGE("Stride %d is not 16 pixel aligned!", mLockedBuffer->stride);
330 *rowStride = (planeIdx == 0) ? mLockedBuffer->stride
331 : ALIGN(mLockedBuffer->stride / 2, 16);
336 *rowStride = mLockedBuffer->stride;
339 if (mLockedBuffer->stride % 16) {
341 mLockedBuffer->stride);
344 *rowStride = mLockedBuffer->stride;
[all...]
/frameworks/base/libs/hwui/renderstate/
H A DMeshState.cpp68 ALOGD("MeshState vertices: vertex data %p, stride %d",
70 ALOGD("MeshState texCoord: data %p, stride %d",
120 void MeshState::bindPositionVertexPointer(const GLvoid* vertices, GLsizei stride) { argument
124 || stride != mCurrentPositionStride) {
125 glVertexAttribPointer(Program::kBindingPosition, 2, GL_FLOAT, GL_FALSE, stride, vertices);
127 mCurrentPositionStride = stride;
131 void MeshState::bindTexCoordsVertexPointer(const GLvoid* vertices, GLsizei stride) { argument
135 || stride != mCurrentTexCoordsStride) {
136 glVertexAttribPointer(Program::kBindingTexCoords, 2, GL_FLOAT, GL_FALSE, stride, vertices);
138 mCurrentTexCoordsStride = stride;
[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
/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.layerCount, rec.format,
75 rec.width, rec.stride, rec.height, rec.layerCount, rec.format,
97 buffer_handle_t* handle, uint32_t* stride,
118 Gralloc2::Error error = mAllocator->allocate(info, stride, handle);
126 rec.stride = *stride;
130 rec.size = static_cast<size_t>(height * (*stride) * bpp);
95 allocate(uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount, uint64_t usage, buffer_handle_t* handle, uint32_t* stride, uint64_t , std::string requestorName) argument
/frameworks/rs/rsov/driver/
H A DrsovAllocation.cpp54 state->lod[2].stride = rsRound(state->lod[0].stride >> 1, 16);
56 (state->lod[0].stride * state->lod[0].dimY);
57 uvSize += state->lod[2].stride * state->lod[2].dimY;
59 state->lod[1].stride = state->lod[2].stride;
61 (state->lod[2].stride * state->lod[2].dimY);
62 uvSize += state->lod[1].stride * state->lod[2].dimY;
66 state->lod[1].stride = state->lod[0].stride;
90 size_t stride = local
338 rsovAllocationData2D(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
390 rsovAllocationData3D(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
431 rsovAllocationRead2D(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
460 rsovAllocationRead3D(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/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:__anon1493
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicResize.cpp318 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
329 const uchar4 *yp0 = (const uchar4 *)(pin + stride * ys0);
330 const uchar4 *yp1 = (const uchar4 *)(pin + stride * ys1);
331 const uchar4 *yp2 = (const uchar4 *)(pin + stride * ys2);
332 const uchar4 *yp3 = (const uchar4 *)(pin + stride * ys3);
385 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
396 const uchar2 *yp0 = (const uchar2 *)(pin + stride * ys0);
397 const uchar2 *yp1 = (const uchar2 *)(pin + stride * ys
452 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
519 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
559 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
599 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; local
[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...]

Completed in 619 milliseconds

123456789