diff options
author | James Dong <jdong@google.com> | 2010-06-20 08:20:54 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-06-25 10:24:35 -0700 |
commit | 2dec2b5be2056c6d9428897dc672185872d30d17 (patch) | |
tree | 8ec375d6e5ec4c10c90552d0f6e02462cb598b64 /media/libmediaplayerservice/StagefrightRecorder.h | |
parent | d4b91aac78e565a135f8ef1bfda7e6317debaf35 (diff) | |
download | frameworks_av-2dec2b5be2056c6d9428897dc672185872d30d17.zip frameworks_av-2dec2b5be2056c6d9428897dc672185872d30d17.tar.gz frameworks_av-2dec2b5be2056c6d9428897dc672185872d30d17.tar.bz2 |
Enable passing parameters to the MediaWriter at runtime (at start() call).
- estimate the moov box size for mp4 file writer based on the file
size/duration limit and target bit rate.
- can switch to use 64 bit file offset at runtime
rebased
Change-Id: Ibbe1f57e91ab2605820d5d96e8048d11e5559c53
Diffstat (limited to 'media/libmediaplayerservice/StagefrightRecorder.h')
-rw-r--r-- | media/libmediaplayerservice/StagefrightRecorder.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/StagefrightRecorder.h b/media/libmediaplayerservice/StagefrightRecorder.h index 6eedf0c..2943e97 100644 --- a/media/libmediaplayerservice/StagefrightRecorder.h +++ b/media/libmediaplayerservice/StagefrightRecorder.h @@ -72,6 +72,7 @@ private: output_format mOutputFormat; audio_encoder mAudioEncoder; video_encoder mVideoEncoder; + bool mUse64BitFileOffset; int32_t mVideoWidth, mVideoHeight; int32_t mFrameRate; int32_t mVideoBitRate; @@ -100,6 +101,7 @@ private: status_t setParamAudioSamplingRate(int32_t sampleRate); status_t setParamInterleaveDuration(int32_t durationUs); status_t setParamIFramesInterval(int32_t interval); + status_t setParam64BitFileOffset(bool use64BitFileOffset); status_t setParamMaxDurationOrFileSize(int64_t limit, bool limit_is_duration); void clipVideoBitRate(); void clipVideoFrameRate(); |