From 6780fe3a4e091fc2a3e0f720010d49ec6e51f945 Mon Sep 17 00:00:00 2001 From: Naseer Ahmed Date: Thu, 27 Jan 2011 18:14:43 +0530 Subject: [PATCH] gralloc: Add support for YCrCb_420_SP allocs CRs-fixed:272635 Change-Id: I61503b9591c7db2f0aa6c912dba2a829c30263dc --- gpu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gpu.cpp b/gpu.cpp index 6816cc5..dd73a91 100644 --- a/gpu.cpp +++ b/gpu.cpp @@ -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;