diff options
author | James Dong <jdong@google.com> | 2010-09-02 10:49:55 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-09-03 10:13:19 -0700 |
commit | b4d5320bda29cd9694461c9b61d0211f801ff0af (patch) | |
tree | 2d81a098853c18e898709ec13ec0673d8657e10e /include | |
parent | 1f90c4b3fda9dbd2824d67fd679f850572f114dc (diff) | |
download | frameworks_av-b4d5320bda29cd9694461c9b61d0211f801ff0af.zip frameworks_av-b4d5320bda29cd9694461c9b61d0211f801ff0af.tar.gz frameworks_av-b4d5320bda29cd9694461c9b61d0211f801ff0af.tar.bz2 |
Remove unused/debugging code from MP4 file writer
o also makes nal length in the recorded file modifiable at runtime
Change-Id: I731b4dde7070d8d9628b36b523a5b2c011c7c2cf
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/MPEG4Writer.h | 5 | ||||
-rw-r--r-- | include/media/stagefright/MetaData.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/media/stagefright/MPEG4Writer.h b/include/media/stagefright/MPEG4Writer.h index 52b93e1..70bd8e8 100644 --- a/include/media/stagefright/MPEG4Writer.h +++ b/include/media/stagefright/MPEG4Writer.h @@ -62,6 +62,7 @@ private: class Track; FILE *mFile; + bool mUse4ByteNalLength; bool mUse32BitOffset; bool mPaused; bool mStarted; @@ -135,6 +136,10 @@ private: void setDriftTimeUs(int64_t driftTimeUs); int64_t getDriftTimeUs(); + // Return whether the nal length is 4 bytes or 2 bytes + // Only makes sense for H.264/AVC + bool useNalLengthFour(); + void lock(); void unlock(); diff --git a/include/media/stagefright/MetaData.h b/include/media/stagefright/MetaData.h index 3b31e68..0b6201c 100644 --- a/include/media/stagefright/MetaData.h +++ b/include/media/stagefright/MetaData.h @@ -79,6 +79,7 @@ enum { // Set this key to enable authoring files in 64-bit offset kKey64BitFileOffset = 'fobt', // int32_t (bool) + kKey2ByteNalLength = '2NAL', // int32_t (bool) // Identify the file output format for authoring // Please see <media/mediarecorder.h> for the supported |