diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2011-08-31 13:41:06 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-08-31 13:41:06 -0700 |
commit | af6764da53c022768290e735bbcc3088bec333d8 (patch) | |
tree | 9b98de8360b386d35e90f14fb256875aac963361 /include/media | |
parent | e31f4f78729f66b3a90f51671ad557b551ed0bea (diff) | |
parent | df4a59c61103e7e0e9332e167a0be67da5d82ff3 (diff) | |
download | frameworks_av-af6764da53c022768290e735bbcc3088bec333d8.zip frameworks_av-af6764da53c022768290e735bbcc3088bec333d8.tar.gz frameworks_av-af6764da53c022768290e735bbcc3088bec333d8.tar.bz2 |
Merge "Fix SurfaceMediaSource timestamp handling."
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/stagefright/SurfaceMediaSource.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/media/stagefright/SurfaceMediaSource.h b/include/media/stagefright/SurfaceMediaSource.h index 74d54d1..f7f0ed7 100644 --- a/include/media/stagefright/SurfaceMediaSource.h +++ b/include/media/stagefright/SurfaceMediaSource.h @@ -347,6 +347,13 @@ private: // encoder int mNumFramesEncoded; + // mFirstFrameTimestamp is the timestamp of the first received frame. + // It is used to offset the output timestamps so recording starts at time 0. + int64_t mFirstFrameTimestamp; + // mStartTimeNs is the start time passed into the source at start, used to + // offset timestamps. + int64_t mStartTimeNs; + // mFrameAvailableCondition condition used to indicate whether there // is a frame available for dequeuing Condition mFrameAvailableCondition; |