Don't advertise metadata mode for VP8 decoder.
authorLajos Molnar <lajos@google.com>
Thu, 13 Feb 2014 22:09:17 +0000 (14:09 -0800)
committerLajos Molnar <lajos@google.com>
Thu, 13 Mar 2014 02:05:13 +0000 (19:05 -0700)
Disable metadata mode until android.media.cts.AdaptivePlaybackTest passes.

Bug: 11972823
Change-Id: I759fb94c91c9f9e8108ed30fa2a2861ffc25096a

exynos_omx/openmax/exynos_omx/osal/Exynos_OSAL_Android.cpp

index da348f311b417f94394404d29964b47d71a3960e..8cfd0f9e79140079166c930372dacae4c0aca6eb 100644 (file)
@@ -800,6 +800,14 @@ OMX_ERRORTYPE Exynos_OSAL_SetANBParameter(
             goto EXIT;
         }
 
+        // WORKAROUND: do not advertise metadata mode support for VP8 decoder until it can handle dynamic resolution change
+        // TRICKY: check VP8 decode feature on input port, but matching feature in on output port
+        bool isVP8Decoder = pExynosComponent->pExynosPort[INPUT_PORT_INDEX].portDefinition.format.video.eCompressionFormat == OMX_VIDEO_CodingVPX;
+        if (isVP8Decoder && portIndex == OUTPUT_PORT_INDEX) {
+            ret = OMX_ErrorNotImplemented;
+            goto EXIT;
+        }
+
         pExynosPort->bStoreMetaData = pANBParams->bStoreMetaData;
         if (pExynosComponent->codecType == HW_VIDEO_ENC_CODEC) {
             EXYNOS_OMX_VIDEOENC_COMPONENT *pVideoEnc = (EXYNOS_OMX_VIDEOENC_COMPONENT *)pExynosComponent->hComponentHandle;;