diff options
author | Changyeon Lee <cyeon.lee@samsung.com> | 2023-08-02 19:00:42 +0900 |
---|---|---|
committer | Changyeon Lee <cyeon.lee@samsung.com> | 2023-08-02 19:00:42 +0900 |
commit | 2615d3a5ebdf7f0de3d4e37578f3a195488f828e (patch) | |
tree | 7ea602966d38ea0068f88dee37a0ca92e69ee00a | |
parent | 8fc8a33dffe70104b0c1f1cf3f9511f6a65485a9 (diff) | |
download | libtbm-exynos-tgm-2615d3a5ebdf7f0de3d4e37578f3a195488f828e.tar.gz libtbm-exynos-tgm-2615d3a5ebdf7f0de3d4e37578f3a195488f828e.tar.bz2 libtbm-exynos-tgm-2615d3a5ebdf7f0de3d4e37578f3a195488f828e.zip |
Fix stride of 4:2:2 YUV formattizen_8.0_m2_releaseaccepted/tizen/unified/dev/20240620.003334accepted/tizen/unified/20230803.174819accepted/tizen/8.0/unified/20231005.092528tizen_8.0accepted/tizen_8.0_unified
YUYV, YVYU, UYVY, VYUY format each four bytes is two pixels
Change-Id: I1984444fd37192fd42d2ee2ee9016111a787cf44
-rw-r--r-- | src/tbm_backend_exynos_tgm.c | 6 |
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; |