|
|
@ -836,13 +836,15 @@ OMX_ERRORTYPE SEC_MFC_Mpeg4Dec_GetExtensionIndex( |
|
|
|
ret = OMX_ErrorNone; |
|
|
|
ret = OMX_ErrorNone; |
|
|
|
#ifdef USE_ANDROID_EXTENSION |
|
|
|
#ifdef USE_ANDROID_EXTENSION |
|
|
|
} else if (SEC_OSAL_Strcmp(cParameterName, SEC_INDEX_PARAM_ENABLE_ANB) == 0) { |
|
|
|
} else if (SEC_OSAL_Strcmp(cParameterName, SEC_INDEX_PARAM_ENABLE_ANB) == 0) { |
|
|
|
if (isTvOutEnabled()) { |
|
|
|
#ifndef USE_HWDECODING_TVOUT |
|
|
|
// Samsung normally pushes HW-decoded frames to the TV Out driver
|
|
|
|
if (isTvOutEnabled()) { |
|
|
|
// but it's hard for us to do that without source, so return an error
|
|
|
|
// Samsung normally pushes HW-decoded frames to the TV Out driver
|
|
|
|
// and let Android fallback to software decoding
|
|
|
|
// but it's hard for us to do that without source, so return an error
|
|
|
|
ret = OMX_ErrorInsufficientResources; |
|
|
|
// and let Android fallback to software decoding
|
|
|
|
goto EXIT; |
|
|
|
ret = OMX_ErrorInsufficientResources; |
|
|
|
} |
|
|
|
goto EXIT; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif // USE_HWDECODING_TVOUT
|
|
|
|
|
|
|
|
|
|
|
|
*pIndexType = OMX_IndexParamEnableAndroidBuffers; |
|
|
|
*pIndexType = OMX_IndexParamEnableAndroidBuffers; |
|
|
|
ret = OMX_ErrorNone; |
|
|
|
ret = OMX_ErrorNone; |
|
|
|