aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Hu <austin.hu@intel.com>2017-04-21 16:39:53 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-04-21 16:39:53 +0000
commit1fe41c897a23404b92f4daefa2e94eefd4710b7d (patch)
treeb507809612413db4f307d3687a46f8b5dae2925f
parent10a7d186b959b7f6940dc75fda839fb63437ed0f (diff)
parent18819ff03a047be97b7246cff6e9188d0f6d12c3 (diff)
downloadomx-components-1fe41c897a23404b92f4daefa2e94eefd4710b7d.tar.gz
OMX-Component: fixed the regression that black/green pixels appear during video playback. am: 938672ff65
am: 18819ff03a Change-Id: Ibcfde20e9daf269dabe193a1e2c90a19b5d580a6
-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 */