libcsc: modified to RGBA_8888 hal pixel format from ARGB888
authorTaehwan Kim <t_h.kim@samsung.com>
Thu, 6 Dec 2012 06:49:56 +0000 (06:49 +0000)
committerTaehwan Kim <t_h.kim@samsung.com>
Thu, 6 Dec 2012 09:02:42 +0000 (09:02 +0000)
HAL_PIXEL_FORMAT_ARGB888 is custom format.
but, HAL_PIXEL_FORMAT_RGBA_8888 is native format.
Byte order is same with HAL_PIXEL_FORMAT_RGBA_8888.
so, modified to use HAL_PIXEL_FORMAT_RGBA_8888.

Change-Id: I12c07d912467ffdaf434dddd9d55d4d345d9d3d5
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
libcsc/csc.c
libcsc/csc_helper.c

index 90f1972254ef3ddcdb25eadcee87764526b39e61..1c5a59d58e3a8f3095b7945f2c719793e1dbb018 100644 (file)
@@ -266,7 +266,7 @@ static CSC_ERRORCODE conv_sw(
     case HAL_PIXEL_FORMAT_YCbCr_420_SP:
         ret = conv_sw_src_yuv420sp(handle);
         break;
-    case HAL_PIXEL_FORMAT_ARGB888:
+    case HAL_PIXEL_FORMAT_RGBA_8888:
         ret = conv_sw_src_argb888(handle);
         break;
     default:
index 9f13d62b321f79723e1bcef1375c449aaf76afd6..d08df4ceb74d9bcbcb62b8b96fdf2c0ce73c9ee9 100644 (file)
@@ -45,7 +45,7 @@ OMX_COLOR_FORMATTYPE hal_2_omx_pixel_format(
     case HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED:
         omx_format = OMX_SEC_COLOR_FormatNV12Tiled;
         break;
-    case HAL_PIXEL_FORMAT_ARGB888:
+    case HAL_PIXEL_FORMAT_RGBA_8888:
         omx_format = OMX_COLOR_Format32bitARGB8888;
         break;
     default:
@@ -76,7 +76,7 @@ unsigned int omx_2_hal_pixel_format(
         hal_format = HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED;
         break;
     case OMX_COLOR_Format32bitARGB8888:
-        hal_format = HAL_PIXEL_FORMAT_ARGB888;
+        hal_format = HAL_PIXEL_FORMAT_RGBA_8888;
         break;
     default:
         hal_format = HAL_PIXEL_FORMAT_YCbCr_420_P;