summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/ACodec.h
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2013-02-19 07:28:30 -0800
committerAndy McFadden <fadden@android.com>2013-03-04 15:03:53 -0800
commitf779bb50d9746d9526541c3e6dcdf619cac941b7 (patch)
treecee03011ebf84cfcd704ead0744e0b53dd91c4f7 /include/media/stagefright/ACodec.h
parent10774e144b3c99afad9a5070ccf50fdb12b5fb4e (diff)
downloadframeworks_av-f779bb50d9746d9526541c3e6dcdf619cac941b7.zip
frameworks_av-f779bb50d9746d9526541c3e6dcdf619cac941b7.tar.gz
frameworks_av-f779bb50d9746d9526541c3e6dcdf619cac941b7.tar.bz2
Implement Surface input to MediaCodec.
Also, renamed a CHECK_INTERFACE macro that was clashing with the Binder version. Bug 7991062 Change-Id: If5e6ed0a06d9f67975497676e4b05abe3aa3d6c0
Diffstat (limited to 'include/media/stagefright/ACodec.h')
-rw-r--r--include/media/stagefright/ACodec.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/media/stagefright/ACodec.h b/include/media/stagefright/ACodec.h
index 317b6f0..097ec5f 100644
--- a/include/media/stagefright/ACodec.h
+++ b/include/media/stagefright/ACodec.h
@@ -43,6 +43,8 @@ struct ACodec : public AHierarchicalStateMachine {
kWhatError = 'erro',
kWhatComponentAllocated = 'cAll',
kWhatComponentConfigured = 'cCon',
+ kWhatInputSurfaceCreated = 'isfc',
+ kWhatSignaledInputEOS = 'seos',
kWhatBuffersAllocated = 'allc',
};
@@ -55,9 +57,11 @@ struct ACodec : public AHierarchicalStateMachine {
void initiateShutdown(bool keepComponentAllocated = false);
void signalSetParameters(const sp<AMessage> &msg);
+ void signalEndOfInputStream();
void initiateAllocateComponent(const sp<AMessage> &msg);
void initiateConfigureComponent(const sp<AMessage> &msg);
+ void initiateCreateInputSurface();
void initiateStart();
void signalRequestIDRFrame();
@@ -105,6 +109,8 @@ private:
kWhatDrainDeferredMessages = 'drai',
kWhatAllocateComponent = 'allo',
kWhatConfigureComponent = 'conf',
+ kWhatCreateInputSurface = 'cisf',
+ kWhatSignalEndOfInputStream = 'eois',
kWhatStart = 'star',
kWhatRequestIDRFrame = 'ridr',
kWhatSetParameters = 'setP',