summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-06-26 10:56:14 -0700
committerAndreas Huber <andih@google.com>2012-08-07 13:08:15 -0700
commite671207115fac3914134c61b336d5fa0242c68ca (patch)
tree466cda101e1528b81bf72c228d7060c33788dedf /include
parent28620ee3e9926ef07f0b4cb3e22b156b812e2d7e (diff)
downloadframeworks_av-e671207115fac3914134c61b336d5fa0242c68ca.zip
frameworks_av-e671207115fac3914134c61b336d5fa0242c68ca.tar.gz
frameworks_av-e671207115fac3914134c61b336d5fa0242c68ca.tar.bz2
Make sure codec names and corresponding quirks are returned together.
Previously they were returned in separate vectors and only one of them was sorted if software codecs were preferred, leaving the quirks no longer matching the codec name at the same index. Change-Id: Id3f1e6f9f7f8c9cc4b6ebfb86a203b4d59de8604 related-to-bug: 6737884
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/OMXCodec.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h
index c57e2a5..bb9e595 100644
--- a/include/media/stagefright/OMXCodec.h
+++ b/include/media/stagefright/OMXCodec.h
@@ -102,13 +102,17 @@ struct OMXCodec : public MediaSource,
kOutputBuffersAreUnreadable = 4096,
};
+ struct CodecNameAndQuirks {
+ String8 mName;
+ uint32_t mQuirks;
+ };
+
// for use by ACodec
static void findMatchingCodecs(
const char *mime,
bool createEncoder, const char *matchComponentName,
uint32_t flags,
- Vector<String8> *matchingCodecs,
- Vector<uint32_t> *matchingCodecQuirks = NULL);
+ Vector<CodecNameAndQuirks> *matchingCodecNamesAndQuirks);
static uint32_t getComponentQuirks(
const MediaCodecList *list, size_t index);