libexynosutils: Added HAL_PIXEL_FORMAT_YCrCb_420_SP format
authormeka rama <v.meka@samsung.com>
Mon, 7 Jan 2013 09:33:02 +0000 (18:33 +0900)
committermeka rama <v.meka@samsung.com>
Mon, 7 Jan 2013 09:33:02 +0000 (18:33 +0900)
Change-Id: I1eb5167a98920bb133d9a0aea074433cd225d1d3
Signed-off-by: meka rama <v.meka@samsung.com>
libexynosutils/exynos5_format_v4l2.c

index f17975719b9406c33db38a490236cdaf1edab211..fb194e561111f20ffd276d245d5a2d20111220e8 100644 (file)
@@ -114,6 +114,7 @@ int HAL_PIXEL_FORMAT_2_V4L2_PIX(
 
     case HAL_PIXEL_FORMAT_EXYNOS_YCrCb_420_SP:
     case HAL_PIXEL_FORMAT_CUSTOM_YCrCb_420_SP:
+    case HAL_PIXEL_FORMAT_YCrCb_420_SP:
         v4l2_pixel_format = V4L2_PIX_FMT_NV21M;
         break;
 
@@ -246,6 +247,7 @@ int NUM_PLANES(int hal_pixel_format)
     case HAL_PIXEL_FORMAT_YCbCr_420_P:
        return 3;
     case HAL_PIXEL_FORMAT_EXYNOS_YCrCb_420_SP:
+    case HAL_PIXEL_FORMAT_YCrCb_420_SP:
     case HAL_PIXEL_FORMAT_YCbCr_420_SP:
     case HAL_PIXEL_FORMAT_CUSTOM_YCbCr_420_SP:
     case HAL_PIXEL_FORMAT_CUSTOM_YCrCb_420_SP:
@@ -298,6 +300,7 @@ unsigned int FRAME_SIZE(
         break;
 
     case HAL_PIXEL_FORMAT_EXYNOS_YCrCb_420_SP:
+    case HAL_PIXEL_FORMAT_YCrCb_420_SP:
     case HAL_PIXEL_FORMAT_YCbCr_420_SP:
     case HAL_PIXEL_FORMAT_CUSTOM_YCbCr_420_SP:
     case HAL_PIXEL_FORMAT_CUSTOM_YCrCb_420_SP:
@@ -346,6 +349,7 @@ int PLANAR_FRAME_SIZE(int hal_pixel_format, int width, int height,
        *luma_size = size;
        *chroma_size = size >> 2;
     case HAL_PIXEL_FORMAT_EXYNOS_YCrCb_420_SP:
+    case HAL_PIXEL_FORMAT_YCrCb_420_SP:
     case HAL_PIXEL_FORMAT_YCbCr_420_I:
     case HAL_PIXEL_FORMAT_CbYCrY_420_I:
     case HAL_PIXEL_FORMAT_YCbCr_420_SP: