Home
last modified time | relevance | path

Searched refs:layout (Results 1 – 25 of 90) sorted by relevance

1234

/hardware/google/av/media/sfplugin/utils/
DCodec2BufferUtils.cpp68 const C2PlanarLayout &layout = view.layout(); in _ImageCopy() local
71 for (uint32_t i = 0; i < layout.numPlanes; ++i) { in _ImageCopy()
76 const C2PlaneInfo &plane = layout.planes[i]; in _ImageCopy()
129 int32_t src_stride_y = view.layout().planes[0].rowInc; in ImageCopy()
130 int32_t src_stride_u = view.layout().planes[1].rowInc; in ImageCopy()
131 int32_t src_stride_v = view.layout().planes[2].rowInc; in ImageCopy()
170 int32_t dst_stride_y = view.layout().planes[0].rowInc; in ImageCopy()
171 int32_t dst_stride_u = view.layout().planes[1].rowInc; in ImageCopy()
172 int32_t dst_stride_v = view.layout().planes[2].rowInc; in ImageCopy()
191 const C2PlanarLayout &layout = view.layout(); in IsYUV420() local
[all …]
/hardware/qcom/sdm845/display/gralloc/
DQtiMapper.cpp193 YCbCrLayout layout = {}; in lockYCbCr() local
196 hidl_cb(err, layout); in lockYCbCr()
203 hidl_cb(Error::BAD_VALUE, layout); in lockYCbCr()
205 layout.y = yuv_plane_info[0].y; in lockYCbCr()
206 layout.cr = yuv_plane_info[0].cr; in lockYCbCr()
207 layout.cb = yuv_plane_info[0].cb; in lockYCbCr()
208 layout.yStride = static_cast<uint32_t>(yuv_plane_info[0].ystride); in lockYCbCr()
209 layout.cStride = static_cast<uint32_t>(yuv_plane_info[0].cstride); in lockYCbCr()
210 layout.chromaStep = static_cast<uint32_t>(yuv_plane_info[0].chroma_step); in lockYCbCr()
211 hidl_cb(Error::NONE, layout); in lockYCbCr()
[all …]
Dgr_device_impl.cpp512 struct android_flex_layout *layout) { in GetFlexLayout() argument
524 layout->format = FLEX_FORMAT_YCbCr; in GetFlexLayout()
525 layout->num_planes = 3; in GetFlexLayout()
527 for (uint32_t i = 0; i < layout->num_planes; i++) { in GetFlexLayout()
528 layout->planes[i].bits_per_component = 8; in GetFlexLayout()
529 layout->planes[i].bits_used = 8; in GetFlexLayout()
530 layout->planes[i].h_increment = 1; in GetFlexLayout()
531 layout->planes[i].v_increment = 1; in GetFlexLayout()
532 layout->planes[i].h_subsampling = 2; in GetFlexLayout()
533 layout->planes[i].v_subsampling = 2; in GetFlexLayout()
[all …]
/hardware/qcom/display/msm8994/libgralloc/
Dmapper.cpp337 struct android_flex_layout* layout) in ycbcr_to_flexible_layout() argument
339 layout->format = FLEX_FORMAT_YCbCr; in ycbcr_to_flexible_layout()
340 layout->num_planes = 3; in ycbcr_to_flexible_layout()
342 for (uint32_t i = 0; i < layout->num_planes; i++) { in ycbcr_to_flexible_layout()
343 layout->planes[i].bits_per_component = 8; in ycbcr_to_flexible_layout()
344 layout->planes[i].bits_used = 8; in ycbcr_to_flexible_layout()
345 layout->planes[i].h_increment = 1; in ycbcr_to_flexible_layout()
346 layout->planes[i].v_increment = 1; in ycbcr_to_flexible_layout()
347 layout->planes[i].h_subsampling = 2; in ycbcr_to_flexible_layout()
348 layout->planes[i].v_subsampling = 2; in ycbcr_to_flexible_layout()
[all …]
/hardware/qcom/display/msm8996/libgralloc/
Dmapper.cpp336 struct android_flex_layout* layout) in ycbcr_to_flexible_layout() argument
338 layout->format = FLEX_FORMAT_YCbCr; in ycbcr_to_flexible_layout()
339 layout->num_planes = 3; in ycbcr_to_flexible_layout()
341 for (uint32_t i = 0; i < layout->num_planes; i++) { in ycbcr_to_flexible_layout()
342 layout->planes[i].bits_per_component = 8; in ycbcr_to_flexible_layout()
343 layout->planes[i].bits_used = 8; in ycbcr_to_flexible_layout()
344 layout->planes[i].h_increment = 1; in ycbcr_to_flexible_layout()
345 layout->planes[i].v_increment = 1; in ycbcr_to_flexible_layout()
346 layout->planes[i].h_subsampling = 2; in ycbcr_to_flexible_layout()
347 layout->planes[i].v_subsampling = 2; in ycbcr_to_flexible_layout()
[all …]
/hardware/interfaces/graphics/mapper/2.0/vts/functional/
DVtsHalGraphicsMapperV2_0TargetTest.cpp331 YCbCrLayout layout; in TEST_P() local
332 ASSERT_NO_FATAL_FAILURE(layout = mGralloc->lockYCbCr(bufferHandle, info.usage, region, fence)); in TEST_P()
334 auto yData = static_cast<uint8_t*>(layout.y); in TEST_P()
335 auto cbData = static_cast<uint8_t*>(layout.cb); in TEST_P()
336 auto crData = static_cast<uint8_t*>(layout.cr); in TEST_P()
341 yData[layout.yStride * y + x] = val; in TEST_P()
343 cbData[layout.cStride * y / 2 + x / 2] = val; in TEST_P()
344 crData[layout.cStride * y / 2 + x / 2] = val; in TEST_P()
352 ASSERT_NO_FATAL_FAILURE(layout = mGralloc->lockYCbCr(bufferHandle, info.usage, region, fence)); in TEST_P()
354 yData = static_cast<uint8_t*>(layout.y); in TEST_P()
[all …]
/hardware/google/av/media/sfplugin/
DCodec2Buffer.cpp231 const C2PlanarLayout &layout = view.layout(); in GraphicView2MediaImageConverter() local
232 if (layout.numPlanes == 0) { in GraphicView2MediaImageConverter()
237 mAllocatedDepth = layout.planes[0].allocatedDepth; in GraphicView2MediaImageConverter()
238 uint32_t bitDepth = layout.planes[0].bitDepth; in GraphicView2MediaImageConverter()
241 uint32_t mStride = align(mWidth, 2) * divUp(layout.planes[0].allocatedDepth, 8u); in GraphicView2MediaImageConverter()
244 switch (layout.type) { in GraphicView2MediaImageConverter()
247 if (layout.numPlanes != 3) { in GraphicView2MediaImageConverter()
248 ALOGD("Converter: %d planes for YUV layout", layout.numPlanes); in GraphicView2MediaImageConverter()
252 if (layout.planes[0].channel != C2PlaneInfo::CHANNEL_Y in GraphicView2MediaImageConverter()
253 || layout.planes[1].channel != C2PlaneInfo::CHANNEL_CB in GraphicView2MediaImageConverter()
[all …]
/hardware/interfaces/graphics/mapper/3.0/vts/functional/
DVtsHalGraphicsMapperV3_0TargetTest.cpp345 YCbCrLayout layout; in TEST_P() local
346 ASSERT_NO_FATAL_FAILURE(layout = mGralloc->lockYCbCr(bufferHandle, info.usage, region, fence)); in TEST_P()
348 auto yData = static_cast<uint8_t*>(layout.y); in TEST_P()
349 auto cbData = static_cast<uint8_t*>(layout.cb); in TEST_P()
350 auto crData = static_cast<uint8_t*>(layout.cr); in TEST_P()
355 yData[layout.yStride * y + x] = val; in TEST_P()
357 cbData[layout.cStride * y / 2 + x / 2] = val; in TEST_P()
358 crData[layout.cStride * y / 2 + x / 2] = val; in TEST_P()
366 ASSERT_NO_FATAL_FAILURE(layout = mGralloc->lockYCbCr(bufferHandle, info.usage, region, fence)); in TEST_P()
368 yData = static_cast<uint8_t*>(layout.y); in TEST_P()
[all …]
/hardware/qcom/sm8150/display/gralloc/
DQtiMapper.cpp193 YCbCrLayout layout = {}; in lockYCbCr() local
196 hidl_cb(err, layout); in lockYCbCr()
203 hidl_cb(Error::BAD_VALUE, layout); in lockYCbCr()
205 layout.y = yuv_plane_info[0].y; in lockYCbCr()
206 layout.cr = yuv_plane_info[0].cr; in lockYCbCr()
207 layout.cb = yuv_plane_info[0].cb; in lockYCbCr()
208 layout.yStride = static_cast<uint32_t>(yuv_plane_info[0].ystride); in lockYCbCr()
209 layout.cStride = static_cast<uint32_t>(yuv_plane_info[0].cstride); in lockYCbCr()
210 layout.chromaStep = static_cast<uint32_t>(yuv_plane_info[0].chroma_step); in lockYCbCr()
211 hidl_cb(Error::NONE, layout); in lockYCbCr()
Dgr_device_impl.cpp531 struct android_flex_layout *layout) { in GetFlexLayout() argument
543 layout->format = FLEX_FORMAT_YCbCr; in GetFlexLayout()
544 layout->num_planes = 3; in GetFlexLayout()
546 for (uint32_t i = 0; i < layout->num_planes; i++) { in GetFlexLayout()
547 layout->planes[i].bits_per_component = 8; in GetFlexLayout()
548 layout->planes[i].bits_used = 8; in GetFlexLayout()
549 layout->planes[i].h_increment = 1; in GetFlexLayout()
550 layout->planes[i].v_increment = 1; in GetFlexLayout()
551 layout->planes[i].h_subsampling = 2; in GetFlexLayout()
552 layout->planes[i].v_subsampling = 2; in GetFlexLayout()
[all …]
/hardware/interfaces/camera/common/1.0/default/
DHandleImporter.cpp91 YCbCrLayout layout = {}; in lockYCbCrInternal() local
99 layout.y = tmpLayout.y; in lockYCbCrInternal()
100 layout.cb = tmpLayout.cb; in lockYCbCrInternal()
101 layout.cr = tmpLayout.cr; in lockYCbCrInternal()
102 layout.yStride = tmpLayout.yStride; in lockYCbCrInternal()
103 layout.cStride = tmpLayout.cStride; in lockYCbCrInternal()
104 layout.chromaStep = tmpLayout.chromaStep; in lockYCbCrInternal()
109 return layout; in lockYCbCrInternal()
/hardware/google/av/media/codecs/vpx/
DC2SoftVpxEnc.cpp469 const C2PlanarLayout &layout = rView->layout(); in process() local
479 switch (layout.type) { in process()
495 if (layout.planes[layout.PLANE_Y].colInc == 1 in process()
496 && layout.planes[layout.PLANE_U].colInc == 1 in process()
497 && layout.planes[layout.PLANE_V].colInc == 1) { in process()
503 raw_frame.stride[0] = layout.planes[layout.PLANE_Y].rowInc; in process()
504 raw_frame.stride[1] = layout.planes[layout.PLANE_U].rowInc; in process()
505 raw_frame.stride[2] = layout.planes[layout.PLANE_V].rowInc; in process()
529 ALOGE("Unrecognized plane type: %d", layout.type); in process()
/hardware/google/av/codec2/vndk/
DC2AllocatorGralloc.cpp279 C2PlanarLayout *layout /* nonnull */, uint8_t **addr /* nonnull */) override;
348 C2PlanarLayout *layout /* nonnull */, uint8_t **addr /* nonnull */) { in map() argument
361 if (!layout || !addr) { in map()
424 layout->type = C2PlanarLayout::TYPE_YUV; in map()
425 layout->numPlanes = 3; in map()
426 layout->rootPlanes = 3; in map()
427 layout->planes[C2PlanarLayout::PLANE_Y] = { in map()
440 layout->planes[C2PlanarLayout::PLANE_U] = { in map()
453 layout->planes[C2PlanarLayout::PLANE_V] = { in map()
469 layout->rootPlanes = 2; in map()
[all …]
/hardware/qcom/sm8150/display/gpu_tonemapper/
Dforward_tonemap.inl24 "layout(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 "layout(binding = 1) uniform sampler3D tonemapper; \n"
26 "layout(binding = 2) uniform sampler2D xform; \n"
27 "layout(location = 3) uniform vec2 tSO; \n"
29 "layout(location = 4) uniform vec2 xSO; \n"
Drgba_inverse_tonemap.inl24 …"layout(binding = 0) uniform samplerExternalOES externalTexture; …
25 …"layout(binding = 1) uniform sampler3D tonemapper; …
26 …"layout(binding = 2) uniform sampler2D xform; …
27 …"layout(location = 3) uniform vec2 tSO; …
29 …"layout(location = 4) uniform vec2 xSO; …
/hardware/qcom/display/msm8998/gpu_tonemapper/
Dforward_tonemap.inl24 "layout(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 "layout(binding = 1) uniform sampler3D tonemapper; \n"
26 "layout(binding = 2) uniform sampler2D xform; \n"
27 "layout(location = 3) uniform vec2 tSO; \n"
29 "layout(location = 4) uniform vec2 xSO; \n"
Drgba_inverse_tonemap.inl24 …"layout(binding = 0) uniform samplerExternalOES externalTexture; …
25 …"layout(binding = 1) uniform sampler3D tonemapper; …
26 …"layout(binding = 2) uniform sampler2D xform; …
27 …"layout(location = 3) uniform vec2 tSO; …
29 …"layout(location = 4) uniform vec2 xSO; …
/hardware/qcom/display/msm8909/gpu_tonemapper/
Dforward_tonemap.inl24 "layout(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 "layout(binding = 1) uniform sampler3D tonemapper; \n"
26 "layout(binding = 2) uniform sampler2D xform; \n"
27 "layout(location = 3) uniform vec2 tSO; \n"
29 "layout(location = 4) uniform vec2 xSO; \n"
Drgba_inverse_tonemap.inl24 …"layout(binding = 0) uniform samplerExternalOES externalTexture; …
25 …"layout(binding = 1) uniform sampler3D tonemapper; …
26 …"layout(binding = 2) uniform sampler2D xform; …
27 …"layout(location = 3) uniform vec2 tSO; …
29 …"layout(location = 4) uniform vec2 xSO; …
/hardware/qcom/sdm845/display/gpu_tonemapper/
Dforward_tonemap.inl24 "layout(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 "layout(binding = 1) uniform sampler3D tonemapper; \n"
26 "layout(binding = 2) uniform sampler2D xform; \n"
27 "layout(location = 3) uniform vec2 tSO; \n"
29 "layout(location = 4) uniform vec2 xSO; \n"
Drgba_inverse_tonemap.inl24 …"layout(binding = 0) uniform samplerExternalOES externalTexture; …
25 …"layout(binding = 1) uniform sampler3D tonemapper; …
26 …"layout(binding = 2) uniform sampler2D xform; …
27 …"layout(location = 3) uniform vec2 tSO; …
29 …"layout(location = 4) uniform vec2 xSO; …
/hardware/qcom/display/msm8909w_3100/gpu_tonemapper/
Dforward_tonemap.inl24 "layout(binding = 0) uniform samplerExternalOES externalTexture; \n"
25 "layout(binding = 1) uniform sampler3D tonemapper; \n"
26 "layout(binding = 2) uniform sampler2D xform; \n"
27 "layout(location = 3) uniform vec2 tSO; \n"
29 "layout(location = 4) uniform vec2 xSO; \n"
Drgba_inverse_tonemap.inl24 …"layout(binding = 0) uniform samplerExternalOES externalTexture; …
25 …"layout(binding = 1) uniform sampler3D tonemapper; …
26 …"layout(binding = 2) uniform sampler2D xform; …
27 …"layout(location = 3) uniform vec2 tSO; …
29 …"layout(location = 4) uniform vec2 xSO; …
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_buf_mgr.cpp768 struct android_flex_layout *layout) { in GetFlexLayout() argument
780 layout->format = FLEX_FORMAT_YCbCr; in GetFlexLayout()
781 layout->num_planes = 3; in GetFlexLayout()
783 for (uint32_t i = 0; i < layout->num_planes; i++) { in GetFlexLayout()
784 layout->planes[i].bits_per_component = 8; in GetFlexLayout()
785 layout->planes[i].bits_used = 8; in GetFlexLayout()
786 layout->planes[i].h_increment = 1; in GetFlexLayout()
787 layout->planes[i].v_increment = 1; in GetFlexLayout()
788 layout->planes[i].h_subsampling = 2; in GetFlexLayout()
789 layout->planes[i].v_subsampling = 2; in GetFlexLayout()
[all …]
/hardware/qcom/display/msm8909/gralloc/
Dgr_buf_mgr.cpp868 struct android_flex_layout *layout) { in GetFlexLayout() argument
880 layout->format = FLEX_FORMAT_YCbCr; in GetFlexLayout()
881 layout->num_planes = 3; in GetFlexLayout()
883 for (uint32_t i = 0; i < layout->num_planes; i++) { in GetFlexLayout()
884 layout->planes[i].bits_per_component = 8; in GetFlexLayout()
885 layout->planes[i].bits_used = 8; in GetFlexLayout()
886 layout->planes[i].h_increment = 1; in GetFlexLayout()
887 layout->planes[i].v_increment = 1; in GetFlexLayout()
888 layout->planes[i].h_subsampling = 2; in GetFlexLayout()
889 layout->planes[i].v_subsampling = 2; in GetFlexLayout()
[all …]

1234