summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/StagefrightRecorder.h
diff options
context:
space:
mode:
authorNipun Kwatra <nkwatra@google.com>2010-08-31 15:35:44 -0700
committerNipun Kwatra <nkwatra@google.com>2010-09-01 13:46:46 -0700
commitcfe88a20345dad981842b2c8092e4c704d3f98b4 (patch)
treebb47e897bce701371e03b750838b852f9971f6d3 /media/libmediaplayerservice/StagefrightRecorder.h
parentad452ffadf0ced7449395585a55255c915734e17 (diff)
downloadframeworks_av-cfe88a20345dad981842b2c8092e4c704d3f98b4.zip
frameworks_av-cfe88a20345dad981842b2c8092e4c704d3f98b4.tar.gz
frameworks_av-cfe88a20345dad981842b2c8092e4c704d3f98b4.tar.bz2
Support for auxiliary video parameters.
Added support for passing width, height and video bitrate for the auxiliary video. Also setting encoder level depending on the video size and bitrate. Change-Id: I4a90046853f67287c3e7e6babc75b4827f0c3e73
Diffstat (limited to 'media/libmediaplayerservice/StagefrightRecorder.h')
-rw-r--r--media/libmediaplayerservice/StagefrightRecorder.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/media/libmediaplayerservice/StagefrightRecorder.h b/media/libmediaplayerservice/StagefrightRecorder.h
index d75a540..d50a393 100644
--- a/media/libmediaplayerservice/StagefrightRecorder.h
+++ b/media/libmediaplayerservice/StagefrightRecorder.h
@@ -79,9 +79,10 @@ private:
video_encoder mVideoEncoder;
bool mUse64BitFileOffset;
int32_t mVideoWidth, mVideoHeight;
+ int32_t mAuxVideoWidth, mAuxVideoHeight;
int32_t mFrameRate;
- int32_t mVideoBitRate, mVideoBitRateAux;
- int32_t mAudioBitRate, mAudioBitRateAux;
+ int32_t mVideoBitRate, mAuxVideoBitRate;
+ int32_t mAudioBitRate;
int32_t mAudioChannels;
int32_t mSampleRate;
int32_t mInterleaveDurationUs;
@@ -109,8 +110,10 @@ private:
MediaProfiles *mEncoderProfiles;
status_t setupMPEG4Recording(
- bool useAuxiliaryCameraSource,
- int outputFd, int32_t audioBitRate, int32_t videoBitRate,
+ bool useSplitCameraSource,
+ int outputFd,
+ int32_t videoWidth, int32_t videoHeight,
+ int32_t videoBitRate,
int32_t *totalBitRate,
sp<MediaWriter> *mediaWriter);
void setupMPEG4MetaData(int64_t startTimeUs, int32_t totalBitRate,
@@ -137,6 +140,9 @@ private:
status_t setParamTimeLapseEnable(int32_t timeLapseEnable);
status_t setParamUseStillCameraForTimeLapse(int32_t useStillCamera);
status_t setParamTimeBetweenTimeLapseFrameCapture(int64_t timeUs);
+ status_t setParamAuxVideoHeight(int32_t height);
+ status_t setParamAuxVideoWidth(int32_t width);
+ status_t setParamAuxVideoEncodingBitRate(int32_t bitRate);
status_t setParamVideoEncodingBitRate(int32_t bitRate);
status_t setParamVideoIFramesInterval(int32_t seconds);
status_t setParamVideoEncoderProfile(int32_t profile);