Home
last modified time | relevance | path

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

12345678910>>...16

/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_stream.c2682 int stride = 0, scanline = 0; in mm_stream_calc_offset_preview() local
2705 stride = PAD_TO_SIZE(dim->width, width_padding); in mm_stream_calc_offset_preview()
2709 buf_planes->plane_info.mp[0].len = (uint32_t)(stride * scanline); in mm_stream_calc_offset_preview()
2712 buf_planes->plane_info.mp[0].stride = stride; in mm_stream_calc_offset_preview()
2717 stride = PAD_TO_SIZE(dim->width, width_padding); in mm_stream_calc_offset_preview()
2721 (uint32_t)(stride * scanline); in mm_stream_calc_offset_preview()
2724 buf_planes->plane_info.mp[1].stride = stride; in mm_stream_calc_offset_preview()
2739 stride = PAD_TO_SIZE(dim->width, CAM_PAD_TO_32); in mm_stream_calc_offset_preview()
2742 stride = PAD_TO_SIZE(dim->width, padding->width_padding); in mm_stream_calc_offset_preview()
2747 PAD_TO_SIZE((uint32_t)(stride * scanline), CAM_PAD_TO_4K); in mm_stream_calc_offset_preview()
[all …]
/hardware/interfaces/automotive/evs/1.0/vts/functional/
DFrameHandler.cpp228 tgtBuffer.stride); in copyBufferContents()
232 srcBuffer.stride); in copyBufferContents()
247 tgtPixels, tgtBuffer.stride); in copyBufferContents()
251 tgtPixels, tgtBuffer.stride); in copyBufferContents()
254 srcPixels, srcBuffer.stride, in copyBufferContents()
255 tgtPixels, tgtBuffer.stride); in copyBufferContents()
258 srcPixels, srcBuffer.stride, in copyBufferContents()
259 tgtPixels, tgtBuffer.stride, in copyBufferContents()
269 tgtPixels, tgtBuffer.stride); in copyBufferContents()
273 tgtPixels, tgtBuffer.stride); in copyBufferContents()
[all …]
/hardware/qcom/msm8x09/kernel-headers/media/
Dmsm_media_info.h418 unsigned int alignment, stride = 0; in VENUS_Y_STRIDE() local
428 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE()
432 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE()
433 stride = MSM_MEDIA_ALIGN(stride * 4/3, alignment); in VENUS_Y_STRIDE()
439 return stride; in VENUS_Y_STRIDE()
444 unsigned int alignment, stride = 0; in VENUS_UV_STRIDE() local
454 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE()
458 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_UV_STRIDE()
459 stride = MSM_MEDIA_ALIGN(stride * 4/3, alignment); in VENUS_UV_STRIDE()
465 return stride; in VENUS_UV_STRIDE()
[all …]
/hardware/qcom/msm8x09/original-kernel-headers/media/
Dmsm_media_info.h418 unsigned int alignment, stride = 0; in VENUS_Y_STRIDE() local
428 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE()
432 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE()
433 stride = MSM_MEDIA_ALIGN(stride * 4/3, alignment); in VENUS_Y_STRIDE()
439 return stride; in VENUS_Y_STRIDE()
444 unsigned int alignment, stride = 0; in VENUS_UV_STRIDE() local
454 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE()
458 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_UV_STRIDE()
459 stride = MSM_MEDIA_ALIGN(stride * 4/3, alignment); in VENUS_UV_STRIDE()
465 return stride; in VENUS_UV_STRIDE()
[all …]
/hardware/qcom/msm8996/original-kernel-headers/media/
Dmsm_media_info.h418 unsigned int alignment, stride = 0; in VENUS_Y_STRIDE() local
428 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE()
432 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE()
433 stride = MSM_MEDIA_ALIGN(stride * 4/3, alignment); in VENUS_Y_STRIDE()
439 return stride; in VENUS_Y_STRIDE()
444 unsigned int alignment, stride = 0; in VENUS_UV_STRIDE() local
454 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE()
458 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_UV_STRIDE()
459 stride = MSM_MEDIA_ALIGN(stride * 4/3, alignment); in VENUS_UV_STRIDE()
465 return stride; in VENUS_UV_STRIDE()
[all …]
/hardware/qcom/msm8996/kernel-headers/media/
Dmsm_media_info.h418 unsigned int alignment, stride = 0; in VENUS_Y_STRIDE() local
428 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE()
432 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE()
433 stride = MSM_MEDIA_ALIGN(stride * 4/3, alignment); in VENUS_Y_STRIDE()
439 return stride; in VENUS_Y_STRIDE()
444 unsigned int alignment, stride = 0; in VENUS_UV_STRIDE() local
454 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE()
458 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_UV_STRIDE()
459 stride = MSM_MEDIA_ALIGN(stride * 4/3, alignment); in VENUS_UV_STRIDE()
465 return stride; in VENUS_UV_STRIDE()
[all …]
/hardware/qcom/msm8998/original-kernel-headers/media/
Dmsm_media_info.h607 unsigned int alignment, stride = 0; in VENUS_Y_STRIDE() local
618 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE()
622 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE()
623 stride = MSM_MEDIA_ALIGN(stride * 4/3, alignment); in VENUS_Y_STRIDE()
627 stride = MSM_MEDIA_ALIGN(width * 2, alignment); in VENUS_Y_STRIDE()
633 return stride; in VENUS_Y_STRIDE()
638 unsigned int alignment, stride = 0; in VENUS_UV_STRIDE() local
649 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE()
653 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_UV_STRIDE()
654 stride = MSM_MEDIA_ALIGN(stride * 4/3, alignment); in VENUS_UV_STRIDE()
[all …]
/hardware/qcom/msm8998/kernel-headers/media/
Dmsm_media_info.h607 unsigned int alignment, stride = 0; in VENUS_Y_STRIDE() local
618 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE()
622 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_Y_STRIDE()
623 stride = MSM_MEDIA_ALIGN(stride * 4/3, alignment); in VENUS_Y_STRIDE()
627 stride = MSM_MEDIA_ALIGN(width * 2, alignment); in VENUS_Y_STRIDE()
633 return stride; in VENUS_Y_STRIDE()
638 unsigned int alignment, stride = 0; in VENUS_UV_STRIDE() local
649 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE()
653 stride = MSM_MEDIA_ALIGN(width, 192); in VENUS_UV_STRIDE()
654 stride = MSM_MEDIA_ALIGN(stride * 4/3, alignment); in VENUS_UV_STRIDE()
[all …]
/hardware/interfaces/graphics/allocator/2.0/utils/passthrough/include/allocator-passthrough/2.0/
DGralloc0Hal.h82 uint32_t stride = 0; in allocateBuffers() local
97 if (stride == 0) { in allocateBuffers()
98 stride = tmpStride; in allocateBuffers()
99 } else if (stride != tmpStride) { in allocateBuffers()
111 *outStride = stride; in allocateBuffers()
134 int stride = 0; in allocateOneBuffer() local
136 info.usage, &buffer, &stride); in allocateOneBuffer()
140 *outStride = stride; in allocateOneBuffer()
DGralloc1Hal.h97 uint32_t stride = 0; in allocateBuffers() local
112 if (stride == 0) { in allocateBuffers()
113 stride = tmpStride; in allocateBuffers()
114 } else if (stride != tmpStride) { in allocateBuffers()
128 *outStride = stride; in allocateBuffers()
321 uint32_t stride = 0; in allocateOneBuffer() local
322 error = mDispatch.getStride(mDevice, buffer, &stride); in allocateOneBuffer()
329 *outStride = stride; in allocateOneBuffer()
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-lib2d-interface/test/
Dmm_lib2d_test.c113 int32_t stride; member
142 int height, int stride, char *fname) in lib2d_dump_tga() argument
162 pd[(i*stride>>2)+j] & 0xff, // b in lib2d_dump_tga()
163 (pd[(i*stride>>2)+j] >> 8) & 0xff, // g in lib2d_dump_tga()
164 (pd[(i*stride>>2)+j] >> 16) & 0xff, // r in lib2d_dump_tga()
165 (pd[(i*stride>>2)+j] >> 24) & 0xff); // a in lib2d_dump_tga()
332 int32_t stride = 0; in main() local
408 input_yuv_stride = input_nv21[index].stride; in main()
420 filename, filename_in, width, height, stride); in main()
447 stride = width * 4; in main()
[all …]
/hardware/interfaces/graphics/mapper/2.1/vts/functional/
DVtsHalGraphicsMapperV2_1TargetTest.cpp65 uint32_t stride; in TEST_P() local
66 ASSERT_NO_FATAL_FAILURE(bufferHandle = mGralloc->allocate(mDummyDescriptorInfo, true, &stride)); in TEST_P()
68 ASSERT_TRUE(mGralloc->validateBufferSize(bufferHandle, mDummyDescriptorInfo, stride)); in TEST_P()
111 uint32_t stride; in TEST_P() local
113 bufferHandle = const_cast<native_handle_t*>(mGralloc->allocate(info, true, &stride))); in TEST_P()
117 Error ret = mGralloc->getMapper()->validateBufferSize(bufferHandle, info, stride); in TEST_P()
123 ret = mGralloc->getMapper()->validateBufferSize(bufferHandle, info, stride); in TEST_P()
129 ret = mGralloc->getMapper()->validateBufferSize(bufferHandle, info, stride); in TEST_P()
135 ret = mGralloc->getMapper()->validateBufferSize(bufferHandle, info, stride); in TEST_P()
140 ret = mGralloc->getMapper()->validateBufferSize(bufferHandle, mDummyDescriptorInfo, stride * 2); in TEST_P()
/hardware/qcom/msm8x84/kernel-headers/media/
Dmsm_media_info.h154 unsigned int alignment, stride = 0; in VENUS_Y_STRIDE() local
163 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE()
169 return stride; in VENUS_Y_STRIDE()
174 unsigned int alignment, stride = 0; in VENUS_UV_STRIDE() local
183 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE()
189 return stride; in VENUS_UV_STRIDE()
/hardware/qcom/msm8x84/original-kernel-headers/media/
Dmsm_media_info.h154 unsigned int alignment, stride = 0; in VENUS_Y_STRIDE() local
163 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE()
169 return stride; in VENUS_Y_STRIDE()
174 unsigned int alignment, stride = 0; in VENUS_UV_STRIDE() local
183 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE()
189 return stride; in VENUS_UV_STRIDE()
/hardware/google/av/media/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 …]
/hardware/qcom/msm8994/original-kernel-headers/media/
Dmsm_media_info.h333 unsigned int alignment, stride = 0; in VENUS_Y_STRIDE() local
343 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE()
347 stride = MSM_MEDIA_ALIGN(width * 4/3, alignment); in VENUS_Y_STRIDE()
353 return stride; in VENUS_Y_STRIDE()
358 unsigned int alignment, stride = 0; in VENUS_UV_STRIDE() local
368 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE()
372 stride = MSM_MEDIA_ALIGN(width * 4/3, alignment); in VENUS_UV_STRIDE()
378 return stride; in VENUS_UV_STRIDE()
/hardware/qcom/msm8994/kernel-headers/media/
Dmsm_media_info.h333 unsigned int alignment, stride = 0; in VENUS_Y_STRIDE() local
343 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE()
347 stride = MSM_MEDIA_ALIGN(width * 4/3, alignment); in VENUS_Y_STRIDE()
353 return stride; in VENUS_Y_STRIDE()
358 unsigned int alignment, stride = 0; in VENUS_UV_STRIDE() local
368 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE()
372 stride = MSM_MEDIA_ALIGN(width * 4/3, alignment); in VENUS_UV_STRIDE()
378 return stride; in VENUS_UV_STRIDE()
/hardware/qcom/display/msm8960/libgralloc/
Dalloc_controller.cpp107 int stride = ALIGN(width, 32); in getStride() local
127 stride = LINK_adreno_compute_padding(stride, bpp, in getStride()
135 stride = ALIGN(width, 32); in getStride()
138 stride = ALIGN(width, 128); in getStride()
148 stride = ALIGN(width, 16); in getStride()
151 stride = VENUS_Y_STRIDE(COLOR_FMT_NV12, width); in getStride()
154 stride = width; in getStride()
159 return stride; in getStride()
/hardware/qcom/camera/msm8998/QCamera2/util/
DQCameraDualFOVPP.cpp435 frm_offset.mp[0].stride, frm_offset.mp[0].scanline, in process()
621 inParams.wide.stride = offset.mp[0].stride; in getInputParams()
629 inParams.tele.stride = offset.mp[0].stride; in getInputParams()
692 memcpy(pOut, pWide, inParams.wide.stride * inParams.wide.scanline / 2); in doDualFovPPProcess()
693 memcpy(pOut + inParams.wide.stride * inParams.wide.scanline / 2, in doDualFovPPProcess()
694 pTele + inParams.wide.stride * inParams.wide.scanline / 2, in doDualFovPPProcess()
695 inParams.wide.stride * inParams.wide.scanline / 2); in doDualFovPPProcess()
698 uint32_t uv_offset = inParams.wide.stride * inParams.wide.scanline; in doDualFovPPProcess()
701 inParams.wide.stride * (inParams.wide.scanline / 2) / 2); in doDualFovPPProcess()
702 memcpy(pOut + uv_offset + inParams.wide.stride * (inParams.wide.scanline / 2) / 2, in doDualFovPPProcess()
[all …]
/hardware/google/av/codec2/vndk/
DC2AllocatorGralloc.cpp76 uint32_t stride; member
116 uint32_t stride; member
165 uint32_t stride, uint32_t generation, uint64_t igbp_id = 0, uint32_t igbp_slot = 0) { in WrapAndMoveNativeHandle() argument
173 stride, generation, uint32_t(igbp_id & 0xFFFFFFFF), uint32_t(igbp_id >> 32), in WrapAndMoveNativeHandle()
187 uint32_t stride, uint32_t generation, uint64_t igbp_id = 0, uint32_t igbp_slot = 0) { in WrapNativeHandle() argument
196 clone, width, height, format, usage, stride, generation, igbp_id, igbp_slot); in WrapNativeHandle()
237 uint64_t *usage, uint32_t *stride, in Import() argument
247 *stride = xd->stride; in Import()
267 uint32_t width, uint32_t height, uint32_t format, uint64_t usage, uint32_t stride, in WrapNativeCodec2GrallocHandle() argument
269 return C2HandleGralloc::WrapNativeHandle(handle, width, height, format, usage, stride, in WrapNativeCodec2GrallocHandle()
[all …]
/hardware/qcom/sm8150/display/sdm/include/core/
Dbuffer_allocator.h69 uint32_t stride = 0; //!< Specifies allocated buffer stride in bytes. member
151 uint32_t stride[4], uint32_t offset[4], in GetBufferLayout()
154 (void) stride; in GetBufferLayout()
/hardware/interfaces/graphics/allocator/2.0/utils/hal/include/allocator-hal/2.0/
DAllocator.h59 uint32_t stride; in allocate() local
61 Error error = mHal->allocateBuffers(descriptor, count, &stride, &buffers); in allocate()
68 hidl_cb(Error::NONE, stride, hidlBuffers); in allocate()
/hardware/qcom/media/msm8974/libc2dcolorconvert/
DC2DColorConverter.cpp317 surfaceDef->stride = calcStride(format, width); in getDummySurfaceDef()
540 req->stride = calcStride(mSrcFormat, mSrcWidth); in getBuffReq()
550 req->stride = calcStride(mDstFormat, mDstWidth); in getBuffReq()
621 size_t stride, sliceHeight; in dumpOutput() local
638 stride = dstSurfaceDef->stride0; in dumpOutput()
644 base += stride; in dumpOutput()
652 stride = dstSurfaceDef->stride1; in dumpOutput()
656 base += stride; in dumpOutput()
661 stride = dstSurfaceDef->stride2; in dumpOutput()
666 base += stride; in dumpOutput()
[all …]
/hardware/qcom/sdm845/display/gralloc/
DQtiAllocator.cpp86 uint32_t stride = 0; in allocate() local
89 stride = static_cast<uint32_t>(PRIV_HANDLE_CONST(buffers[0].getNativeHandle())->width); in allocate()
92 hidl_cb(err, stride, hidl_buffers); in allocate()
/hardware/qcom/sm8150/display/gralloc/
DQtiAllocator.cpp86 uint32_t stride = 0; in allocate() local
89 stride = static_cast<uint32_t>(PRIV_HANDLE_CONST(buffers[0].getNativeHandle())->width); in allocate()
92 hidl_cb(err, stride, hidl_buffers); in allocate()

12345678910>>...16