diff options
author | Lajos Molnar <lajos@google.com> | 2014-02-13 15:29:49 -0800 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2014-03-19 02:15:24 +0000 |
commit | b635b0e66b257ab442e230bca96afd5105cf6829 (patch) | |
tree | ce27a9ac30a219e6895cffddd6c4f9ab873ca19a /include | |
parent | 43ca783effd99bba0e6e2dd6fe177a8888578ef8 (diff) | |
download | frameworks_av-b635b0e66b257ab442e230bca96afd5105cf6829.zip frameworks_av-b635b0e66b257ab442e230bca96afd5105cf6829.tar.gz frameworks_av-b635b0e66b257ab442e230bca96afd5105cf6829.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: 13170236
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/ACodec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/stagefright/ACodec.h b/include/media/stagefright/ACodec.h index bf3a998..46c62dc 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; |