Merge "copybit: Do not do in-place conversion for YV12" into ics

This commit is contained in:
Linux Build Service Account 2011-11-24 04:18:05 -08:00 committed by QuIC Gerrit Code Review
commit 8e61389886

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");