/frameworks/native/opengl/libs/GLES_CM/ |
D | gl.cpp | 39 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, in glColorPointerBounds() argument 57 glColorPointer(size, type, stride, ptr); in glColorPointerBounds() 59 void glNormalPointerBounds(GLenum type, GLsizei stride, in glNormalPointerBounds() argument [all …]
|
/frameworks/rs/tests/cppstrided/ |
D | compute.cpp | 13 uint32_t stride = 1025; in main() local 21 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/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 | 112 const uint32_t stride = (uint32_t)alloc->mHal.drvState.lod[0].stride; in rsOffset() local 114 uint8_t *dp = &p[(sizeOf * x) + (y * stride) + in rsOffset() 115 (z * stride * dimY)]; in rsOffset() 127 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; in rsOffsetNs() local 130 uint8_t *dp = &p[(sizeOf * x) + (y * stride) + in rsOffsetNs() 131 (z * stride * dimY)]; in rsOffsetNs() 202 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; in rsGetElementAt() local 203 return &p[(eSize * x) + (y * stride)]; in rsGetElementAt() 211 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; in rsGetElementAt() local 213 return &p[(eSize * x) + (y * stride) + (z * stride * dimY)]; in rsGetElementAt() [all …]
|
/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.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()
|
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);
|
/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 | 196 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4() local 200 const uchar4 *py0 = (const uchar4 *)(pin + stride * y2); in kernelU4() 201 const uchar4 *py1 = (const uchar4 *)(pin + stride * p->y); in kernelU4() 202 const uchar4 *py2 = (const uchar4 *)(pin + stride * y1); in kernelU4() 243 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU2() local 247 const uchar2 *py0 = (const uchar2 *)(pin + stride * y2); in kernelU2() 248 const uchar2 *py1 = (const uchar2 *)(pin + stride * p->y); in kernelU2() 249 const uchar2 *py2 = (const uchar2 *)(pin + stride * y1); in kernelU2() 288 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU1() local 292 const uchar *py0 = (const uchar *)(pin + stride * y2); in kernelU1() [all …]
|
D | rsCpuIntrinsicConvolve5x5.cpp | 358 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelU4() local 366 const uchar4 *py0 = (const uchar4 *)(pin + stride * y0); in kernelU4() 367 const uchar4 *py1 = (const uchar4 *)(pin + stride * y1); in kernelU4() 368 const uchar4 *py2 = (const uchar4 *)(pin + stride * y2); in kernelU4() 369 const uchar4 *py3 = (const uchar4 *)(pin + stride * y3); in kernelU4() 370 const uchar4 *py4 = (const uchar4 *)(pin + stride * y4); in kernelU4() 418 const size_t stride = cp->alloc->mHal.drvState.lod[0].stride; in kernelU2() local 426 const uchar2 *py0 = (const uchar2 *)(pin + stride * y0); in kernelU2() 427 const uchar2 *py1 = (const uchar2 *)(pin + stride * y1); in kernelU2() 428 const uchar2 *py2 = (const uchar2 *)(pin + stride * y2); in kernelU2() [all …]
|
D | rsCpuIntrinsicResize.cpp | 190 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4() local 201 const uchar4 *yp0 = (const uchar4 *)(pin + stride * ys0); in kernelU4() 202 const uchar4 *yp1 = (const uchar4 *)(pin + stride * ys1); in kernelU4() 203 const uchar4 *yp2 = (const uchar4 *)(pin + stride * ys2); in kernelU4() 204 const uchar4 *yp3 = (const uchar4 *)(pin + stride * ys3); in kernelU4() 230 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU2() local 241 const uchar2 *yp0 = (const uchar2 *)(pin + stride * ys0); in kernelU2() 242 const uchar2 *yp1 = (const uchar2 *)(pin + stride * ys1); in kernelU2() 243 const uchar2 *yp2 = (const uchar2 *)(pin + stride * ys2); in kernelU2() 244 const uchar2 *yp3 = (const uchar2 *)(pin + stride * ys3); in kernelU2() [all …]
|
D | rsCpuIntrinsicBlur.cpp | 158 extern "C" void rsdIntrinsicBlurVFU4_K(void *dst, const void *pin, int stride, const void *gptr, in… 293 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4() local 301 rsdIntrinsicBlurU4_K(out, (uchar4 const *)(pin + stride * p->y), p->dimX, p->dimY, in kernelU4() 302 stride, x1, p->y, x2 - x1, cp->mIradius, cp->mIp + cp->mIradius); in kernelU4() 319 const uchar *pi = pin + (y - cp->mIradius) * stride; in kernelU4() 320 OneVFU4(fout, pi, stride, cp->mFp, cp->mIradius * 2 + 1, 0, p->dimX); in kernelU4() 324 OneVU4(p, fout, x1, y, pin, stride, cp->mFp, cp->mIradius); in kernelU4() 363 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU1() local 371 rsdIntrinsicBlurU1_K(out, pin + stride * p->y, p->dimX, p->dimY, in kernelU1() 372 stride, x1, p->y, x2 - x1, cp->mIradius, cp->mIp + cp->mIradius); in kernelU1() [all …]
|
/frameworks/base/media/jni/ |
D | android_media_ImageReader.cpp | 297 width = (buffer->width + buffer->stride * (buffer->height - 1)) * 4; in Image_getJpegSize() 368 dataSize = buffer->stride * (buffer->height - 1) + buffer->width; in Image_getLockedBufferInfo() 376 cr = buffer->data + (buffer->stride * buffer->height); in Image_getLockedBufferInfo() 393 LOG_ALWAYS_FATAL_IF(buffer->stride % 16, in Image_getLockedBufferInfo() 394 "Stride is not 16 pixel aligned %d", buffer->stride); in Image_getLockedBufferInfo() 396 ySize = buffer->stride * buffer->height; in Image_getLockedBufferInfo() 397 cStride = ALIGN(buffer->stride / 2, 16); in Image_getLockedBufferInfo() 415 dataSize = buffer->stride * buffer->height; in Image_getLockedBufferInfo() 423 dataSize = buffer->stride * buffer->height * bytesPerPixel; in Image_getLockedBufferInfo() 438 dataSize = buffer->stride * buffer->height * bytesPerPixel; in Image_getLockedBufferInfo() [all …]
|
/frameworks/rs/driver/ |
D | rsdAllocation.cpp | 97 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr() 98 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 | 48 stride = 0; in clear() 54 void RsdVertexArray::Attrib::set(uint32_t type, uint32_t size, uint32_t stride, in set() argument 62 this->stride = stride; in set() 77 mAttribs[idx].stride, in logAttrib() 114 mAttribs[ct].stride, in setup()
|
/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
D | common.cpp | 23 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) { in glVertexAttribPointerBounds() argument 41 glVertexAttribPointer(indx, size, type, normalized, stride, pointer); in glVertexAttribPointerBounds() 46 GLsizei stride, const GLvoid *pointer, GLsizei count) { in glVertexAttribIPointerBounds() argument [all …]
|
/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 …]
|
D | GLES11.java | 223 int stride, in glColorPointer() argument 550 int stride, in glNormalPointer() argument 602 int stride, in glPointSizePointerOESBounds() argument 609 int stride, in glPointSizePointerOES() argument 614 stride, in glPointSizePointerOES() 620 (stride >= 0)) { in glPointSizePointerOES() 630 int stride, in glTexCoordPointer() argument 723 int stride, in glVertexPointer() argument
|
/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
|
/frameworks/native/opengl/libagl/ |
D | dxt.cpp | 195 void *surface, int stride, in decodeDXT1() argument 212 for (int base_y = 0; base_y < height; base_y += 4, rowPtr += 4*stride) { in decodeDXT1() 287 for (int y = 0; y < 4; y++, blockRowPtr += stride) { in decodeDXT1() 308 void *surface, int stride) in decodeDXT3() argument 324 for (int base_y = 0; base_y < height; base_y += 4, rowPtr += 4*stride) { in decodeDXT3() 393 for (int y = 0; y < 4; y++, blockRowPtr += stride) { in decodeDXT3() 417 void *surface, int stride) in decodeDXT5() argument 448 for (int base_y = 0; base_y < height; base_y += 4, rowPtr += 4*stride) { in decodeDXT5() 550 for (int y = 0; y < 4; y++, blockRowPtr += stride) { in decodeDXT5() 600 void *surface, int stride, int format) in decodeDXT() argument [all …]
|
D | mipmap.cpp | 52 int stride = w; in buildAPyramid() local 53 int bs = base->stride; in buildAPyramid() 74 dst[x + y*stride] = rgb; in buildAPyramid() 94 dst[x + y*stride] = (r<<11)|(g<<6)|(b<<1)|a; in buildAPyramid() 121 dst[x + y*stride] = rgba; in buildAPyramid() 140 stride *= skip; in buildAPyramid() 149 dst[x + y*stride + c] = (p00 + p10 + p01 + p11) >> 2; in buildAPyramid() 172 dst[x + y*stride] = rgba; in buildAPyramid()
|
/frameworks/native/opengl/tools/glgen/specs/jsr239/ |
D | glspec-1.1ext | 13 void glMatrixIndexPointerOES ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 14 void glMatrixIndexPointerOES ( GLint size, GLenum type, GLsizei stride, GLint offset ) 15 void glWeightPointerOES ( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 16 void glWeightPointerOES ( GLint size, GLenum type, GLsizei stride, GLint offset )
|
/frameworks/base/graphics/java/android/graphics/ |
D | Bitmap.java | 844 public static Bitmap createBitmap(int colors[], int offset, int stride, in createBitmap() argument 846 return createBitmap(null, colors, offset, stride, width, height, config); in createBitmap() 870 int offset, int stride, int width, int height, Config config) { in createBitmap() argument 873 if (Math.abs(stride) < width) { in createBitmap() 876 int lastScanline = offset + (height - 1) * stride; in createBitmap() 885 Bitmap bm = nativeCreate(colors, offset, stride, width, height, in createBitmap() 1335 public void getPixels(int[] pixels, int offset, int stride, in getPixels() argument 1341 checkPixelsAccess(x, y, width, height, offset, stride, pixels); in getPixels() 1342 nativeGetPixels(mNativeBitmap, pixels, offset, stride, in getPixels() 1376 int offset, int stride, int pixels[]) { in checkPixelsAccess() argument [all …]
|
/frameworks/native/libs/ui/ |
D | GraphicBuffer.cpp | 50 stride = in GraphicBuffer() 63 stride = in GraphicBuffer() 79 stride = inStride; in GraphicBuffer() 92 stride = buffer->stride; in GraphicBuffer() 155 status_t err = allocator.alloc(w, h, format, reqUsage, &handle, &stride); in initSize() 277 buf[3] = stride; in flatten() 319 width = height = stride = format = usage = 0; in unflatten() 340 stride = buf[3]; in unflatten() 345 width = height = stride = format = usage = 0; in unflatten() 354 width = height = stride = format = usage = 0; in unflatten() [all …]
|
/frameworks/base/core/jni/ |
D | android_opengl_GLES10Ext.cpp | 45 GL_API void GL_APIENTRY glColorPointerBounds(GLint size, GLenum type, GLsizei stride, 47 GL_API void GL_APIENTRY glNormalPointerBounds(GLenum type, GLsizei stride, 50 GLsizei stride, const GLvoid *pointer, GLsizei count); 52 GLsizei stride, const GLvoid *pointer, GLsizei count); 54 GLsizei stride, const GLvoid *pointer, GLsizei count); 56 GLsizei stride, const GLvoid *pointer, GLsizei count); 58 GLsizei stride, const GLvoid *pointer, GLsizei count); 62 GLboolean normalized, GLsizei stride, const GLvoid *pointer, GLsizei count) { in glVertexAttribPointerBounds() argument 63 glVertexAttribPointer(indx, size, type, normalized, stride, pointer); in glVertexAttribPointerBounds() 68 GLsizei stride, const GLvoid *pointer, GLsizei count) { in glVertexAttribIPointerBounds() argument [all …]
|