Home
last modified time | relevance | path

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

12345678910>>...15

/hardware/intel/img/psb_video/src/
Dpsb_surface.c67 psb_surface->stride = 512; in psb_surface_create()
70 psb_surface->stride = 1024; in psb_surface_create()
73 psb_surface->stride = 1280; in psb_surface_create()
77 psb_surface->stride = 2048; in psb_surface_create()
82 psb_surface->stride = 2048; in psb_surface_create()
85 psb_surface->stride = 4096; in psb_surface_create()
88 psb_surface->stride = (width + 0x3f) & ~0x3f; in psb_surface_create()
92 psb_surface->chroma_offset = psb_surface->stride * height; in psb_surface_create()
93 psb_surface->size = (psb_surface->stride * height * 3) / 2; in psb_surface_create()
98 psb_surface->stride = (width * 4 + pitchAlignMask) & ~pitchAlignMask;; in psb_surface_create()
[all …]
/hardware/intel/img/hwcomposer/merrifield/ips/common/
DRotationBufferProvider.cpp122 int stride = 0; in getStride() local
124 stride = 512; in getStride()
126 stride = 1024; in getStride()
128 stride = 1280; in getStride()
130 stride = 2048; in getStride()
132 stride = 2048; in getStride()
134 stride = 4096; in getStride()
136 stride = (width + 0x3f) & ~0x3f; in getStride()
137 return stride; in getStride()
159 int stride; in createVaSurface() local
[all …]
DPlaneCapabilities.cpp84 const stride_t& stride = hwcLayer->getBufferStride(); in isSizeSupported() local
96 if (stride.rgb.stride > SPRITE_PLANE_MAX_STRIDE_LINEAR) { in isSizeSupported()
97 VTRACE("too large stride %d", stride.rgb.stride); in isSizeSupported()
128 if (stride.yuv.yStride > maxStride) { in isSizeSupported()
129 VTRACE("stride %d is too large", stride.yuv.yStride); in isSizeSupported()
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/common/
DRotationBufferProvider.cpp122 int stride = 0; in getStride() local
124 stride = 512; in getStride()
126 stride = 1024; in getStride()
128 stride = 1280; in getStride()
130 stride = 2048; in getStride()
132 stride = 2048; in getStride()
134 stride = 4096; in getStride()
136 stride = (width + 0x3f) & ~0x3f; in getStride()
137 return stride; in getStride()
159 int stride; in createVaSurface() local
[all …]
/hardware/intel/img/hwcomposer/merrifield/ips/anniedale/
DAnnRGBPlane.cpp94 uint32_t stride; in setDataBuffer() local
120 stride = mapper.getStride().rgb.stride; in setDataBuffer()
123 …linoff = srcY * stride + srcX * bpp + (mapper.getCrop().h - 1) * stride + (mapper.getCrop().w - 1… in setDataBuffer()
125 linoff = srcY * stride + srcX * bpp; in setDataBuffer()
128 if (linoff > (stride * mapper.getHeight())) { in setDataBuffer()
151 mContext.ctx.sp_ctx.stride = stride; in setDataBuffer()
162 mContext.ctx.sp_ctx.stride = align_to(srcW, 32) * 4; in setDataBuffer()
189 mContext.ctx.sp_ctx.stride, in setDataBuffer()
263 uint32_t stride; in setFramebufferTarget() local
284 stride = align_to((4 * align_to(mPosition.w, 32)), 64); in setFramebufferTarget()
[all …]
DPlaneCapabilities.cpp85 const stride_t& stride = hwcLayer->getBufferStride(); in isSizeSupported() local
97 VTRACE("stride %d", stride.rgb.stride); in isSizeSupported()
98 if (stride.rgb.stride > SPRITE_PLANE_MAX_STRIDE_LINEAR) { in isSizeSupported()
99 VTRACE("too large stride %d", stride.rgb.stride); in isSizeSupported()
130 if (stride.yuv.yStride > maxStride) { in isSizeSupported()
131 VTRACE("stride %d is too large", stride.yuv.yStride); in isSizeSupported()
/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/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/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/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/intel/img/hwcomposer/moorefield_hdmi/ips/anniedale/
DAnnRGBPlane.cpp153 uint32_t stride; in setDataBuffer() local
179 stride = mapper.getStride().rgb.stride; in setDataBuffer()
182 …linoff = srcY * stride + srcX * bpp + (mapper.getCrop().h - 1) * stride + (mapper.getCrop().w - 1… in setDataBuffer()
184 linoff = srcY * stride + srcX * bpp; in setDataBuffer()
187 if (linoff > (stride * mapper.getHeight())) { in setDataBuffer()
210 mContext.ctx.sp_ctx.stride = stride; in setDataBuffer()
221 mContext.ctx.sp_ctx.stride = align_to(srcW, 32) * 4; in setDataBuffer()
247 mContext.ctx.sp_ctx.stride, in setDataBuffer()
321 uint32_t stride; in setFramebufferTarget() local
342 stride = align_to((4 * align_to(mPosition.w, 32)), 64); in setFramebufferTarget()
[all …]
DPlaneCapabilities.cpp83 const stride_t& stride = hwcLayer->getBufferStride(); in isSizeSupported() local
95 VLOGTRACE("stride %d", stride.rgb.stride); in isSizeSupported()
96 if (stride.rgb.stride > SPRITE_PLANE_MAX_STRIDE_LINEAR) { in isSizeSupported()
97 VLOGTRACE("too large stride %d", stride.rgb.stride); in isSizeSupported()
128 if (stride.yuv.yStride > maxStride) { in isSizeSupported()
129 VLOGTRACE("stride %d is too large", stride.yuv.yStride); in isSizeSupported()
/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/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()
/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.cpp79 uint32_t stride; in TEST_F() local
80 ASSERT_NO_FATAL_FAILURE(bufferHandle = mGralloc->allocate(mDummyDescriptorInfo, true, &stride)); in TEST_F()
82 ASSERT_TRUE(mGralloc->validateBufferSize(bufferHandle, mDummyDescriptorInfo, stride)); in TEST_F()
125 uint32_t stride; in TEST_F() local
127 bufferHandle = const_cast<native_handle_t*>(mGralloc->allocate(info, true, &stride))); in TEST_F()
131 Error ret = mGralloc->getMapper()->validateBufferSize(bufferHandle, info, stride); in TEST_F()
137 ret = mGralloc->getMapper()->validateBufferSize(bufferHandle, info, stride); in TEST_F()
143 ret = mGralloc->getMapper()->validateBufferSize(bufferHandle, info, stride); in TEST_F()
149 ret = mGralloc->getMapper()->validateBufferSize(bufferHandle, info, stride); in TEST_F()
154 ret = mGralloc->getMapper()->validateBufferSize(bufferHandle, mDummyDescriptorInfo, stride * 2); in TEST_F()
/hardware/intel/img/hwcomposer/merrifield/ips/tangier/
DTngSpritePlane.cpp43 uint32_t stride; in setDataBuffer() local
66 stride = mapper.getStride().rgb.stride; in setDataBuffer()
68 linoff = (mapper.getCrop().h + srcY - 1) * stride + (srcX + mapper.getCrop().w - 1) * bpp; in setDataBuffer()
70 linoff = srcY * stride + srcX * bpp; in setDataBuffer()
82 if (linoff > (stride * mapper.getHeight())) { in setDataBuffer()
98 mContext.ctx.sp_ctx.stride = stride; in setDataBuffer()
113 mContext.ctx.sp_ctx.stride, in setDataBuffer()
/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/interfaces/automotive/evs/1.0/vts/functional/
DFrameHandler.cpp224 tgtBuffer.stride); in copyBufferContents()
228 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()
/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/intel/common/libmix/videoencoder/
DVideoEncoderUtils.cpp45 int usage, buffer_handle_t* handle, int32_t* stride) { in gfx_alloc() argument
57 stride); in gfx_alloc()
285 int stride = mVASurfaceStride = mVinfo.lumaStride; in doMapping() local
302 stride = tmp.lumaStride; in doMapping()
311 … if (gfx_alloc(width, height, HAL_PIXEL_FORMAT_NV12, usage, &mGfxHandle, &stride) != 0) in doMapping()
315 mGfxHandle, width, height, stride); in doMapping()
323 if (mAction & MAP_ACTION_ALIGN64 && stride % 64 != 0) { in doMapping()
325 stride = (stride + 63 ) & ~63; in doMapping()
335 mVASurface = CreateNewVASurface(mVADisplay, stride, height); in doMapping()
338 mVASurfaceWidth = mVASurfaceStride = stride; in doMapping()
[all …]

12345678910>>...15