From 63614c132b320a6146b6be85b8f3131135db4ba2 Mon Sep 17 00:00:00 2001 From: ApurupaPattapu Date: Thu, 28 Jun 2012 15:00:26 -0700 Subject: 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 --- include/media/stagefright/ACodec.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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 mExecutingToIdleState; sp mIdleToLoadedState; sp mFlushingState; +#ifdef QCOM_HARDWARE + sp mFlushingOutputState; +#endif sp mSkipCutBuffer; AString mComponentName; -- cgit v1.1