Use 16 align at UV Plane of NV12 07/156007/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 17 Oct 2017 03:01:53 +0000 (12:01 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Tue, 17 Oct 2017 03:01:53 +0000 (12:01 +0900)
Change-Id: I1f9f8779dab2c7e0bef2656b440fbaf092666776

src/tbm_bufmgr_exynos.c

index ec94a66..e914646 100644 (file)
@@ -1905,7 +1905,7 @@ tbm_exynos_surface_get_plane_data(int width, int height,
                        _bo_idx = 0;
                } else if (plane_idx == 1) {
                        _offset = 0;
-                       _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 = 1;