omx_vdec: if using AndroidNativeBuffer, map OMX color format to HAL
authorDima Zavin <dima@android.com>
Wed, 11 Apr 2012 05:15:43 +0000 (22:15 -0700)
committerDima Zavin <dima@android.com>
Thu, 19 Apr 2012 05:24:03 +0000 (22:24 -0700)
commit23e5126a824179e2d709605dcc50d2d2c821a6f4
treef1e341904170fa9fdd8facf513e4d0e9bb179379
parent1a6a35dcabdd95f8eff4cc655ced76e17cd77323
omx_vdec: if using AndroidNativeBuffer, map OMX color format to HAL

If the use of ANB was enabled by stagefright, we have to report a
HAL format in GetParameter(PortDefinition). However, the actual port
definition stores an OMX format. Also, lot's of other places in this
OMX implementation rely on everything being in OMX color format. So,
we don't actually change the internal format info to a HAL format but
rather fake a HAL format in the return value of the GetParameter call.

Change-Id: I24afb4dd4275b8594eb24d473fde6c35e57cbd54
Signed-off-by: Dima Zavin <dima@android.com>
exynos_omx/openmax/exynos_omx/component/video/dec/Android.mk
exynos_omx/openmax/exynos_omx/component/video/dec/Exynos_OMX_Vdec.c