/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/base/media/jni/ |
D | android_media_Utils.cpp | 90 width = (buffer->width + buffer->stride * (buffer->height - 1)) * 4; in Image_getBlobSize() 152 rStride = buffer->stride; in getLockedImageInfo() 153 dataSize = buffer->stride * (buffer->height - 1) + buffer->width; in getLockedImageInfo() 163 cr = buffer->data + (buffer->stride * buffer->height); in getLockedImageInfo() 182 LOG_ALWAYS_FATAL_IF(buffer->stride % 16, in getLockedImageInfo() 183 "Stride is not 16 pixel aligned %d", buffer->stride); in getLockedImageInfo() 185 ySize = buffer->stride * buffer->height; in getLockedImageInfo() 186 cStride = ALIGN(buffer->stride / 2, 16); in getLockedImageInfo() 199 rStride = (idx == 0) ? buffer->stride : ALIGN(buffer->stride / 2, 16); in getLockedImageInfo() 206 dataSize = buffer->stride * buffer->height; in getLockedImageInfo() [all …]
|
/frameworks/native/libs/ui/tests/ |
D | GraphicBufferAllocator_test.cpp | 50 void setUpAllocateExpectations(status_t err, uint32_t stride) { in setUpAllocateExpectations() argument 51 std::cout << "Setting expected stride to " << stride << std::endl; in setUpAllocateExpectations() 54 .WillOnce(DoAll(SetArgPointee<6>(stride), Return(err))); in setUpAllocateExpectations() 71 uint32_t stride = 0; in TEST_F() local 74 &handle, &stride, 0, "GraphicBufferAllocatorTest"); in TEST_F() 76 ASSERT_EQ(kTestWidth, stride); in TEST_F() 84 uint32_t stride = 0; in TEST_F() local 88 &handle, &stride, 0, "GraphicBufferAllocatorTest"); in TEST_F() 90 ASSERT_EQ(expectedStride, stride); in TEST_F() 108 uint32_t stride = 0; in TEST_F() local [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 | 306 *rowStride = (planeIdx == 0) ? mLockedBuffer->stride in getPlaneRowStride() 313 if (mLockedBuffer->stride % 16) { in getPlaneRowStride() 314 ALOGE("Stride %d is not 16 pixel aligned!", mLockedBuffer->stride); in getPlaneRowStride() 317 *rowStride = (planeIdx == 0) ? mLockedBuffer->stride in getPlaneRowStride() 318 : ALIGN(mLockedBuffer->stride / 2, 16); in getPlaneRowStride() 323 *rowStride = mLockedBuffer->stride; in getPlaneRowStride() 326 if (mLockedBuffer->stride % 16) { in getPlaneRowStride() 328 mLockedBuffer->stride); in getPlaneRowStride() 331 *rowStride = mLockedBuffer->stride; in getPlaneRowStride() 338 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 | 69 const uint32_t stride = (uint32_t)alloc->mHal.drvState.lod[0].stride; in rsOffset() local 71 uint8_t *dp = &p[(sizeOf * x) + (y * stride) + in rsOffset() 72 (z * stride * dimY)]; in rsOffset() 80 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; in rsOffsetNs() local 83 uint8_t *dp = &p[(sizeOf * x) + (y * stride) + in rsOffsetNs() 84 (z * stride * dimY)]; in rsOffsetNs() 204 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; in rsGetElementAt() local 205 return &p[(eSize * x) + (y * stride)]; in rsGetElementAt() 213 const uint32_t stride = alloc->mHal.drvState.lod[0].stride; in rsGetElementAt() local 215 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/libs/gui/tests/ |
D | CpuConsumer_test.cpp | 174 bPtr += y * buf.stride + x; in checkPixel() 193 bPtr += y * buf.stride + x; in checkPixel() 200 uint16_t *bPtr = ((uint16_t*)buf.data) + y * buf.stride + x; in checkPixel() 208 bPtr += (y * buf.stride + x) * bytesPerPixel; in checkPixel() 223 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride); 227 void fillGreyscaleBuffer(T* buf, int w, int h, int stride, int bpp) { in fillGreyscaleBuffer() argument 236 int yuvTexStrideY = stride; in fillGreyscaleBuffer() 256 void fillRgba8888Buffer(uint8_t* buf, int w, int h, int stride) in fillRgba8888Buffer() argument 272 buf[(y*stride + x)*bytesPerPixel + 0] = r; in fillRgba8888Buffer() 273 buf[(y*stride + x)*bytesPerPixel + 1] = g; in fillRgba8888Buffer() [all …]
|
/frameworks/base/opengl/java/com/google/android/gles_jni/ |
D | GLImpl.java | 204 int stride, in glColorPointerBounds() argument 212 int stride, in glColorPointer() argument 218 stride, in glColorPointer() 226 (stride >= 0)) { in glColorPointer() 777 int stride, in glNormalPointerBounds() argument 784 int stride, in glNormalPointer() argument 789 stride, in glNormalPointer() 797 (stride >= 0)) { in glNormalPointer() 969 int stride, in glTexCoordPointerBounds() argument 977 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 | 333 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU4() local 351 const uchar4 *yp0 = (const uchar4 *)(pin + stride * ys0); in kernelU4() 352 const uchar4 *yp1 = (const uchar4 *)(pin + stride * ys1); in kernelU4() 353 const uchar4 *yp2 = (const uchar4 *)(pin + stride * ys2); in kernelU4() 354 const uchar4 *yp3 = (const uchar4 *)(pin + stride * ys3); in kernelU4() 411 const size_t stride = cp->mAlloc->mHal.drvState.lod[0].stride; in kernelU2() local 428 const uchar2 *yp0 = (const uchar2 *)(pin + stride * ys0); in kernelU2() 429 const uchar2 *yp1 = (const uchar2 *)(pin + stride * ys1); in kernelU2() 430 const uchar2 *yp2 = (const uchar2 *)(pin + stride * ys2); in kernelU2() 431 const uchar2 *yp3 = (const uchar2 *)(pin + stride * ys3); in kernelU2() [all …]
|
/frameworks/native/libs/renderengine/ |
D | Mesh.cpp | 37 size_t stride = vertexSize + texCoordSize + CROP_COORD_SIZE; in Mesh() local 38 size_t remainder = (stride * vertexCount) / vertexCount; in Mesh() 42 if ((stride < vertexSize) || (remainder != stride)) { in Mesh() 54 mVertices.resize(stride * vertexCount); in Mesh() 55 mStride = stride; in Mesh()
|
/frameworks/ml/nn/runtime/test/specs/V1_3/ |
D | conv2d_quant8_signed.mod.py | 472 stride = Int32Scalar("stride", 1) variable 475 model = model.Operation("CONV_2D", i1, f1, b1, pad0, pad0, pad0, pad0, stride, stride, act).To(outp… 493 stride = Int32Scalar("stride", 1) variable 496 model = model.Operation("CONV_2D", i1, f1, b1, pad0, pad0, pad0, pad0, stride, stride, act).To(outp… 520 stride = Int32Scalar("stride", 1) variable 523 model = model.Operation("CONV_2D", i1, f1, b1, pad0, pad0, pad0, pad0, stride, stride, act).To(outp… 548 stride = Int32Scalar("stride", 1) variable 551 model = model.Operation("CONV_2D", i1, f1, b1, pad0, pad0, pad0, pad0, stride, stride, act).To(outp… 585 stride = Int32Scalar("stride", 1) variable 590 model = model.Operation("CONV_2D", i1, f1, b1, pad0, pad0, pad0, pad0, stride, [all …]
|
D | depthwise_conv2d_quant8_signed.mod.py | 224 stride = Int32Scalar("stride", 1) variable 231 stride, stride, 256 stride = Int32Scalar("stride", 1) variable 263 stride, stride, 284 stride = Int32Scalar("stride", 1) variable 291 stride, stride, 317 stride = Int32Scalar("stride", 1) variable 324 stride, stride, 345 stride = Int32Scalar("stride", 1) variable 352 stride, stride,
|
/frameworks/native/libs/ui/ |
D | GraphicBufferAllocator.cpp | 84 … list.keyAt(i), static_cast<double>(rec.size) / 1024.0, rec.width, rec.stride, rec.height, in dump() 89 list.keyAt(i), rec.width, rec.stride, rec.height, rec.layerCount, in dump() 108 buffer_handle_t* handle, uint32_t* stride, in allocate() argument 134 mAllocator->allocate(width, height, format, layerCount, usage, 1, stride, handle); in allocate() 139 if ((*stride) != 0 && in allocate() 140 std::numeric_limits<size_t>::max() / height / (*stride) < static_cast<size_t>(bpp)) { in allocate() 143 bufSize = static_cast<size_t>((*stride)) * height * bpp; in allocate() 152 rec.stride = *stride; in allocate()
|
/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorGralloc.cpp | 84 uint32_t stride; member 89 uint32_t stride; member 138 uint32_t stride; member 187 uint32_t stride, uint32_t generation, uint64_t igbp_id = 0, uint32_t igbp_slot = 0) { in WrapAndMoveNativeHandle() argument 195 stride, generation, uint32_t(igbp_id & 0xFFFFFFFF), uint32_t(igbp_id >> 32), in WrapAndMoveNativeHandle() 209 uint32_t stride, uint32_t generation, uint64_t igbp_id = 0, uint32_t igbp_slot = 0) { in WrapNativeHandle() argument 218 clone, width, height, format, usage, stride, generation, igbp_id, igbp_slot); in WrapNativeHandle() 258 uint64_t *usage, uint32_t *stride, in Import() argument 268 *stride = xd->stride; in Import() 284 uint32_t width, uint32_t height, uint32_t format, uint64_t usage, uint32_t stride, in WrapNativeCodec2GrallocHandle() argument [all …]
|
/frameworks/rs/driver/ |
D | rsdAllocation.cpp | 92 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr() 93 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; in GetOffsetPtr() 273 state->lod[2].stride = rsRound(state->lod[0].stride >> 1, 16); in DeriveYUVLayout() 275 (state->lod[0].stride * state->lod[0].dimY); in DeriveYUVLayout() 276 uvSize += state->lod[2].stride * state->lod[2].dimY; in DeriveYUVLayout() 278 state->lod[1].stride = state->lod[2].stride; in DeriveYUVLayout() 280 (state->lod[2].stride * state->lod[2].dimY); in DeriveYUVLayout() 281 uvSize += state->lod[1].stride * state->lod[2].dimY; in DeriveYUVLayout() 285 state->lod[1].stride = state->lod[0].stride; in DeriveYUVLayout() 286 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/av/media/codec2/sfplugin/tests/ |
D | MediaCodec_sanity_test.cpp | 357 int32_t stride, vstride; in TEST_P() local 358 ofmt->findInt32("stride", &stride) || ofmt->findInt32("width", &stride); in TEST_P() 374 EXPECT_EQ(img->mPlane[img->Y].mRowInc, stride); in TEST_P() 376 EXPECT_EQ(img->mPlane[img->U].mOffset, (uint32_t)(stride * vstride)); in TEST_P() 378 EXPECT_EQ(img->mPlane[img->U].mRowInc, stride / 2); in TEST_P() 380 EXPECT_EQ(img->mPlane[img->V].mOffset, (uint32_t)(stride * vstride * 5 / 4)); in TEST_P() 382 EXPECT_EQ(img->mPlane[img->V].mRowInc, stride / 2); in TEST_P() 384 EXPECT_GE(size, (size_t)(stride * vstride * 5 / 4 + stride / 2 * 119 + 160)); in TEST_P() 385 EXPECT_LE(size, (size_t)(stride * vstride * 3 / 2)); in TEST_P() 392 EXPECT_EQ(img->mPlane[img->Y].mRowInc, stride); in TEST_P() [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_script_group2_gatherscatter.java | 78 int stride; in run() local 79 for (stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) { in run() 87 Type.createX(pRS, Element.I32_4(pRS), stride), in run() 88 new ScriptGroup.Binding(s.getFieldID_reduction_stride(), stride), in run()
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_script_group2_gatherscatter.java | 76 int stride; in run() local 77 for (stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) { in run() 85 Type.createX(pRS, Element.I32_4(pRS), stride), in run() 86 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/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, 43 uint32_t layer_count, uint32_t stride, uint32_t format, 50 uint32_t layer_count, uint32_t stride, uint32_t format, 58 uint32_t layer_count, uint32_t stride, uint32_t format, 82 uint32_t stride() const { return buffer_.get() ? buffer_->getStride() : 0; } in stride() function
|