It is possible to use NON-ANB, even if OMX_IndexParamEnableAndroidBuffers.
changed a condition check in case of above.
Change-Id: I2197a71df7194a85ae693cd8fb2222e651113dcc
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
ret = OMX_ErrorBadPortIndex;
goto EXIT;
}
+
+ pExynosPort->bIsANBEnabled = pANBParams->enable;
+
#ifdef USE_ANB_OUTBUF_SHARE
/* ANB and DPB Buffer Sharing */
if ((portIndex == OUTPUT_PORT_INDEX) &&
+ (pExynosPort->bIsANBEnabled == OMX_TRUE) &&
((pExynosPort->bufferProcessType & BUFFER_ANBSHARE) == BUFFER_ANBSHARE)) {
pExynosPort->bufferProcessType = BUFFER_SHARE;
pExynosPort->portDefinition.format.video.eColorFormat = (OMX_COLOR_FORMATTYPE)OMX_SEC_COLOR_FormatNV12Tiled;
pExynosPort->portDefinition.format.video.eColorFormat = OMX_COLOR_FormatYUV420SemiPlanar;
}
#endif
- pExynosPort->bIsANBEnabled = pANBParams->enable;
}
break;