AS-IS: maintain only one buffer and internal yuv buffers are distinguished by
offset.
TO-BE: maintain seperated buffers for internal yuv buffers.
Change-Id: I85fb726511d0d56f39bb9d39be09111e834bbe96
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
}
/*else if(plane_idx == 1)*/
{
- _offset += _size;
+ _offset = 0;
_pitch = SIZE_ALIGN(width / 2, TBM_SURFACE_ALIGNMENT_PITCH_YUV / 2);
_size = SIZE_ALIGN(_pitch * (height / 2), TBM_SURFACE_ALIGNMENT_PLANE);
- _bo_idx = 0;
+ _bo_idx = 1;
if (plane_idx == 1)
break;
}
/*else if (plane_idx == 2)*/
{
- _offset += _size;
+ _offset = 0;
_pitch = SIZE_ALIGN(width / 2, TBM_SURFACE_ALIGNMENT_PITCH_YUV / 2);
_size = SIZE_ALIGN(_pitch * (height / 2), TBM_SURFACE_ALIGNMENT_PLANE);
- _bo_idx = 0;
+ _bo_idx = 2;
}
break;
case TBM_FORMAT_YUV422: