aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Hu <austin.hu@intel.com>2017-04-18 16:02:40 +0800
committerDaniel Cardenas <danielcar@google.com>2017-04-20 17:45:04 -0700
commit938672ff659640d56a4ea6e089378ed3d2de8201 (patch)
treeb507809612413db4f307d3687a46f8b5dae2925f
parent10a7d186b959b7f6940dc75fda839fb63437ed0f (diff)
downloadomx-components-938672ff659640d56a4ea6e089378ed3d2de8201.tar.gz
OMX-Component: fixed the regression that black/green pixels appear during
video playback. BZ: IMINAN-51351 Fixed by bridging the GetOutputColorFormat() function used in WRS OMX IL. Bug: 37551461 Test: Netflix, play movies, youtube Change-Id: I4801ee669fd15d5b9892fde291f24907066073e0 Signed-off-by: Austin Hu <austin.hu@intel.com> (cherry picked from commit ed368da425f8fc66316c4f3e1303a88ec0158d57)
-rw-r--r--videocodec/OMXComponentCodecBase.cpp5
-rw-r--r--videocodec/OMXComponentCodecBase.h2
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 */