csc: recognize custom ARGB_8888 pixel format
authorGreg Hackmann <ghackmann@google.com>
Thu, 3 Jan 2013 19:25:45 +0000 (11:25 -0800)
committerGreg Hackmann <ghackmann@google.com>
Tue, 8 Jan 2013 23:07:42 +0000 (15:07 -0800)
Map to V4L2 RGB32 which the gsc kernel driver interprets as XRGB

Change-Id: I28fa1db0b882bab120254337f40b3172074d4eca
Signed-off-by: Greg Hackmann <ghackmann@google.com>
libexynosutils/exynos5_format_v4l2.c

index 8b057173ea7bbdedb629aa2e1c2482b0592b4f7a..824f13308d39b6860d6323279223f4cd5e7c5bfb 100644 (file)
@@ -52,6 +52,7 @@ int HAL_PIXEL_FORMAT_2_V4L2_PIX(
     switch (hal_pixel_format) {
     case HAL_PIXEL_FORMAT_RGBA_8888:
     case HAL_PIXEL_FORMAT_RGBX_8888:
+    case HAL_PIXEL_FORMAT_CUSTOM_ARGB_8888:
         v4l2_pixel_format = V4L2_PIX_FMT_RGB32;
         break;
 
@@ -281,6 +282,7 @@ unsigned int FRAME_SIZE(
     case HAL_PIXEL_FORMAT_RGBA_8888:
     case HAL_PIXEL_FORMAT_BGRA_8888:
     case HAL_PIXEL_FORMAT_RGBX_8888:
+    case HAL_PIXEL_FORMAT_CUSTOM_ARGB_8888:
         frame_size = GET_32BPP_FRAME_SIZE(width, height);
         break;