diff options
author | Lajos Molnar <lajos@google.com> | 2013-10-04 11:09:01 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-10-04 11:09:01 -0700 |
commit | 86f76208f0ada2148fda43d522f7933a0c7bf476 (patch) | |
tree | 3b5b4cab4b16bb804afd76981e21f6a806d808ae /include/media | |
parent | 794c5ba973f6d107a8277f3f389cb3051c6ce5d7 (diff) | |
parent | 04e6ab6e27c39604a7029467161a90af78ecdf07 (diff) | |
download | frameworks_native-86f76208f0ada2148fda43d522f7933a0c7bf476.zip frameworks_native-86f76208f0ada2148fda43d522f7933a0c7bf476.tar.gz frameworks_native-86f76208f0ada2148fda43d522f7933a0c7bf476.tar.bz2 |
am 04e6ab6e: am b1f94ef3: Merge "media/hardware/HardwareAPI.h: Added PrepareForAdaptivePlaybackParams" into klp-dev
* commit '04e6ab6e27c39604a7029467161a90af78ecdf07':
media/hardware/HardwareAPI.h: Added PrepareForAdaptivePlaybackParams
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/hardware/HardwareAPI.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/media/hardware/HardwareAPI.h b/include/media/hardware/HardwareAPI.h index ac67f94..de3aeb1 100644 --- a/include/media/hardware/HardwareAPI.h +++ b/include/media/hardware/HardwareAPI.h @@ -89,6 +89,31 @@ struct VideoDecoderOutputMetaData { buffer_handle_t pHandle; }; +// A pointer to this struct is passed to OMX_SetParameter() when the extension +// index "OMX.google.android.index.prepareForAdaptivePlayback" is given. +// +// This method is used to signal a video decoder, that the user has requested +// seamless resolution change support (if bEnable is set to OMX_TRUE). +// nMaxFrameWidth and nMaxFrameHeight are the dimensions of the largest +// anticipated frames in the video. If bEnable is OMX_FALSE, no resolution +// change is expected, and the nMaxFrameWidth/Height fields are unused. +// +// If the decoder supports dynamic output buffers, it may ignore this +// request. Otherwise, it shall request resources in such a way so that it +// avoids full port-reconfiguration (due to output port-definition change) +// during resolution changes. +// +// DO NOT USE THIS STRUCTURE AS IT WILL BE REMOVED. INSTEAD, IMPLEMENT +// METADATA SUPPORT FOR VIDEO DECODERS. +struct PrepareForAdaptivePlaybackParams { + OMX_U32 nSize; + OMX_VERSIONTYPE nVersion; + OMX_U32 nPortIndex; + OMX_BOOL bEnable; + OMX_U32 nMaxFrameWidth; + OMX_U32 nMaxFrameHeight; +}; + // A pointer to this struct is passed to OMX_SetParameter when the extension // index for the 'OMX.google.android.index.useAndroidNativeBuffer' extension is // given. This call will only be performed if a prior call was made with the |