aboutsummaryrefslogtreecommitdiffstats
path: root/videocodec/OMXVideoDecoderVP8.cpp
diff options
context:
space:
mode:
authorFei Jiang <fei.jiang@intel.com>2014-01-20 01:11:25 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:02:57 -0700
commit49d55ed190ecc030e65b5fc44c06de5550ad79d8 (patch)
tree2727dbd94f9c237d3c80c7f6662e2f40666125fc /videocodec/OMXVideoDecoderVP8.cpp
parenta58473203231d7c113e68a481e814666bf3244fa (diff)
downloadandroid_hardware_intel_common_omx-components-49d55ed190ecc030e65b5fc44c06de5550ad79d8.tar.gz
android_hardware_intel_common_omx-components-49d55ed190ecc030e65b5fc44c06de5550ad79d8.tar.bz2
android_hardware_intel_common_omx-components-49d55ed190ecc030e65b5fc44c06de5550ad79d8.zip
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 <fei.jiang@intel.com>
Diffstat (limited to 'videocodec/OMXVideoDecoderVP8.cpp')
-rw-r--r--videocodec/OMXVideoDecoderVP8.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/videocodec/OMXVideoDecoderVP8.cpp b/videocodec/OMXVideoDecoderVP8.cpp
index 7acbed9..9121866 100644
--- a/videocodec/OMXVideoDecoderVP8.cpp
+++ b/videocodec/OMXVideoDecoderVP8.cpp
@@ -109,8 +109,12 @@ 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
}