summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2014-07-30 18:54:08 -0700
committerLajos Molnar <lajos@google.com>2014-07-30 18:57:54 -0700
commit0e8cfc36044ba97545e7c9e129b0b3e98eec5089 (patch)
treeb5e55c1096feffd181a0497a65b0e4f34a180725 /include
parentb382340f33ac2dc26fe825ceb3ef98bac8af974c (diff)
downloadframeworks_av-0e8cfc36044ba97545e7c9e129b0b3e98eec5089.zip
frameworks_av-0e8cfc36044ba97545e7c9e129b0b3e98eec5089.tar.gz
frameworks_av-0e8cfc36044ba97545e7c9e129b0b3e98eec5089.tar.bz2
stagefright: MediaCodec async operations.
In async mode: - codec must be restarted after flush - dequeueIn/OutputBuffers fail - getIn/OutputBuffers fail Bug: 11990118 Change-Id: If2d6a76ab499ee9ed4a11486fb537acbc52e66f6
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/MediaCodec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/stagefright/MediaCodec.h b/include/media/stagefright/MediaCodec.h
index 26a0963..4ff0d62 100644
--- a/include/media/stagefright/MediaCodec.h
+++ b/include/media/stagefright/MediaCodec.h
@@ -157,6 +157,7 @@ private:
STARTING,
STARTED,
FLUSHING,
+ FLUSHED,
STOPPING,
RELEASING,
};
@@ -301,6 +302,7 @@ private:
status_t amendOutputFormatWithCodecSpecificData(const sp<ABuffer> &buffer);
void updateBatteryStat();
+ bool isExecuting() const;
DISALLOW_EVIL_CONSTRUCTORS(MediaCodec);
};