From 49d55ed190ecc030e65b5fc44c06de5550ad79d8 Mon Sep 17 00:00:00 2001 From: Fei Jiang Date: Mon, 20 Jan 2014 01:11:25 +0800 Subject: Add the right color format for VP8 decoder on CHT BZ: 161384 The VP8 decoder on CHT uses the GEN hardware, which uses the Y title format. Change-Id: I0b7c4dc3692a8da6a6cadac63cbde424c6b1cd81 Signed-off-by: Fei Jiang --- videocodec/OMXVideoDecoderVP8.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'videocodec/OMXVideoDecoderVP8.cpp') diff --git a/videocodec/OMXVideoDecoderVP8.cpp b/videocodec/OMXVideoDecoderVP8.cpp index 7acbed9..9121866 100644 --- a/videocodec/OMXVideoDecoderVP8.cpp +++ b/videocodec/OMXVideoDecoderVP8.cpp @@ -109,7 +109,11 @@ OMX_ERRORTYPE OMXVideoDecoderVP8::SetParamVideoVp8(OMX_PTR pStructure) { OMX_COLOR_FORMATTYPE OMXVideoDecoderVP8::GetOutputColorFormat(int width, int height) { #ifdef USE_GEN_HW +#ifdef USE_X_TILE return (OMX_COLOR_FORMATTYPE)HAL_PIXEL_FORMAT_NV12_X_TILED_INTEL; +#else + return (OMX_COLOR_FORMATTYPE)OMX_INTEL_COLOR_FormatYUV420PackedSemiPlanar_Tiled; +#endif #else return OMXVideoDecoderBase::GetOutputColorFormat(width, height); #endif -- cgit v1.2.3