/frameworks/native/opengl/libs/GLES_CM/ |
D | gl.cpp | 38 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, in glColorPointerBounds() argument 56 glColorPointer(size, type, stride, ptr); in glColorPointerBounds() 58 void glNormalPointerBounds(GLenum type, GLsizei stride, in glNormalPointerBounds() argument [all …]
|
/frameworks/rs/tests/cpp_api/cppstrided/ |
D | compute.cpp | 10 uint32_t stride = 1025; in main() local 18 stride = (uint32_t) tempStride; in main() 40 uint32_t* buf = (uint32_t*) malloc(stride * numElems * sizeof(uint32_t)); in main() 48 *(buf+(stride*i)+ct) = (uint32_t)ct + (i * numElems); in main() 52 ain->copy2DStridedFrom(buf, stride * sizeof(uint32_t)); in main() 56 aout->copy2DStridedTo(buf, stride * sizeof(uint32_t)); in main() 60 if (*(buf+(stride*i)+ct) != (uint32_t)(ct + (i * numElems)) * 2) { in main() 61 printf("Mismatch at location %d, %d: %u\n", i, ct, *(buf+(stride*i)+ct)); in main() 67 printf("Test successful with %u stride!\n", stride); in main()
|
/frameworks/av/media/ndk/ |
D | NdkImage.cpp | 319 *rowStride = (planeIdx == 0) ? mLockedBuffer->stride in getPlaneRowStride() 326 if (mLockedBuffer->stride % 16) { in getPlaneRowStride() 327 ALOGE("Stride %d is not 16 pixel aligned!", mLockedBuffer->stride); in getPlaneRowStride() 330 *rowStride = (planeIdx == 0) ? mLockedBuffer->stride in getPlaneRowStride() 331 : ALIGN(mLockedBuffer->stride / 2, 16); in getPlaneRowStride() 336 *rowStride = mLockedBuffer->stride; in getPlaneRowStride() 339 if (mLockedBuffer->stride % 16) { in getPlaneRowStride() 341 mLockedBuffer->stride); in getPlaneRowStride() 344 *rowStride = mLockedBuffer->stride; in getPlaneRowStride() 351 if (mLockedBuffer->stride % 16) { in getPlaneRowStride() [all …]
|
/frameworks/rs/driver/runtime/ |
D | rs_sample.c | 84 getElementAt1(const uint8_t *p, size_t stride, int32_t x, int32_t y) { in getElementAt1() argument 85 p += y * stride; in getElementAt1() 91 getElementAt2(const uint8_t *p, size_t stride, int32_t x, int32_t y) { in getElementAt2() argument 92 p += y * stride; in getElementAt2() 99 getElementAt3(const uint8_t *p, size_t stride, int32_t x, int32_t y) { in getElementAt3() argument 100 p += y * stride; in getElementAt3() 107 getElementAt4(const uint8_t *p, size_t stride, int32_t x, int32_t y) { in getElementAt4() argument 108 p += y * stride; in getElementAt4() 115 getElementAt565(const uint8_t *p, size_t stride, int32_t x, int32_t y) { in getElementAt565() argument 116 p += y * stride; in getElementAt565() [all …]
|
D | rs_allocation.c | 70 const uint32_t stride = (uint32_t)alloc->mHal.drvState.lod[0].stride; in rsOffset() local 72 uint8_t *dp = &p[(sizeOf * x) + (y * stride) + in rsOffset() 73 (z * stride * dimY)]; in rsOffset() 82 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; in rsOffsetNs() local 85 uint8_t *dp = &p[(sizeOf * x) + (y * stride) + in rsOffsetNs() 86 (z * stride * dimY)]; in rsOffsetNs() 266 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; in rsGetElementAt() local 267 return &p[(eSize * x) + (y * stride)]; in rsGetElementAt() 275 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; in rsGetElementAt() local 277 return &p[(eSize * x) + (y * stride) + (z * stride * dimY)]; in rsGetElementAt() [all …]
|
/frameworks/native/libs/vr/libbufferhub/ |
D | ion_buffer.cpp | 27 uint32_t stride, uint32_t format, uint64_t usage) in IonBuffer() argument 28 : IonBuffer(handle, width, height, kDefaultGraphicBufferLayerCount, stride, in IonBuffer() 32 uint32_t layer_count, uint32_t stride, uint32_t format, in IonBuffer() argument 38 handle, width, height, layer_count, stride, format, usage); in IonBuffer() 40 Import(handle, width, height, layer_count, stride, format, usage); in IonBuffer() 48 handle(), width(), height(), stride(), format(), usage()); in ~IonBuffer() 92 uint32_t layer_count, uint32_t stride, uint32_t format, in Reset() argument 97 handle, width, height, layer_count, stride, format, usage); in Reset() 98 Import(handle, width, height, layer_count, stride, format, usage); in Reset() 102 uint32_t layer_count, uint32_t stride, uint32_t format, in Import() argument [all …]
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
D | Mesh.cpp | 34 size_t stride = vertexSize + texCoordSize; in Mesh() local 35 size_t remainder = (stride * vertexCount) / vertexCount; in Mesh() 39 if ((stride < vertexSize) || (remainder != stride)) { in Mesh() 51 mVertices = new float[stride * vertexCount]; in Mesh() 52 mStride = stride; in Mesh()
|
/frameworks/native/libs/gui/tests/ |
D | CpuConsumer_test.cpp | 172 bPtr += y * buf.stride + x; in checkPixel() 191 bPtr += y * buf.stride + x; in checkPixel() 198 uint16_t *bPtr = ((uint16_t*)buf.data) + y * buf.stride + x; in checkPixel() 206 bPtr += (y * buf.stride + x) * bytesPerPixel; in checkPixel() 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) { in fillGreyscaleBuffer() argument 234 int yuvTexStrideY = stride; in fillGreyscaleBuffer() 254 void fillRgba8888Buffer(uint8_t* buf, int w, int h, int stride) in fillRgba8888Buffer() argument 270 buf[(y*stride + x)*bytesPerPixel + 0] = r; in fillRgba8888Buffer() 271 buf[(y*stride + x)*bytesPerPixel + 1] = g; in fillRgba8888Buffer() [all …]
|
D | FillBuffer.h | 26 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);
|
D | FillBuffer.cpp | 25 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride) { in fillYV12Buffer() argument 29 int yuvTexStrideY = stride; in fillYV12Buffer() 54 void fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, in fillYV12BufferRect() argument 57 int yuvTexStrideY = stride; in fillYV12BufferRect() 78 void fillRGBA8Buffer(uint8_t* buf, int w, int h, int stride) { in fillRGBA8Buffer() argument 82 off_t offset = (y * stride + x) * PIXEL_SIZE; in fillRGBA8Buffer()
|
/frameworks/rs/rsov/driver/ |
D | rsovAllocation.cpp | 54 state->lod[2].stride = rsRound(state->lod[0].stride >> 1, 16); in DeriveYUVLayout() 56 (state->lod[0].stride * state->lod[0].dimY); in DeriveYUVLayout() 57 uvSize += state->lod[2].stride * state->lod[2].dimY; in DeriveYUVLayout() 59 state->lod[1].stride = state->lod[2].stride; in DeriveYUVLayout() 61 (state->lod[2].stride * state->lod[2].dimY); in DeriveYUVLayout() 62 uvSize += state->lod[1].stride * state->lod[2].dimY; in DeriveYUVLayout() 66 state->lod[1].stride = state->lod[0].stride; in DeriveYUVLayout() 67 state->lod[2].stride = state->lod[0].stride; in DeriveYUVLayout() 69 (state->lod[0].stride * state->lod[0].dimY); in DeriveYUVLayout() 71 uvSize += state->lod[1].stride * state->lod[1].dimY; in DeriveYUVLayout() [all …]
|
/frameworks/base/opengl/java/com/google/android/gles_jni/ |
D | GLImpl.java | 201 int stride, in glColorPointerBounds() argument 209 int stride, in glColorPointer() argument 215 stride, in glColorPointer() 223 (stride >= 0)) { in glColorPointer() 774 int stride, in glNormalPointerBounds() argument 781 int stride, in glNormalPointer() argument 786 stride, in glNormalPointer() 794 (stride >= 0)) { in glNormalPointer() 966 int stride, in glTexCoordPointerBounds() argument 974 int stride, in glTexCoordPointer() argument [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicConvolve3x3.cpp | 189 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4() local 193 const uchar4 *py0 = (const uchar4 *)(pin + stride * y2); in kernelU4() 194 const uchar4 *py1 = (const uchar4 *)(pin + stride * info->current.y); in kernelU4() 195 const uchar4 *py2 = (const uchar4 *)(pin + stride * y1); in kernelU4() 236 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU2() local 240 const uchar2 *py0 = (const uchar2 *)(pin + stride * y2); in kernelU2() 241 const uchar2 *py1 = (const uchar2 *)(pin + stride * info->current.y); in kernelU2() 242 const uchar2 *py2 = (const uchar2 *)(pin + stride * y1); in kernelU2() 281 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU1() local 285 const uchar *py0 = (const uchar *)(pin + stride * y2); in kernelU1() [all …]
|
D | rsCpuIntrinsicConvolve5x5.cpp | 352 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelU4() local 360 const uchar4 *py0 = (const uchar4 *)(pin + stride * y0); in kernelU4() 361 const uchar4 *py1 = (const uchar4 *)(pin + stride * y1); in kernelU4() 362 const uchar4 *py2 = (const uchar4 *)(pin + stride * y2); in kernelU4() 363 const uchar4 *py3 = (const uchar4 *)(pin + stride * y3); in kernelU4() 364 const uchar4 *py4 = (const uchar4 *)(pin + stride * y4); in kernelU4() 412 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelU2() local 420 const uchar2 *py0 = (const uchar2 *)(pin + stride * y0); in kernelU2() 421 const uchar2 *py1 = (const uchar2 *)(pin + stride * y1); in kernelU2() 422 const uchar2 *py2 = (const uchar2 *)(pin + stride * y2); in kernelU2() [all …]
|
D | rsCpuIntrinsicResize.cpp | 318 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4() local 329 const uchar4 *yp0 = (const uchar4 *)(pin + stride * ys0); in kernelU4() 330 const uchar4 *yp1 = (const uchar4 *)(pin + stride * ys1); in kernelU4() 331 const uchar4 *yp2 = (const uchar4 *)(pin + stride * ys2); in kernelU4() 332 const uchar4 *yp3 = (const uchar4 *)(pin + stride * ys3); in kernelU4() 385 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU2() local 396 const uchar2 *yp0 = (const uchar2 *)(pin + stride * ys0); in kernelU2() 397 const uchar2 *yp1 = (const uchar2 *)(pin + stride * ys1); in kernelU2() 398 const uchar2 *yp2 = (const uchar2 *)(pin + stride * ys2); in kernelU2() 399 const uchar2 *yp3 = (const uchar2 *)(pin + stride * ys3); in kernelU2() [all …]
|
/frameworks/base/libs/hwui/renderstate/ |
D | MeshState.cpp | 120 void MeshState::bindPositionVertexPointer(const GLvoid* vertices, GLsizei stride) { in bindPositionVertexPointer() argument 124 || stride != mCurrentPositionStride) { in bindPositionVertexPointer() 125 glVertexAttribPointer(Program::kBindingPosition, 2, GL_FLOAT, GL_FALSE, stride, vertices); in bindPositionVertexPointer() 127 mCurrentPositionStride = stride; in bindPositionVertexPointer() 131 void MeshState::bindTexCoordsVertexPointer(const GLvoid* vertices, GLsizei stride) { in bindTexCoordsVertexPointer() argument 135 || stride != mCurrentTexCoordsStride) { in bindTexCoordsVertexPointer() 136 glVertexAttribPointer(Program::kBindingTexCoords, 2, GL_FLOAT, GL_FALSE, stride, vertices); in bindTexCoordsVertexPointer() 138 mCurrentTexCoordsStride = stride; in bindTexCoordsVertexPointer()
|
/frameworks/base/media/jni/ |
D | android_media_Utils.cpp | 619 width = (buffer->width + buffer->stride * (buffer->height - 1)) * 4; in Image_getJpegSize() 680 rStride = buffer->stride; in getLockedImageInfo() 681 dataSize = buffer->stride * (buffer->height - 1) + buffer->width; in getLockedImageInfo() 691 cr = buffer->data + (buffer->stride * buffer->height); in getLockedImageInfo() 710 LOG_ALWAYS_FATAL_IF(buffer->stride % 16, in getLockedImageInfo() 711 "Stride is not 16 pixel aligned %d", buffer->stride); in getLockedImageInfo() 713 ySize = buffer->stride * buffer->height; in getLockedImageInfo() 714 cStride = ALIGN(buffer->stride / 2, 16); in getLockedImageInfo() 727 rStride = (idx == 0) ? buffer->stride : ALIGN(buffer->stride / 2, 16); in getLockedImageInfo() 734 dataSize = buffer->stride * buffer->height; in getLockedImageInfo() [all …]
|
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/ |
D | ion_buffer.h | 17 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; } in stride() function
|
/frameworks/rs/driver/ |
D | rsdAllocation.cpp | 89 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr() 90 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr() 270 state->lod[2].stride = rsRound(state->lod[0].stride >> 1, 16); in DeriveYUVLayout() 272 (state->lod[0].stride * state->lod[0].dimY); in DeriveYUVLayout() 273 uvSize += state->lod[2].stride * state->lod[2].dimY; in DeriveYUVLayout() 275 state->lod[1].stride = state->lod[2].stride; in DeriveYUVLayout() 277 (state->lod[2].stride * state->lod[2].dimY); in DeriveYUVLayout() 278 uvSize += state->lod[1].stride * state->lod[2].dimY; in DeriveYUVLayout() 282 state->lod[1].stride = state->lod[0].stride; in DeriveYUVLayout() 283 state->lod[2].stride = state->lod[0].stride; in DeriveYUVLayout() [all …]
|
D | rsdVertexArray.cpp | 47 stride = 0; in clear() 53 void RsdVertexArray::Attrib::set(uint32_t type, uint32_t size, uint32_t stride, in set() argument 61 this->stride = stride; in set() 76 mAttribs[idx].stride, in logAttrib() 113 mAttribs[ct].stride, in setup()
|
/frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/test/ |
D | UT_script_group2_gatherscatter.java | 81 int stride; in run() local 82 for (stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) { in run() 90 Type.createX(pRS, Element.I32_4(pRS), stride), in run() 91 new ScriptGroup.Binding(s.getFieldID_reduction_stride(), stride), in run()
|
/frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/ |
D | UT_script_group2_gatherscatter.java | 77 int stride; in run() local 78 for (stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) { in run() 86 Type.createX(pRS, Element.I32_4(pRS), stride), in run() 87 new ScriptGroup.Binding(s.getFieldID_reduction_stride(), stride), in run()
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLES10.java | 387 int stride, in glColorPointerBounds() argument 395 int stride, in glColorPointer() argument 401 stride, in glColorPointer() 409 (stride >= 0)) { in glColorPointer() 949 int stride, in glNormalPointerBounds() argument 956 int stride, in glNormalPointer() argument 961 stride, in glNormalPointer() 969 (stride >= 0)) { in glNormalPointer() 1141 int stride, in glTexCoordPointerBounds() argument 1149 int stride, in glTexCoordPointer() argument [all …]
|
/frameworks/native/libs/ui/ |
D | GraphicBufferAllocator.cpp | 69 rec.width, rec.stride, rec.height, rec.layerCount, rec.format, in dump() 75 rec.width, rec.stride, rec.height, rec.layerCount, rec.format, in dump() 97 buffer_handle_t* handle, uint32_t* stride, in allocate() argument 118 Gralloc2::Error error = mAllocator->allocate(info, stride, handle); in allocate() 126 rec.stride = *stride; in allocate() 130 rec.size = static_cast<size_t>(height * (*stride) * bpp); in allocate()
|
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/ |
D | GL11Ext.java | 128 int stride, in glMatrixIndexPointerOES() argument 135 int stride, in glMatrixIndexPointerOES() argument 142 int stride, in glWeightPointerOES() argument 149 int stride, in glWeightPointerOES() argument
|