summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-12-15 17:18:20 -0800
committerAndreas Huber <andih@google.com>2010-12-16 10:08:26 -0800
commit687b32d83e0145b0a684e3a9704ab50939260d60 (patch)
tree06e0e2efc101c5ff2434eaa942c125b88e676dfa /include
parent6a4d0a6af20d4ba88f8eeb658c68757c0926cbc5 (diff)
downloadframeworks_base-687b32d83e0145b0a684e3a9704ab50939260d60.zip
frameworks_base-687b32d83e0145b0a684e3a9704ab50939260d60.tar.gz
frameworks_base-687b32d83e0145b0a684e3a9704ab50939260d60.tar.bz2
Properly announce decoder output format changes, make sure AMessage::dup does.
Change-Id: Ia77f6b6d5e5c5055583740dfe876b8a3c22be9b6
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/ACodec.h11
-rw-r--r--include/media/stagefright/foundation/AMessage.h3
2 files changed, 9 insertions, 5 deletions
diff --git a/include/media/stagefright/ACodec.h b/include/media/stagefright/ACodec.h
index 940470d..b3815c4 100644
--- a/include/media/stagefright/ACodec.h
+++ b/include/media/stagefright/ACodec.h
@@ -14,11 +14,12 @@ struct MemoryDealer;
struct ACodec : public AHierarchicalStateMachine {
enum {
- kWhatFillThisBuffer = 'fill',
- kWhatDrainThisBuffer = 'drai',
- kWhatEOS = 'eos ',
- kWhatShutdownCompleted = 'scom',
- kWhatFlushCompleted = 'fcom',
+ kWhatFillThisBuffer = 'fill',
+ kWhatDrainThisBuffer = 'drai',
+ kWhatEOS = 'eos ',
+ kWhatShutdownCompleted = 'scom',
+ kWhatFlushCompleted = 'fcom',
+ kWhatOutputFormatChanged = 'outC',
};
ACodec();
diff --git a/include/media/stagefright/foundation/AMessage.h b/include/media/stagefright/foundation/AMessage.h
index 941f6b9..91ec60c 100644
--- a/include/media/stagefright/foundation/AMessage.h
+++ b/include/media/stagefright/foundation/AMessage.h
@@ -64,6 +64,9 @@ struct AMessage : public RefBase {
void post(int64_t delayUs = 0);
+ // Performs a deep-copy of "this", contained messages are in turn "dup'ed".
+ // Warning: RefBase items, i.e. "objects" are _not_ copied but only have
+ // their refcount incremented.
sp<AMessage> dup() const;
AString debugString(int32_t indent = 0) const;