diff options
author | Andreas Huber <andih@google.com> | 2012-09-04 16:30:49 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-09-04 16:47:21 -0700 |
commit | 66e72bc85fb762876baff60ef29de729da93cf26 (patch) | |
tree | be694f1cbe0c554e4e4e351cdc7c80b177a864f2 /include | |
parent | fbe9d81ff5fbdc5aecdcdd13e4a5d7f019824f96 (diff) | |
download | frameworks_av-66e72bc85fb762876baff60ef29de729da93cf26.zip frameworks_av-66e72bc85fb762876baff60ef29de729da93cf26.tar.gz frameworks_av-66e72bc85fb762876baff60ef29de729da93cf26.tar.bz2 |
Configure the SurfaceMediaSource to emit the same number of buffers
as the video encoder allocates for its input. Do this before connecting
the bufferqueue through surface flinger.
Change-Id: Ibc81db1359afe2d88fdb75b23fadae65c8a6f7cc
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/SurfaceMediaSource.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/stagefright/SurfaceMediaSource.h b/include/media/stagefright/SurfaceMediaSource.h index 724c68d..840b4aa 100644 --- a/include/media/stagefright/SurfaceMediaSource.h +++ b/include/media/stagefright/SurfaceMediaSource.h @@ -111,6 +111,9 @@ public: sp<BufferQueue> getBufferQueue() const { return mBufferQueue; } + // To be called before start() + status_t setMaxAcquiredBufferCount(size_t count); + protected: // Implementation of the BufferQueue::ConsumerListener interface. These |