From: Changyeon Lee Date: Wed, 11 Dec 2019 10:36:01 +0000 (+0900) Subject: set same pitch to all plane of NV format X-Git-Tag: submit/tizen_5.5/20191212.065741~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e221ff33b6ff83e590007c8c1b8ef5b287382f11;p=platform%2Fadaptation%2Fspreadtrum%2Flibtbm-sprd.git set same pitch to all plane of NV format Change-Id: Ie4a140b302170bbb5c55dca5d6bd4d45a9565903 --- diff --git a/src/tbm_bufmgr_sprd.c b/src/tbm_bufmgr_sprd.c index 6f8059e..2e2dd63 100644 --- a/src/tbm_bufmgr_sprd.c +++ b/src/tbm_bufmgr_sprd.c @@ -956,7 +956,7 @@ tbm_sprd_bufmgr_get_plane_data(tbm_backend_bufmgr_data *bufmgr_data, // 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); _align_height = SIZE_ALIGN(height / 2, TBM_SURFACE_ALIGNMENT_PITCH_YUV); _size = SIZE_ALIGN(_pitch * _align_height, TBM_SURFACE_ALIGNMENT_PLANE); _bo_idx = 0; @@ -978,7 +978,7 @@ tbm_sprd_bufmgr_get_plane_data(tbm_backend_bufmgr_data *bufmgr_data, //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 = SIZE_ALIGN(_pitch * height, TBM_SURFACE_ALIGNMENT_PLANE); _bo_idx = 0; }