diff options
author | James Dong <jdong@google.com> | 2010-10-08 11:59:32 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-10-08 18:32:43 -0700 |
commit | 54ff19ac69ace7c05ea90d225e26dab3b133f487 (patch) | |
tree | abf0b910f9a40a2409d7e725c99c6144238d0625 /media/libmediaplayerservice/StagefrightRecorder.h | |
parent | fa6a5d481474ba11517c8d0eb6431595d387b81e (diff) | |
download | frameworks_av-54ff19ac69ace7c05ea90d225e26dab3b133f487.zip frameworks_av-54ff19ac69ace7c05ea90d225e26dab3b133f487.tar.gz frameworks_av-54ff19ac69ace7c05ea90d225e26dab3b133f487.tar.bz2 |
Move Camera specific logic out from StagefrightRecorder to CameraSource
o updated comments and streamlined the logic in
checkVideoSize() and checkFrameRate() as suggested
Change-Id: I49d04ac7998d4a215997aa63555dfb6e814e38d3
Diffstat (limited to 'media/libmediaplayerservice/StagefrightRecorder.h')
-rw-r--r-- | media/libmediaplayerservice/StagefrightRecorder.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/media/libmediaplayerservice/StagefrightRecorder.h b/media/libmediaplayerservice/StagefrightRecorder.h index f14c704..039bc16 100644 --- a/media/libmediaplayerservice/StagefrightRecorder.h +++ b/media/libmediaplayerservice/StagefrightRecorder.h @@ -63,12 +63,7 @@ struct StagefrightRecorder : public MediaRecorderBase { virtual status_t dump(int fd, const Vector<String16>& args) const; private: - enum CameraFlags { - FLAGS_SET_CAMERA = 1L << 0, - FLAGS_HOT_CAMERA = 1L << 1, - }; - - sp<Camera> mCamera; + sp<ICamera> mCamera; sp<Surface> mPreviewSurface; sp<IMediaRecorderClient> mListener; sp<MediaWriter> mWriter, mWriterAux; @@ -107,7 +102,6 @@ private: String8 mParams; int mOutputFd, mOutputFdAux; - int32_t mFlags; MediaProfiles *mEncoderProfiles; @@ -125,10 +119,7 @@ private: status_t startAACRecording(); status_t startRTPRecording(); sp<MediaSource> createAudioSource(); - status_t setupCamera(); - bool isVideoSizeSupported(const Vector<Size>& supportedSizes) const; - status_t setCameraVideoSize(CameraParameters* params, - bool *isSetVideoSizeSupported); + status_t checkVideoEncoderCapabilities(); status_t setupCameraSource(sp<CameraSource> *cameraSource); status_t setupAudioEncoder(const sp<MediaWriter>& writer); status_t setupVideoEncoder( |