summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangyeon Lee <cyeon.lee@samsung.com>2023-08-02 19:00:42 +0900
committerChangyeon Lee <cyeon.lee@samsung.com>2023-08-02 19:00:42 +0900
commit2615d3a5ebdf7f0de3d4e37578f3a195488f828e (patch)
tree7ea602966d38ea0068f88dee37a0ca92e69ee00a
parent8fc8a33dffe70104b0c1f1cf3f9511f6a65485a9 (diff)
downloadlibtbm-exynos-tgm-2615d3a5ebdf7f0de3d4e37578f3a195488f828e.tar.gz
libtbm-exynos-tgm-2615d3a5ebdf7f0de3d4e37578f3a195488f828e.tar.bz2
libtbm-exynos-tgm-2615d3a5ebdf7f0de3d4e37578f3a195488f828e.zip
YUYV, YVYU, UYVY, VYUY format each four bytes is two pixels Change-Id: I1984444fd37192fd42d2ee2ee9016111a787cf44
-rw-r--r--src/tbm_backend_exynos_tgm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tbm_backend_exynos_tgm.c b/src/tbm_backend_exynos_tgm.c
index de20f09..edc82fd 100644
--- a/src/tbm_backend_exynos_tgm.c
+++ b/src/tbm_backend_exynos_tgm.c
@@ -1073,6 +1073,12 @@ tbm_exynos_bufmgr_get_plane_data(hal_tbm_bufmgr *bufmgr,
case HAL_TBM_FORMAT_YVYU:
case HAL_TBM_FORMAT_UYVY:
case HAL_TBM_FORMAT_VYUY:
+ bpp = 16;
+ _offset = 0;
+ _pitch = SIZE_ALIGN((width * bpp) >> 3, TBM_SURFACE_ALIGNMENT_PITCH_YUV);
+ _size = SIZE_ALIGN(_pitch * height, TBM_SURFACE_ALIGNMENT_PLANE);
+ _bo_idx = 0;
+ break;
case HAL_TBM_FORMAT_AYUV:
bpp = 32;
_offset = 0;