summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2013-04-30 16:08:47 -0700
committerAndreas Huber <andih@google.com>2013-04-30 16:11:50 -0700
commitcd4ac42ed448f1cb286ca4c3c7ea64621adf9d42 (patch)
tree98644c0a023592c279075dc36ccae40fc8a9505d /include
parent948700612e987b49185f7916befd38f39a2b0a3b (diff)
downloadframeworks_av-cd4ac42ed448f1cb286ca4c3c7ea64621adf9d42.zip
frameworks_av-cd4ac42ed448f1cb286ca4c3c7ea64621adf9d42.tar.gz
frameworks_av-cd4ac42ed448f1cb286ca4c3c7ea64621adf9d42.tar.bz2
Support MediaCodec::getOutputFormat for encoders
codec specific data is provided as part of the MediaFormat if available. Change-Id: I5a79c936e2411fe66ebc694791071faefc33941e related-to-bug: 8616651
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/MediaCodec.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/stagefright/MediaCodec.h b/include/media/stagefright/MediaCodec.h
index a06a8e1..76aa503 100644
--- a/include/media/stagefright/MediaCodec.h
+++ b/include/media/stagefright/MediaCodec.h
@@ -177,6 +177,8 @@ private:
kFlagDequeueOutputPending = 32,
kFlagIsSecure = 64,
kFlagSawMediaServerDie = 128,
+ kFlagIsEncoder = 256,
+ kFlagGatherCodecSpecificData = 512,
};
struct BufferInfo {
@@ -244,6 +246,8 @@ private:
status_t onSetParameters(const sp<AMessage> &params);
+ status_t amendOutputFormatWithCodecSpecificData(const sp<ABuffer> &buffer);
+
DISALLOW_EVIL_CONSTRUCTORS(MediaCodec);
};