summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/MPEG4Writer.h
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-08-02 19:13:40 -0700
committerJames Dong <jdong@google.com>2010-08-13 18:12:48 -0700
commite259531ce59ab1f31de5a23124b22536f6a5a767 (patch)
tree2639bd5aa4057811c3199836cb945e98feb70ac4 /include/media/stagefright/MPEG4Writer.h
parent3053dd2785648c65f558d7e6d3a74a1599409059 (diff)
downloadframeworks_av-e259531ce59ab1f31de5a23124b22536f6a5a767.zip
frameworks_av-e259531ce59ab1f31de5a23124b22536f6a5a767.tar.gz
frameworks_av-e259531ce59ab1f31de5a23124b22536f6a5a767.tar.bz2
Use audio clock as the reference media clock
o Only do this for realtime applications o Adjust other track clock based on audio clock o Assume other track uses wall clock as the media clock o Use some heuristics to reduce the size of stts box by 2/3. - also o Remove one unused key from MetaData.h Change-Id: Ib9432842627b61795b533508158c25258a527332
Diffstat (limited to 'include/media/stagefright/MPEG4Writer.h')
-rw-r--r--include/media/stagefright/MPEG4Writer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/media/stagefright/MPEG4Writer.h b/include/media/stagefright/MPEG4Writer.h
index 2e1e8d8..be96935 100644
--- a/include/media/stagefright/MPEG4Writer.h
+++ b/include/media/stagefright/MPEG4Writer.h
@@ -128,6 +128,12 @@ private:
// Write the first chunk from the given ChunkInfo.
void writeFirstChunk(ChunkInfo* info);
+ // Adjust other track media clock (presumably wall clock)
+ // based on audio track media clock with the drift time.
+ int64_t mDriftTimeUs;
+ void addDriftTimeUs(int64_t driftTimeUs);
+ int64_t getDriftTimeUs();
+
void lock();
void unlock();