summaryrefslogtreecommitdiffstats
path: root/include
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
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')
-rw-r--r--include/media/stagefright/MPEG4Writer.h6
-rw-r--r--include/media/stagefright/MetaData.h4
2 files changed, 8 insertions, 2 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();
diff --git a/include/media/stagefright/MetaData.h b/include/media/stagefright/MetaData.h
index ab1fa4f..43354c2 100644
--- a/include/media/stagefright/MetaData.h
+++ b/include/media/stagefright/MetaData.h
@@ -86,10 +86,10 @@ enum {
// Track authoring progress status
// kKeyTrackTimeStatus is used to track progress in elapsed time
- // kKeyTrackFrameStatus is used to track progress in authored frames
- kKeyTrackFrameStatus = 'tkfm', // int32_t
kKeyTrackTimeStatus = 'tktm', // int64_t
+ kKeyNotRealTime = 'ntrt', // bool (int32_t)
+
};
enum {