summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-10-01 15:59:54 -0700
committerAndreas Huber <andih@google.com>2012-10-01 15:59:54 -0700
commit90689fda75c343ab9328ced63e58f45eabaa33cc (patch)
tree76f0bb939e69791e346c25fc195f147e598591f7 /include
parent799688d0520149edc7f18ebe69c1ddd453a73cce (diff)
downloadframeworks_av-90689fda75c343ab9328ced63e58f45eabaa33cc.zip
frameworks_av-90689fda75c343ab9328ced63e58f45eabaa33cc.tar.gz
frameworks_av-90689fda75c343ab9328ced63e58f45eabaa33cc.tar.bz2
Optionally have SurfaceMediaSource return absolute timestamps
based on systemTime(). Change-Id: I2eff15dd149a4b737d6e7473d1907cf0c80b6b38 related-to-bug: 7266706
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/SurfaceMediaSource.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/media/stagefright/SurfaceMediaSource.h b/include/media/stagefright/SurfaceMediaSource.h
index 82e5965..e56527d 100644
--- a/include/media/stagefright/SurfaceMediaSource.h
+++ b/include/media/stagefright/SurfaceMediaSource.h
@@ -116,6 +116,9 @@ public:
// To be called before start()
status_t setMaxAcquiredBufferCount(size_t count);
+ // To be called before start()
+ status_t setUseAbsoluteTimestamps();
+
protected:
// Implementation of the BufferQueue::ConsumerListener interface. These
@@ -212,6 +215,8 @@ private:
size_t mMaxAcquiredBufferCount;
+ bool mUseAbsoluteTimestamps;
+
// mFrameAvailableCondition condition used to indicate whether there
// is a frame available for dequeuing
Condition mFrameAvailableCondition;