osal: modified to RGBA_8888 hal pixel format from ARGB888
authorTaehwan Kim <t_h.kim@samsung.com>
Thu, 6 Dec 2012 06:17:31 +0000 (06:17 +0000)
committerTaehwan Kim <t_h.kim@samsung.com>
Thu, 6 Dec 2012 08:59:45 +0000 (08:59 +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: I59d27cc440652fd55fb578a355bdfb6ce51ff6a9
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
osal/Exynos_OSAL_Android.cpp

index 5738f927f06c4175f477dc3063c900ccb13fb3b5..b4f7f3d66f9af3c0bda438e89850f54955e9e803 100644 (file)
@@ -621,7 +621,7 @@ OMX_COLOR_FORMATTYPE Exynos_OSAL_Hal2OMXPixelFormat(
     case HAL_PIXEL_FORMAT_YCbCr_420_SP_TILED:
         omx_format = (OMX_COLOR_FORMATTYPE)OMX_SEC_COLOR_FormatNV12Tiled;
         break;
-    case HAL_PIXEL_FORMAT_ARGB888:
+    case HAL_PIXEL_FORMAT_RGBA_8888:
         omx_format = OMX_COLOR_Format32bitARGB8888;
         break;
     default:
@@ -649,7 +649,7 @@ unsigned int Exynos_OSAL_OMX2HalPixelFormat(
         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;