From 94733f48696cae1d610bf80c3127a464dc82c5f9 Mon Sep 17 00:00:00 2001 From: "Tang, XiaoxiX" Date: Mon, 2 Dec 2013 15:33:13 +0800 Subject: omx-component: enable tile format for VXD392 on Baytrail platform BZ: 141202 Change the eColorFormat's value to HAL_PIXEL_FORMAT_NV12_X_TILED_INTEL and pass the tiling information by the flag mVASurfaceAttrib->flags. Change-Id: Id005eb9c8057ddb9e68a3b468678fa5db8800bc5 Signed-off-by: Tang, XiaoxiX --- videocodec/OMXVideoDecoderMPEG4.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'videocodec/OMXVideoDecoderMPEG4.cpp') diff --git a/videocodec/OMXVideoDecoderMPEG4.cpp b/videocodec/OMXVideoDecoderMPEG4.cpp index b73c0c4..d472577 100644 --- a/videocodec/OMXVideoDecoderMPEG4.cpp +++ b/videocodec/OMXVideoDecoderMPEG4.cpp @@ -137,6 +137,15 @@ OMX_ERRORTYPE OMXVideoDecoderMPEG4::SetParamVideoMpeg4ProfileLevel(OMX_PTR pStru return OMX_ErrorUnsupportedSetting; } +OMX_COLOR_FORMATTYPE OMXVideoDecoderMPEG4::GetOutputColorFormat(int width, int height) +{ +#ifdef USE_GEN_HW + return (OMX_COLOR_FORMATTYPE)HAL_PIXEL_FORMAT_NV12_X_TILED_INTEL; +#else + return OMXVideoDecoderBase::GetOutputColorFormat(width, height); +#endif +} + DECLARE_OMX_COMPONENT("OMX.Intel.VideoDecoder.MPEG4", "video_decoder.mpeg4", OMXVideoDecoderMPEG4); -- cgit v1.2.3