diff options
| author | Tang, XiaoxiX <xiaoxix.tang@intel.com> | 2013-12-02 15:33:13 +0800 |
|---|---|---|
| committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:02:56 -0700 |
| commit | 94733f48696cae1d610bf80c3127a464dc82c5f9 (patch) | |
| tree | 97a7d3f894beb54a7c040e6b9f0f3438c75c59da /videocodec/OMXVideoDecoderMPEG4.cpp | |
| parent | ba72edfc22d5567a208ce814ea5df6cf63b8837f (diff) | |
| download | android_hardware_intel_common_omx-components-94733f48696cae1d610bf80c3127a464dc82c5f9.tar.gz android_hardware_intel_common_omx-components-94733f48696cae1d610bf80c3127a464dc82c5f9.tar.bz2 android_hardware_intel_common_omx-components-94733f48696cae1d610bf80c3127a464dc82c5f9.zip | |
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 <xiaoxix.tang@intel.com>
Diffstat (limited to 'videocodec/OMXVideoDecoderMPEG4.cpp')
| -rw-r--r-- | videocodec/OMXVideoDecoderMPEG4.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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); |
