diff options
-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 */ |