[vlc-commits] iomx: Override the hal format for qcom decoders on honeycomb

Martin Storsjö git at videolan.org
Mon Jul 28 09:52:43 CEST 2014


vlc | branch: master | Martin Storsjö <martin at martin.st> | Mon Jul 28 10:43:24 2014 +0300| [ace55f9cd46cb66d108655afb156db07f3deacf3] | committer: Martin Storsjö

iomx: Override the hal format for qcom decoders on honeycomb

This fixes direct rendering playback on one tested honeycomb
device.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ace55f9cd46cb66d108655afb156db07f3deacf3
---

 modules/codec/omxil/iomx_hwbuffer.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/codec/omxil/iomx_hwbuffer.c b/modules/codec/omxil/iomx_hwbuffer.c
index b5a22a6..575fb8c 100644
--- a/modules/codec/omxil/iomx_hwbuffer.c
+++ b/modules/codec/omxil/iomx_hwbuffer.c
@@ -118,6 +118,10 @@ int IOMXHWBuffer_GetHalFormat( const char *comp_name, int* hal_format )
     else if( !strcmp( comp_name, "OMX.TI.720P.Decoder" ) ||
         !strcmp( comp_name, "OMX.TI.Video.Decoder" ) )
         *hal_format = 0x14; // HAL_PIXEL_FORMAT_YCbCr_422_I
+#if ANDROID_API <= 13 // Required on msm8660 on 3.2, not required on 4.1
+    else if( !strcmp( comp_name, "OMX.qcom.video.decoder.avc" ))
+        *hal_format = 0x108;
+#endif
 
     return 0;
 }



More information about the vlc-commits mailing list