From: Changyeon Lee Date: Wed, 28 Mar 2018 12:00:44 +0000 (+0900) Subject: align size NV21 format X-Git-Tag: accepted/tizen/unified/20180404.063414~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F45%2F174145%2F2;p=platform%2Fadaptation%2Fsamsung_exynos%2Flibtbm-exynos.git align size NV21 format Change-Id: Ib7f820e27bd187b605328bb10dd116f12b2acad1 --- diff --git a/src/tbm_bufmgr_exynos.c b/src/tbm_bufmgr_exynos.c index f56f8f7..00e057d 100644 --- a/src/tbm_bufmgr_exynos.c +++ b/src/tbm_bufmgr_exynos.c @@ -1142,6 +1142,7 @@ tbm_exynos_bufmgr_get_plane_data(tbm_backend_bufmgr_data *bufmgr_data, * index 1 = Cb:Cr plane, [15:0] Cb:Cr little endian */ case TBM_FORMAT_NV12: + case TBM_FORMAT_NV21: bpp = 12; if (plane_idx == 0) { _offset = 0; @@ -1157,21 +1158,6 @@ tbm_exynos_bufmgr_get_plane_data(tbm_backend_bufmgr_data *bufmgr_data, _bo_idx = 1; } break; - case TBM_FORMAT_NV21: - bpp = 12; - if (plane_idx == 0) { - _offset = 0; - _pitch = SIZE_ALIGN(width, TBM_SURFACE_ALIGNMENT_PITCH_YUV); - _size = SIZE_ALIGN(_pitch * height, g_tbm_surface_alignment_plane); - _bo_idx = 0; - } else if (plane_idx == 1) { - _offset = width * height; - _pitch = SIZE_ALIGN(width, TBM_SURFACE_ALIGNMENT_PITCH_YUV / 2); - _size = SIZE_ALIGN(_pitch * (height / 2), g_tbm_surface_alignment_plane); - _bo_idx = 0; - } - break; - case TBM_FORMAT_NV16: case TBM_FORMAT_NV61: bpp = 16;