video_dec: Add ThumbnailMode decoding to WMV
authorAndreas Schneider <asn@cryptomilk.org>
Tue, 5 May 2015 22:35:09 +0000 (00:35 +0200)
committerEthan Chen <intervigil@gmail.com>
Tue, 30 Jun 2015 16:41:00 +0000 (09:41 -0700)
Change-Id: Iffbed657f6e58e63cafce1cb5ebfe9f678ef07a1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
component/video/dec/vc1/Exynos_OMX_Wmvdec.c

index b5193a00201abd67cb527843f72ff6778f770372..b4640c460e6e2333a8a4fc898073aa037b10aad7 100644 (file)
@@ -806,7 +806,7 @@ OMX_ERRORTYPE WmvCodecSrcSetup(OMX_COMPONENTTYPE *pOMXComponent, EXYNOS_OMX_DATA
     }
 
     if (pVideoDec->bThumbnailMode == OMX_TRUE)
-        pDecOps->Set_DisplayDelay(hMFCHandle, 0);
+        pDecOps->Set_IFrameDecoding(hMFCHandle);
 
     if ((pDecOps->Enable_DTSMode != NULL) &&
         (pVideoDec->bDTSMode == OMX_TRUE))
@@ -1465,13 +1465,7 @@ OMX_ERRORTYPE Exynos_WmvDec_GetExtensionIndex(
         goto EXIT;
     }
 
-    if (Exynos_OSAL_Strcmp(cParameterName, EXYNOS_INDEX_PARAM_ENABLE_THUMBNAIL) == 0) {
-        EXYNOS_WMVDEC_HANDLE *pWmvDec = (EXYNOS_WMVDEC_HANDLE *)((EXYNOS_OMX_VIDEODEC_COMPONENT *)pExynosComponent->hComponentHandle)->hCodecHandle;
-        *pIndexType = OMX_IndexParamEnableThumbnailMode;
-        ret = OMX_ErrorNone;
-    } else {
-        ret = Exynos_OMX_VideoDecodeGetExtensionIndex(hComponent, cParameterName, pIndexType);
-    }
+    ret = Exynos_OMX_VideoDecodeGetExtensionIndex(hComponent, cParameterName, pIndexType);
 
 EXIT:
     FunctionOut();