libexynosutils: fixed wrong color format conversion
authorJeonghee Kim <jhhhh.kim@samsung.com>
Fri, 4 Jan 2013 04:18:51 +0000 (13:18 +0900)
committerJeonghee Kim <jhhhh.kim@samsung.com>
Fri, 4 Jan 2013 06:15:03 +0000 (15:15 +0900)
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 <jhhhh.kim@samsung.com>
libexynosutils/exynos5_format_v4l2.c

index 4d4d302f79647d208e32c93e6d91e46809f8df66..f17975719b9406c33db38a490236cdaf1edab211 100644 (file)
@@ -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: