gralloc: Add support for YCrCb_420_SP allocs

CRs-fixed:272635
Change-Id: I61503b9591c7db2f0aa6c912dba2a829c30263dc
This commit is contained in:
Naseer Ahmed 2011-01-27 18:14:43 +05:30
parent 604a2088ad
commit 6780fe3a4e

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;