Home
last modified time | relevance | path

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

1234567891011

/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 …]
Dpnw_rotate.c88 int stride = 0; in get_surface_stride() local
93 stride = 512; in get_surface_stride()
95 stride = 1024; in get_surface_stride()
97 stride = 1280; in get_surface_stride()
100 stride = 2048; in get_surface_stride()
104 stride = 2048; in get_surface_stride()
106 stride = 4096; in get_surface_stride()
108 stride = (width + 0x3f) & ~0x3f; in get_surface_stride()
111 return stride; in get_surface_stride()
558 share_info->scaling_luma_stride = psb_surface->stride; in psb_CreateScalingSurface()
[all …]
/hardware/interfaces/graphics/allocator/2.0/default/
DGralloc0Allocator.cpp71 uint32_t stride = 0; in allocate() local
84 if (stride == 0) { in allocate()
85 stride = tmpStride; in allocate()
86 } else if (stride != tmpStride) { in allocate()
89 stride = 0; in allocate()
102 hidl_cb(error, stride, hidl_buffers); in allocate()
120 int stride = 0; in allocateOne() local
123 &buffer, &stride); in allocateOne()
134 *outStride = stride; in allocateOne()
DGralloc1Allocator.cpp134 uint32_t stride = 0; in allocate() local
147 if (stride == 0) { in allocate()
148 stride = tmpStride; in allocate()
149 } else if (stride != tmpStride) { in allocate()
152 stride = 0; in allocate()
167 hidl_cb(error, stride, hidl_buffers); in allocate()
303 uint32_t stride = 0; in allocateOne() local
304 error = mDispatch.getStride(mDevice, buffer, &stride); in allocateOne()
311 *outStride = stride; in allocateOne()
/hardware/intel/img/hwcomposer/merrifield/ips/common/
DRotationBufferProvider.cpp121 int stride = 0; in getStride() local
123 stride = 512; in getStride()
125 stride = 1024; in getStride()
127 stride = 1280; in getStride()
129 stride = 2048; in getStride()
131 stride = 2048; in getStride()
133 stride = 4096; in getStride()
135 stride = (width + 0x3f) & ~0x3f; in getStride()
136 return stride; in getStride()
158 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.cpp121 int stride = 0; in getStride() local
123 stride = 512; in getStride()
125 stride = 1024; in getStride()
127 stride = 1280; in getStride()
129 stride = 2048; in getStride()
131 stride = 2048; in getStride()
133 stride = 4096; in getStride()
135 stride = (width + 0x3f) & ~0x3f; in getStride()
136 return stride; in getStride()
158 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/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/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/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()
DAnnCursorPlane.cpp125 uint32_t stride = mapper.getStride().rgb.stride; in setDataBuffer() local
133 srcPixel = p + i*stride + j*4; in setDataBuffer()
148 uint32_t stride = mapper.getStride().rgb.stride; in setDataBuffer() local
157 srcPixel = p + i*stride + j*4; in setDataBuffer()
/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/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/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/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/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/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/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 …]
/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/intel/img/hwcomposer/moorefield_hdmi/include/
DDataBuffer.h32 typedef struct stride { struct
35 uint32_t stride; argument
64 void setStride(stride_t& stride) { mStride = stride; } in setStride() argument
/hardware/intel/img/hwcomposer/merrifield/include/
DDataBuffer.h32 typedef struct stride { struct
35 uint32_t stride; member
64 void setStride(stride_t& stride) { mStride = stride; } in setStride() argument
/hardware/intel/img/hwcomposer/merrifield/test/
Dnv12_ved_test.cpp32 void fillYUVBuffer(uint8_t* buf, int w, int h, int stride) { in fillYUVBuffer() argument
36 int yuvTexStrideY = stride; in fillYUVBuffer()
64 void loadYUVBufferFromFile(uint8_t* buf, int w, int h, int stride) { in loadYUVBufferFromFile() argument
75 printf("buf=%p, w=%d,h=%d,stride=%d\n", buf, w, h, stride); in loadYUVBufferFromFile()
79 offset = line * stride; in loadYUVBufferFromFile()

1234567891011