diff options
author | Ronghua Wu <ronghuawu@google.com> | 2014-08-22 12:49:26 -0700 |
---|---|---|
committer | Ronghua Wu <ronghuawu@google.com> | 2014-08-28 10:28:36 -0700 |
commit | 031be0f358b07732092a4d1bf02fc99f109a63c4 (patch) | |
tree | 0f43a8d5f0bd944969863403517ba52d210904b8 /media/libstagefright/include | |
parent | d42173a44721af1a600b9c8599bc736394fcc724 (diff) | |
download | frameworks_av-031be0f358b07732092a4d1bf02fc99f109a63c4.zip frameworks_av-031be0f358b07732092a4d1bf02fc99f109a63c4.tar.gz frameworks_av-031be0f358b07732092a4d1bf02fc99f109a63c4.tar.bz2 |
Add adaptive playback support to VPX decoder.
Bug: 13842676
Change-Id: I9c054ea489fd3a71b3b2394f15a85b84d42edb5a
Diffstat (limited to 'media/libstagefright/include')
-rw-r--r-- | media/libstagefright/include/SimpleSoftOMXComponent.h | 5 | ||||
-rw-r--r-- | media/libstagefright/include/SoftVideoDecoderOMXComponent.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/media/libstagefright/include/SimpleSoftOMXComponent.h b/media/libstagefright/include/SimpleSoftOMXComponent.h index f8c61eb..591b38e 100644 --- a/media/libstagefright/include/SimpleSoftOMXComponent.h +++ b/media/libstagefright/include/SimpleSoftOMXComponent.h @@ -58,6 +58,11 @@ protected: } mTransition; }; + enum { + kStoreMetaDataExtensionIndex = OMX_IndexVendorStartUnused + 1, + kPrepareForAdaptivePlaybackIndex, + }; + void addPort(const OMX_PARAM_PORTDEFINITIONTYPE &def); virtual OMX_ERRORTYPE internalGetParameter( diff --git a/media/libstagefright/include/SoftVideoDecoderOMXComponent.h b/media/libstagefright/include/SoftVideoDecoderOMXComponent.h index 7f200dd..ee553d9 100644 --- a/media/libstagefright/include/SoftVideoDecoderOMXComponent.h +++ b/media/libstagefright/include/SoftVideoDecoderOMXComponent.h @@ -55,6 +55,9 @@ protected: virtual OMX_ERRORTYPE getConfig( OMX_INDEXTYPE index, OMX_PTR params); + virtual OMX_ERRORTYPE getExtensionIndex( + const char *name, OMX_INDEXTYPE *index); + void initPorts(OMX_U32 numInputBuffers, OMX_U32 inputBufferSize, OMX_U32 numOutputBuffers, @@ -68,6 +71,8 @@ protected: kMaxPortIndex = 1, }; + bool mIsAdaptive; + uint32_t mAdaptiveMaxWidth, mAdaptiveMaxHeight; uint32_t mWidth, mHeight; uint32_t mCropLeft, mCropTop, mCropWidth, mCropHeight; |