summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLajos Molnar <lajos@google.com>2014-02-13 15:29:49 -0800
committerLajos Molnar <lajos@google.com>2014-03-11 14:20:00 -0700
commite257e5ebefdd50f808ee3b4d1596db261c9b62dd (patch)
treebe6e8e59e410550afb7046e5a5b5c10abe6047ea /include
parent3a0fb34ed9fcb665e71cc055abde520af393c493 (diff)
downloadframeworks_av-e257e5ebefdd50f808ee3b4d1596db261c9b62dd.zip
frameworks_av-e257e5ebefdd50f808ee3b4d1596db261c9b62dd.tar.gz
frameworks_av-e257e5ebefdd50f808ee3b4d1596db261c9b62dd.tar.bz2
mediaplayer: keep more buffers with the BufferQueue
Change OMX buffer allocation policy to allocate nBufferCountMin + what is required for the BQ. For the BQ, try to allocate 2 additional buffers than the minimum undequeued count. Also account for the fact that BQ may return one less than the actual minimum undequeued count. In most cases the resulting number of buffers ends up being the same as with the previous policy, but we keep more buffers with the BQ. Change-Id: I826db8bf7dd333b620299dba60bf1b81b228275d Bug: 12080418
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/ACodec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/stagefright/ACodec.h b/include/media/stagefright/ACodec.h
index 36f2a67..cce1749 100644
--- a/include/media/stagefright/ACodec.h
+++ b/include/media/stagefright/ACodec.h
@@ -203,6 +203,7 @@ private:
unsigned mDequeueCounter;
bool mStoreMetaDataInOutputBuffers;
int32_t mMetaDataBuffersToSubmit;
+ size_t mNumUndequeuedBuffers;
int64_t mRepeatFrameDelayUs;
int64_t mMaxPtsGapUs;