case OMX_COLOR_FormatAndroidOpaque:
{
OMX_COLOR_FORMATTYPE formatType;
+#ifdef USE_DMA_BUF
formatType = Exynos_OSAL_GetANBColorFormat((OMX_U32)priv_hnd);
if ((formatType == OMX_COLOR_FormatYUV420SemiPlanar) ||
(formatType == OMX_SEC_COLOR_FormatNV12Tiled))
usage = GRALLOC_USAGE_SW_READ_OFTEN | GRALLOC_USAGE_SW_WRITE_OFTEN;
else
+#endif
usage = GRALLOC_USAGE_SW_READ_OFTEN | GRALLOC_USAGE_SW_WRITE_OFTEN | GRALLOC_USAGE_HW_VIDEO_ENCODER;
}
break;
FunctionIn();
OMX_COLOR_FORMATTYPE ret = OMX_COLOR_FormatUnused;
+#ifdef USE_DMA_BUF
private_handle_t *priv_hnd = (private_handle_t *) handle;
ret = Exynos_OSAL_Hal2OMXPixelFormat(priv_hnd->format);
Exynos_OSAL_Log(EXYNOS_LOG_TRACE, "ColorFormat: 0x%x", ret);
+#endif
EXIT:
FunctionOut();