diff options
author | Lajos Molnar <lajos@google.com> | 2014-07-30 18:54:08 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2014-07-30 18:57:54 -0700 |
commit | 0e8cfc36044ba97545e7c9e129b0b3e98eec5089 (patch) | |
tree | b5e55c1096feffd181a0497a65b0e4f34a180725 /include/media | |
parent | b382340f33ac2dc26fe825ceb3ef98bac8af974c (diff) | |
download | frameworks_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/media')
-rw-r--r-- | include/media/stagefright/MediaCodec.h | 2 |
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); }; |