From 8be096d3192380bf5af91d88096c7c75c224c536 Mon Sep 17 00:00:00 2001 From: Jeonghee Kim Date: Fri, 4 Jan 2013 13:18:51 +0900 Subject: [PATCH] libexynosutils: fixed wrong color format conversion HAL_PIXEL_FORMAT_YCbCr_422_SP = V4L2_PIX_FMT_NV16 HAL_PIXEL_FORMAT_YCrCb_422_SP = V4L2_PIX_FMT_NV61 Change-Id: I8bc07ed395e81a80629bde1a52e824ace31a6e96 Signed-off-by: Jeonghee Kim --- libexynosutils/exynos5_format_v4l2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libexynosutils/exynos5_format_v4l2.c b/libexynosutils/exynos5_format_v4l2.c index 4d4d302..f179757 100644 --- a/libexynosutils/exynos5_format_v4l2.c +++ b/libexynosutils/exynos5_format_v4l2.c @@ -85,7 +85,7 @@ int HAL_PIXEL_FORMAT_2_V4L2_PIX( case HAL_PIXEL_FORMAT_YCbCr_422_SP: case HAL_PIXEL_FORMAT_CUSTOM_YCbCr_422_SP: - v4l2_pixel_format = V4L2_PIX_FMT_NV61; + v4l2_pixel_format = V4L2_PIX_FMT_NV16; break; case HAL_PIXEL_FORMAT_YCbCr_420_SP: @@ -109,7 +109,7 @@ int HAL_PIXEL_FORMAT_2_V4L2_PIX( case HAL_PIXEL_FORMAT_YCrCb_422_SP: case HAL_PIXEL_FORMAT_CUSTOM_YCrCb_422_SP: - v4l2_pixel_format = V4L2_PIX_FMT_NV16; + v4l2_pixel_format = V4L2_PIX_FMT_NV61; break; case HAL_PIXEL_FORMAT_EXYNOS_YCrCb_420_SP: @@ -183,7 +183,7 @@ int V4L2_PIX_2_HAL_PIXEL_FORMAT( break; case V4L2_PIX_FMT_NV16: - hal_pixel_format = HAL_PIXEL_FORMAT_CUSTOM_YCrCb_422_SP; + hal_pixel_format = HAL_PIXEL_FORMAT_CUSTOM_YCbCr_422_SP; break; case V4L2_PIX_FMT_NV12: @@ -219,7 +219,7 @@ int V4L2_PIX_2_HAL_PIXEL_FORMAT( break; case V4L2_PIX_FMT_NV61: - hal_pixel_format = HAL_PIXEL_FORMAT_CUSTOM_YCbCr_422_SP; + hal_pixel_format = HAL_PIXEL_FORMAT_CUSTOM_YCrCb_422_SP; break; case V4L2_PIX_FMT_YVYU: -- 2.20.1