diff options
author | Austin Hu <austin.hu@intel.com> | 2017-04-21 16:32:06 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-04-21 16:32:06 +0000 |
commit | 18819ff03a047be97b7246cff6e9188d0f6d12c3 (patch) | |
tree | b507809612413db4f307d3687a46f8b5dae2925f | |
parent | 10a7d186b959b7f6940dc75fda839fb63437ed0f (diff) | |
parent | 938672ff659640d56a4ea6e089378ed3d2de8201 (diff) | |
download | omx-components-18819ff03a047be97b7246cff6e9188d0f6d12c3.tar.gz |
OMX-Component: fixed the regression that black/green pixels appear during video playback.
am: 938672ff65
Change-Id: I40070b4461c9b2e67c72879d4a52b9b6c45aaf54
-rw-r--r-- | videocodec/OMXComponentCodecBase.cpp | 5 | ||||
-rw-r--r-- | videocodec/OMXComponentCodecBase.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/videocodec/OMXComponentCodecBase.cpp b/videocodec/OMXComponentCodecBase.cpp index 4676b7e..97fc73b 100644 --- a/videocodec/OMXComponentCodecBase.cpp +++ b/videocodec/OMXComponentCodecBase.cpp @@ -130,6 +130,11 @@ OMX_ERRORTYPE OMXComponentCodecBase::ComponentSetConfig( return ret; } +OMX_COLOR_FORMATTYPE OMXComponentCodecBase::GetOutputColorFormat(int width) { + LOGD("%s: width = %d", __func__, width); + return OMX_INTEL_COLOR_FormatYUV420PackedSemiPlanar; +} + OMX_ERRORTYPE OMXComponentCodecBase::ProcessorInit(void) { LOGV("OMXComponentCodecBase::ProcessorInit"); diff --git a/videocodec/OMXComponentCodecBase.h b/videocodec/OMXComponentCodecBase.h index 79f43ac..45d08ba 100644 --- a/videocodec/OMXComponentCodecBase.h +++ b/videocodec/OMXComponentCodecBase.h @@ -57,6 +57,8 @@ protected: OMX_INDEXTYPE nIndex, OMX_PTR pComponentConfigStructure); + virtual OMX_COLOR_FORMATTYPE GetOutputColorFormat(int width); + virtual OMX_ERRORTYPE ProcessorInit(void); /* Loaded to Idle */ virtual OMX_ERRORTYPE ProcessorDeinit(void);/* Idle to Loaded */ virtual OMX_ERRORTYPE ProcessorStart(void); /* Idle to Executing/Pause */ |