Use 16 align at UV Plane of NV12 03/156003/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 17 Oct 2017 02:48:29 +0000 (11:48 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Tue, 17 Oct 2017 02:54:15 +0000 (11:54 +0900)
Change-Id: Icb51f56439e2cecc9f1c29502b51b62369493e7e

src/tbm_bufmgr_exynos.c

index 4bb6d46498e7d053252e6f56f0a52c7450bdb392..f5f4a86ac8ad5955a0c78b00c6c4555d49baab72 100644 (file)
@@ -1826,7 +1826,7 @@ tbm_exynos_surface_get_plane_data(int width, int height,
                /*else if (plane_idx == 1)*/
                {
                        _offset += _size;
-                       _pitch = SIZE_ALIGN(width, TBM_SURFACE_ALIGNMENT_PITCH_YUV / 2);
+                       _pitch = SIZE_ALIGN(width, TBM_SURFACE_ALIGNMENT_PITCH_YUV);
                        _size = MAX(_calc_uvplane_nv12(width, height), _new_calc_uvplane_nv12(width,
                                        height));
                        _bo_idx = 0;