diff options
author | Andreas Huber <andih@google.com> | 2012-09-12 12:08:55 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-09-13 09:21:02 -0700 |
commit | b62f95145293bf1a39959166a4964088bb413224 (patch) | |
tree | 4ee9c19ac6d89e2640eb964e95dec87553ae9d13 /include/media | |
parent | 2954fe9a1cf578c2ad54c2fefb79aeb2a3d220eb (diff) | |
download | frameworks_av-b62f95145293bf1a39959166a4964088bb413224.zip frameworks_av-b62f95145293bf1a39959166a4964088bb413224.tar.gz frameworks_av-b62f95145293bf1a39959166a4964088bb413224.tar.bz2 |
Throttle SurfaceMediaSource.
Change-Id: I214ce60f8d94df9c07041577e34ed1ad5e199fdb
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/stagefright/SurfaceMediaSource.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/media/stagefright/SurfaceMediaSource.h b/include/media/stagefright/SurfaceMediaSource.h index 840b4aa..9e07ea4 100644 --- a/include/media/stagefright/SurfaceMediaSource.h +++ b/include/media/stagefright/SurfaceMediaSource.h @@ -167,6 +167,8 @@ private: // this list in signalBufferReturned Vector<sp<GraphicBuffer> > mCurrentBuffers; + size_t mNumPendingBuffers; + // mCurrentTimestamp is the timestamp for the current texture. It // gets set to mLastQueuedTimestamp each time updateTexImage is called. int64_t mCurrentTimestamp; @@ -202,10 +204,14 @@ private: // offset timestamps. int64_t mStartTimeNs; + size_t mMaxAcquiredBufferCount; + // mFrameAvailableCondition condition used to indicate whether there // is a frame available for dequeuing Condition mFrameAvailableCondition; + Condition mMediaBuffersAvailableCondition; + // Avoid copying and equating and default constructor DISALLOW_IMPLICIT_CONSTRUCTORS(SurfaceMediaSource); }; |