Home
last modified time | relevance | path

Searched refs:stride (Results 1 – 25 of 260) sorted by relevance

1234567891011

/frameworks/native/opengl/libs/GLES_CM/
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, 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/
Dandroid_media_Utils.cpp91 width = (buffer->width + buffer->stride * (buffer->height - 1)) * 4; in Image_getBlobSize()
174 rStride = buffer->stride; in getLockedImageInfo()
175 dataSize = buffer->stride * (buffer->height - 1) + buffer->width; in getLockedImageInfo()
206 cr = buffer->data + (buffer->stride * buffer->height); in getLockedImageInfo()
246 LOG_ALWAYS_FATAL_IF(buffer->stride % 16, in getLockedImageInfo()
247 "Stride is not 16 pixel aligned %d", buffer->stride); in getLockedImageInfo()
249 ySize = buffer->stride * buffer->height; in getLockedImageInfo()
250 cStride = ALIGN(buffer->stride / 2, 16); in getLockedImageInfo()
263 rStride = (idx == 0) ? buffer->stride : ALIGN(buffer->stride / 2, 16); in getLockedImageInfo()
281 ySize = (buffer->stride * 2) * buffer->height; in getLockedImageInfo()
[all …]
/frameworks/native/libs/ui/tests/
DGraphicBufferAllocator_test.cpp50 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<7>(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/
Dcompute.cpp10 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/
DNdkImage.cpp306 *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/
Drs_sample.c84 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 …]
Drs_allocation.c69 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/
Dion_buffer.cpp27 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/ui/
DGraphicBufferAllocator.cpp95 list.keyAt(i), sizeStr.c_str(), rec.width, rec.stride, rec.height, in dump()
113 buffer_handle_t* handle, uint32_t* stride, in allocateHelper() argument
139 1, stride, handle, importBuffer); in allocateHelper()
154 if ((*stride) != 0 && in allocateHelper()
155 std::numeric_limits<size_t>::max() / height / (*stride) < static_cast<size_t>(bpp)) { in allocateHelper()
158 bufSize = static_cast<size_t>((*stride)) * height * bpp; in allocateHelper()
166 rec.stride = *stride; in allocateHelper()
178 buffer_handle_t* handle, uint32_t* stride, in allocate() argument
180 return allocateHelper(width, height, format, layerCount, usage, handle, stride, requestorName, in allocate()
187 uint32_t* stride, std::string requestorName) { in allocateRawHandle() argument
[all …]
/frameworks/native/libs/gui/tests/
DCpuConsumer_test.cpp174 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/
DGLImpl.java204 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/
DrsCpuIntrinsicConvolve3x3.cpp189 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 …]
DrsCpuIntrinsicConvolve5x5.cpp352 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 …]
DrsCpuIntrinsicResize.cpp333 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/
DMesh.cpp41 size_t stride = vertexSize + texCoordSize + cropCoordsSize + shadowColorSize + shadowParamsSize; in Mesh() local
42 size_t remainder = (stride * vertexCount) / vertexCount; in Mesh()
46 if ((stride < vertexSize) || (remainder != stride)) { in Mesh()
61 mVertices.resize(stride * vertexCount); in Mesh()
62 mStride = stride; in Mesh()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_script_group2_gatherscatter.java76 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/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_script_group2_gatherscatter.java78 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/av/media/libstagefright/renderfright/
DMesh.cpp41 size_t stride = vertexSize + texCoordSize + cropCoordsSize + shadowColorSize + shadowParamsSize; in Mesh() local
42 size_t remainder = (stride * vertexCount) / vertexCount; in Mesh()
46 if ((stride < vertexSize) || (remainder != stride)) { in Mesh()
61 mVertices.resize(stride * vertexCount); in Mesh()
62 mStride = stride; in Mesh()
/frameworks/av/media/codec2/sfplugin/tests/
DMediaCodec_sanity_test.cpp357 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/driver/
DrsdAllocation.cpp92 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 …]
DrsdVertexArray.cpp47 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/native/libs/vr/libbufferhub/include/private/dvr/
Dion_buffer.h17 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
/frameworks/native/libs/ui/include_vndk/ui/
DGraphicBufferAllocator.h51 uint64_t usage, buffer_handle_t* handle, uint32_t* stride,
62 uint64_t usage, buffer_handle_t* handle, uint32_t* stride,
70 buffer_handle_t* handle, uint32_t* stride, uint64_t graphicBufferId,
84 uint32_t stride; member
93 uint64_t usage, buffer_handle_t* handle, uint32_t* stride,
/frameworks/native/libs/ui/include/ui/
DGraphicBufferAllocator.h51 uint64_t usage, buffer_handle_t* handle, uint32_t* stride,
62 uint64_t usage, buffer_handle_t* handle, uint32_t* stride,
70 buffer_handle_t* handle, uint32_t* stride, uint64_t graphicBufferId,
84 uint32_t stride; member
93 uint64_t usage, buffer_handle_t* handle, uint32_t* stride,
/frameworks/base/opengl/java/android/opengl/
DGLES10.java387 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 …]

1234567891011