copybit: Do not do in-place conversion for YV12

Change-Id: I7e53f44baa6e924c6923d4e1d1af9454f51a7357
This commit is contained in:
Naseer Ahmed 2011-11-23 18:11:14 -08:00
parent d047ca874d
commit 95ab7ecd2c

View File

@ -387,9 +387,8 @@ static int stretch_copybit(
if(src->format == HAL_PIXEL_FORMAT_YV12) {
if(0 == convertYV12toYCrCb420SP(src)){
//if inplace conversion,just convert and return
if(src->base == dst->base)
return status;
(const_cast<copybit_image_t *>(src))->format =
HAL_PIXEL_FORMAT_YCrCb_420_SP;
}
else{
LOGE("Error copybit conversion from yv12 failed");