Merge "gralloc: Add support for YCrCb_420_SP allocs" into gingerbread

This commit is contained in:
Linux Build Service Account 2011-02-03 04:51:32 -08:00 committed by QuIC Gerrit Code Review
commit 60cc476040

View File

@ -289,6 +289,7 @@ int gpu_context_t::alloc_impl(int w, int h, int format, int usage,
break;
case HAL_PIXEL_FORMAT_YV12:
case HAL_PIXEL_FORMAT_YCrCb_420_SP:
if ((w&1) || (h&1)) {
LOGE("w or h is odd for HAL_PIXEL_FORMAT_YV12");
return -EINVAL;