]> git.sesse.net Git - vlc/commitdiff
iomx: Override the hal format for qcom decoders on honeycomb
authorMartin Storsjö <martin@martin.st>
Mon, 28 Jul 2014 07:43:24 +0000 (10:43 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 28 Jul 2014 07:51:35 +0000 (10:51 +0300)
This fixes direct rendering playback on one tested honeycomb
device.

Signed-off-by: Martin Storsjö <martin@martin.st>
modules/codec/omxil/iomx_hwbuffer.c

index b5a22a695aafa323eeaf5ec0ed920a1c94faf01d..575fb8c6d29accb3104044d45cb9fa80f9d25ee7 100644 (file)
@@ -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;
 }