From 1400c151aa81bc5cfcb55334406d76f1740f6335 Mon Sep 17 00:00:00 2001 From: codeworkx Date: Mon, 3 Dec 2012 22:21:46 +0100 Subject: [PATCH] gralloc: add HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED for video Change-Id: I340b2bc065490797889aa17c5396cf40e0e7d6ff --- exynos4/hal/libgralloc_ump/alloc_device.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exynos4/hal/libgralloc_ump/alloc_device.cpp b/exynos4/hal/libgralloc_ump/alloc_device.cpp index d49eb8b2..b064ab68 100644 --- a/exynos4/hal/libgralloc_ump/alloc_device.cpp +++ b/exynos4/hal/libgralloc_ump/alloc_device.cpp @@ -354,6 +354,7 @@ static int alloc_device_alloc(alloc_device_t* dev, int w, int h, int format, size_t stride_raw = 0; if (format == HAL_PIXEL_FORMAT_YCbCr_420_SP || + format == HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED || format == HAL_PIXEL_FORMAT_YCrCb_420_SP || format == HAL_PIXEL_FORMAT_YCbCr_422_SP || format == HAL_PIXEL_FORMAT_YCbCr_420_P || @@ -369,6 +370,7 @@ static int alloc_device_alloc(alloc_device_t* dev, int w, int h, int format, vstride = (h + 15) & ~15; switch (format) { case HAL_PIXEL_FORMAT_YCbCr_420_SP: + case HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED: case HAL_PIXEL_FORMAT_YCrCb_420_SP: case HAL_PIXEL_FORMAT_YCbCr_420_P: case HAL_PIXEL_FORMAT_YV12: