summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorztenghui <ztenghui@google.com>2013-04-12 13:50:38 -0700
committerztenghui <ztenghui@google.com>2013-04-15 10:48:33 -0700
commite756d9753c7cffe2e9731a31fa98a3e8f37151c9 (patch)
treed8d6d13587b902e574690740b850eaf1166e7759 /include
parente574eecea416c813d539a0977d5393c3ed291a1c (diff)
downloadframeworks_av-e756d9753c7cffe2e9731a31fa98a3e8f37151c9.zip
frameworks_av-e756d9753c7cffe2e9731a31fa98a3e8f37151c9.tar.gz
frameworks_av-e756d9753c7cffe2e9731a31fa98a3e8f37151c9.tar.bz2
MediaMuxer prefer not to use the MPEG4Writer in real time recording mode.
By default, MPEG4Write will keep running in real time recording mode. bug:8598944 Change-Id: Idf7fbd4e0feb7763660a74279ba8817b79098aaf
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/MPEG4Writer.h8
-rw-r--r--include/media/stagefright/MetaData.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/include/media/stagefright/MPEG4Writer.h b/include/media/stagefright/MPEG4Writer.h
index 88df6b0..3ef6b9a 100644
--- a/include/media/stagefright/MPEG4Writer.h
+++ b/include/media/stagefright/MPEG4Writer.h
@@ -74,6 +74,7 @@ private:
int mFd;
status_t mInitCheck;
+ bool mIsRealTimeRecording;
bool mUse4ByteNalLength;
bool mUse32BitOffset;
bool mIsFileSizeLimitExplicitlyRequested;
@@ -168,6 +169,13 @@ private:
// Only makes sense for H.264/AVC
bool useNalLengthFour();
+ // Return whether the writer is used for real time recording.
+ // In real time recording mode, new samples will be allowed to buffered into
+ // chunks in higher priority thread, even though the file writer has not
+ // drained the chunks yet.
+ // By default, real time recording is on.
+ bool isRealTimeRecording() const;
+
void lock();
void unlock();
diff --git a/include/media/stagefright/MetaData.h b/include/media/stagefright/MetaData.h
index be08c19..df54923 100644
--- a/include/media/stagefright/MetaData.h
+++ b/include/media/stagefright/MetaData.h
@@ -112,7 +112,7 @@ enum {
// kKeyTrackTimeStatus is used to track progress in elapsed time
kKeyTrackTimeStatus = 'tktm', // int64_t
- kKeyNotRealTime = 'ntrt', // bool (int32_t)
+ kKeyRealTimeRecording = 'rtrc', // bool (int32_t)
kKeyNumBuffers = 'nbbf', // int32_t
// Ogg files can be tagged to be automatically looping...