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
commitb72081966da3842e27f88045cfa5a67cef3d4220 (patch)
tree1469bf4633371ea89bbad0a20a2067b6ea1a882e /include
parent6a73368be44f45a80cc4b65dc57b9ff529cb2d89 (diff)
downloadframeworks_base-b72081966da3842e27f88045cfa5a67cef3d4220.zip
frameworks_base-b72081966da3842e27f88045cfa5a67cef3d4220.tar.gz
frameworks_base-b72081966da3842e27f88045cfa5a67cef3d4220.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 {