summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorApurupaPattapu <apurupa@codeaurora.org>2012-06-28 15:00:26 -0700
committerSteve Kondik <shade@chemlab.org>2013-02-19 11:10:37 -0800
commit63614c132b320a6146b6be85b8f3131135db4ba2 (patch)
tree6f73a22e9d25aee77ce18876c7dd926984f00c92 /include
parent739845fdb768402d6ad94f153b674aa7c044d703 (diff)
downloadframeworks_av-63614c132b320a6146b6be85b8f3131135db4ba2.zip
frameworks_av-63614c132b320a6146b6be85b8f3131135db4ba2.tar.gz
frameworks_av-63614c132b320a6146b6be85b8f3131135db4ba2.tar.bz2
ACodec: Support for dynamic port reconfig
- On port settings changed first flush output port - Move ACodec to new state called FlushingOutputState - Flush all output buffers, wait till all decoded buffers are rendered - Then disable output port, and allocate output buffers with new resolution, and reset native window Change-Id: Iafa266371ed2a87b909fbcb4eeae6b64208df617
Diffstat (limited to 'include')
-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 b42a4ac..08601aa 100644
--- a/include/media/stagefright/ACodec.h
+++ b/include/media/stagefright/ACodec.h
@@ -91,6 +91,9 @@ private:
struct ExecutingToIdleState;
struct IdleToLoadedState;
struct FlushingState;
+#ifdef QCOM_HARDWARE
+ struct FlushingOutputState;
+#endif
enum {
kWhatSetup = 'setu',
@@ -152,6 +155,9 @@ private:
sp<ExecutingToIdleState> mExecutingToIdleState;
sp<IdleToLoadedState> mIdleToLoadedState;
sp<FlushingState> mFlushingState;
+#ifdef QCOM_HARDWARE
+ sp<FlushingOutputState> mFlushingOutputState;
+#endif
sp<SkipCutBuffer> mSkipCutBuffer;
AString mComponentName;