diff options
author | Andreas Huber <andih@google.com> | 2010-12-15 17:18:20 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-12-16 10:08:26 -0800 |
commit | 2c2814b900a61fa07ddfff860b143fbbe9c740e9 (patch) | |
tree | 6e87ef2fc13807b7553fb922c149c9e9810c92fd /include | |
parent | e071b055cee301d71335519601474c62b10af411 (diff) | |
download | frameworks_av-2c2814b900a61fa07ddfff860b143fbbe9c740e9.zip frameworks_av-2c2814b900a61fa07ddfff860b143fbbe9c740e9.tar.gz frameworks_av-2c2814b900a61fa07ddfff860b143fbbe9c740e9.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.h | 11 | ||||
-rw-r--r-- | include/media/stagefright/foundation/AMessage.h | 3 |
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; |