diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/media/mediarecorder.h | 16 | ||||
-rw-r--r-- | include/media/stagefright/MPEG4Writer.h | 8 |
2 files changed, 24 insertions, 0 deletions
diff --git a/include/media/mediarecorder.h b/include/media/mediarecorder.h index 089577d..59093c9 100644 --- a/include/media/mediarecorder.h +++ b/include/media/mediarecorder.h @@ -161,8 +161,24 @@ enum media_recorder_info_type { MEDIA_RECORDER_TRACK_INFO_PROGRESS_IN_TIME = 1001, MEDIA_RECORDER_TRACK_INFO_TYPE = 1002, MEDIA_RECORDER_TRACK_INFO_DURATION_MS = 1003, + + // The time to measure the max chunk duration MEDIA_RECORDER_TRACK_INFO_MAX_CHUNK_DUR_MS = 1004, + MEDIA_RECORDER_TRACK_INFO_ENCODED_FRAMES = 1005, + + // The time to measure how well the audio and video + // track data is interleaved. + MEDIA_RECORDER_TRACK_INTER_CHUNK_TIME_MS = 1006, + + // The time to measure system response. Note that + // the delay does not include the intentional delay + // we use to eliminate the recording sound. + MEDIA_RECORDER_TRACK_INFO_INITIAL_DELAY_MS = 1007, + + // The time used to compensate for initial A/V sync. + MEDIA_RECORDER_TRACK_INFO_START_OFFSET_MS = 1008, + MEDIA_RECORDER_TRACK_INFO_LIST_END = 2000, }; diff --git a/include/media/stagefright/MPEG4Writer.h b/include/media/stagefright/MPEG4Writer.h index 57624e9..4b5674e 100644 --- a/include/media/stagefright/MPEG4Writer.h +++ b/include/media/stagefright/MPEG4Writer.h @@ -108,6 +108,13 @@ private: struct ChunkInfo { Track *mTrack; // Owner List<Chunk> mChunks; // Remaining chunks to be written + + // Previous chunk timestamp that has been written + int64_t mPrevChunkTimestampUs; + + // Max time interval between neighboring chunks + int64_t mMaxInterChunkDurUs; + }; bool mIsFirstChunk; @@ -162,6 +169,7 @@ private: void writeMvhdBox(int64_t durationUs); void writeMoovBox(int64_t durationUs); void writeFtypBox(const MetaData *param); + void sendSessionSummary(); MPEG4Writer(const MPEG4Writer &); MPEG4Writer &operator=(const MPEG4Writer &); |