diff options
author | James Dong <jdong@google.com> | 2010-06-16 17:27:46 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-06-17 11:34:10 -0700 |
commit | 99c2a076b4a46762a22bbb4dfbd51d107e0532d9 (patch) | |
tree | 0d44a7f577f44a060498a060d64402dd9312e48a /media/libmediaplayerservice/StagefrightRecorder.h | |
parent | 8fb4e091bc62b15bec2c05adcb50429bb76f1b28 (diff) | |
download | frameworks_av-99c2a076b4a46762a22bbb4dfbd51d107e0532d9.zip frameworks_av-99c2a076b4a46762a22bbb4dfbd51d107e0532d9.tar.gz frameworks_av-99c2a076b4a46762a22bbb4dfbd51d107e0532d9.tar.bz2 |
Check and clip some video encoding parameters against media profiles before passing them to video encoder
Change-Id: I69e0e7411806a4ece6c0bf0e02c74eaaf48a17ac
Diffstat (limited to 'media/libmediaplayerservice/StagefrightRecorder.h')
-rw-r--r-- | media/libmediaplayerservice/StagefrightRecorder.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/StagefrightRecorder.h b/media/libmediaplayerservice/StagefrightRecorder.h index baf33cf..7de96f6 100644 --- a/media/libmediaplayerservice/StagefrightRecorder.h +++ b/media/libmediaplayerservice/StagefrightRecorder.h @@ -26,6 +26,7 @@ namespace android { class Camera; struct MediaSource; struct MediaWriter; +class MediaProfiles; struct StagefrightRecorder : public MediaRecorderBase { StagefrightRecorder(); @@ -84,6 +85,8 @@ private: int mOutputFd; int32_t mFlags; + MediaProfiles *mEncoderProfiles; + status_t startMPEG4Recording(); status_t startAMRRecording(); status_t startAACRecording(); @@ -96,6 +99,10 @@ private: status_t setParamInterleaveDuration(int32_t durationUs); status_t setParamIFramesInterval(int32_t interval); status_t setParamMaxDurationOrFileSize(int64_t limit, bool limit_is_duration); + void clipVideoBitRate(); + void clipVideoFrameRate(); + void clipVideoFrameWidth(); + void clipVideoFrameHeight(); StagefrightRecorder(const StagefrightRecorder &); StagefrightRecorder &operator=(const StagefrightRecorder &); |