summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/MediaCodec.h
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
commite96ee699aca0f711d41e6c0833e5de2341c4a36d (patch)
tree98644c0a023592c279075dc36ccae40fc8a9505d /include/media/stagefright/MediaCodec.h
parentb7e2ef14a93974935783e71829f4b3174001a0fb (diff)
downloadframeworks_av-e96ee699aca0f711d41e6c0833e5de2341c4a36d.zip
frameworks_av-e96ee699aca0f711d41e6c0833e5de2341c4a36d.tar.gz
frameworks_av-e96ee699aca0f711d41e6c0833e5de2341c4a36d.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/media/stagefright/MediaCodec.h')
-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);
};