diff options
author | Lajos Molnar <lajos@google.com> | 2013-08-06 15:02:22 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2013-08-13 13:42:52 -0700 |
commit | 2ee14000a38683220fb250d9e7300e1d71ccdaa0 (patch) | |
tree | 2f59a1eb7737e5e426bb7be177f853a6f333146d /include/media/stagefright/OMXCodec.h | |
parent | b8689b31813f55cbc1bf8e9ca0d46a9ee113e38a (diff) | |
download | frameworks_av-2ee14000a38683220fb250d9e7300e1d71ccdaa0.zip frameworks_av-2ee14000a38683220fb250d9e7300e1d71ccdaa0.tar.gz frameworks_av-2ee14000a38683220fb250d9e7300e1d71ccdaa0.tar.bz2 |
Check adaptive playback support via CodecCapabilities
Added flags field to CodecCapabilities, so that applications
can query whether codecs support various features. For now
added one video-decoder feature:
kFlagSupportsAdaptivePlayback
Media playback applications can query it to see if a codec
supports seamless resolution changes, such as by supporting
dynamic output buffers.
Signed-off-by: Lajos Molnar <lajos@google.com>
Change-Id: I09da46e8ab6b8645fa2749e33128e49eda2e865b
Related-to-bug: 7093648
Diffstat (limited to 'include/media/stagefright/OMXCodec.h')
-rw-r--r-- | include/media/stagefright/OMXCodec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h index 583c3b3..daaf20f 100644 --- a/include/media/stagefright/OMXCodec.h +++ b/include/media/stagefright/OMXCodec.h @@ -361,9 +361,14 @@ private: }; struct CodecCapabilities { + enum { + kFlagSupportsAdaptivePlayback = 1 << 0, + }; + String8 mComponentName; Vector<CodecProfileLevel> mProfileLevels; Vector<OMX_U32> mColorFormats; + uint32_t mFlags; }; // Return a vector of componentNames with supported profile/level pairs |