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 /media/libstagefright/MediaCodecList.cpp | |
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 'media/libstagefright/MediaCodecList.cpp')
-rw-r--r-- | media/libstagefright/MediaCodecList.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/media/libstagefright/MediaCodecList.cpp b/media/libstagefright/MediaCodecList.cpp index d24337f..6248e90 100644 --- a/media/libstagefright/MediaCodecList.cpp +++ b/media/libstagefright/MediaCodecList.cpp @@ -509,7 +509,8 @@ status_t MediaCodecList::getSupportedTypes( status_t MediaCodecList::getCodecCapabilities( size_t index, const char *type, Vector<ProfileLevel> *profileLevels, - Vector<uint32_t> *colorFormats) const { + Vector<uint32_t> *colorFormats, + uint32_t *flags) const { profileLevels->clear(); colorFormats->clear(); @@ -547,6 +548,8 @@ status_t MediaCodecList::getCodecCapabilities( colorFormats->push(caps.mColorFormats.itemAt(i)); } + *flags = caps.mFlags; + return OK; } |