summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPraveen Chavan <pchavan@codeaurora.org>2014-10-16 11:49:14 -0700
committerChong Zhang <chz@google.com>2014-11-12 17:22:36 -0800
commit1099188151eb63af24ecf542b58d4257bbb8236a (patch)
treed1f15d781c76f511465da68c6d334ebcaf8b6eac /include
parent868e2f0148b1c491e4fd4839b46d73f6216a058d (diff)
downloadframeworks_av-1099188151eb63af24ecf542b58d4257bbb8236a.zip
frameworks_av-1099188151eb63af24ecf542b58d4257bbb8236a.tar.gz
frameworks_av-1099188151eb63af24ecf542b58d4257bbb8236a.tar.bz2
Stagefright: use MediaCodec in async mode for recording
Async mode reduces the number of messages posted between MediaCodec and MediaCodecSource. This reduces thread wakeups and helps reduce CPU utilization. Bug: 18246026 Change-Id: I4b0837f309fdd12e323c1dfa72525f5a31971a03
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/MediaCodecSource.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/media/stagefright/MediaCodecSource.h b/include/media/stagefright/MediaCodecSource.h
index 3629c8b..0970b2b 100644
--- a/include/media/stagefright/MediaCodecSource.h
+++ b/include/media/stagefright/MediaCodecSource.h
@@ -85,8 +85,6 @@ private:
status_t initEncoder();
void releaseEncoder();
status_t feedEncoderInputBuffers();
- void scheduleDoMoreWork();
- status_t doMoreWork(int32_t numInput, int32_t numOutput);
void suspend();
void resume(int64_t skipFramesBeforeUs = -1ll);
void signalEOS(status_t err = ERROR_END_OF_STREAM);
@@ -108,8 +106,6 @@ private:
bool mDoMoreWorkPending;
sp<AMessage> mEncoderActivityNotify;
sp<IGraphicBufferProducer> mGraphicBufferProducer;
- Vector<sp<ABuffer> > mEncoderInputBuffers;
- Vector<sp<ABuffer> > mEncoderOutputBuffers;
List<MediaBuffer *> mInputBufferQueue;
List<size_t> mAvailEncoderInputIndices;
List<int64_t> mDecodingTimeQueue; // decoding time (us) for video