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/OMXVideoDecoderVP8.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'videocodec/OMXVideoDecoderVP8.cpp') diff --git a/videocodec/OMXVideoDecoderVP8.cpp b/videocodec/OMXVideoDecoderVP8.cpp index d3d7fcd..7acbed9 100644 --- a/videocodec/OMXVideoDecoderVP8.cpp +++ b/videocodec/OMXVideoDecoderVP8.cpp @@ -106,6 +106,14 @@ OMX_ERRORTYPE OMXVideoDecoderVP8::SetParamVideoVp8(OMX_PTR pStructure) { return OMX_ErrorNone; } +OMX_COLOR_FORMATTYPE OMXVideoDecoderVP8::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.VP8", "video_decoder.vp8", OMXVideoDecoderVP8); -- cgit v1.2.3