From 54ff19ac69ace7c05ea90d225e26dab3b133f487 Mon Sep 17 00:00:00 2001 From: James Dong Date: Fri, 8 Oct 2010 11:59:32 -0700 Subject: 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 --- include/media/stagefright/CameraSourceTimeLapse.h | 27 ++++++++++++----------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'include/media/stagefright/CameraSourceTimeLapse.h') diff --git a/include/media/stagefright/CameraSourceTimeLapse.h b/include/media/stagefright/CameraSourceTimeLapse.h index 3b303f8..afe7287 100644 --- a/include/media/stagefright/CameraSourceTimeLapse.h +++ b/include/media/stagefright/CameraSourceTimeLapse.h @@ -31,15 +31,13 @@ class Camera; class CameraSourceTimeLapse : public CameraSource { public: - static CameraSourceTimeLapse *Create( - int64_t timeBetweenTimeLapseFrameCaptureUs, - int32_t width, int32_t height, - int32_t videoFrameRate); - - static CameraSourceTimeLapse *CreateFromCamera(const sp &camera, - int64_t timeBetweenTimeLapseFrameCaptureUs, - int32_t width, int32_t height, - int32_t videoFrameRate); + static CameraSourceTimeLapse *CreateFromCamera( + const sp &camera, + int32_t cameraId, + Size videoSize, + int32_t videoFrameRate, + const sp& surface, + int64_t timeBetweenTimeLapseFrameCaptureUs); virtual ~CameraSourceTimeLapse(); @@ -132,10 +130,13 @@ private: // Status code for last read. status_t mLastReadStatus; - CameraSourceTimeLapse(const sp &camera, - int64_t timeBetweenTimeLapseFrameCaptureUs, - int32_t width, int32_t height, - int32_t videoFrameRate); + CameraSourceTimeLapse( + const sp &camera, + int32_t cameraId, + Size videoSize, + int32_t videoFrameRate, + const sp& surface, + int64_t timeBetweenTimeLapseFrameCaptureUs); // Wrapper over CameraSource::signalBufferReturned() to implement quick stop. // It only handles the case when mLastReadBufferCopy is signalled. Otherwise -- cgit v1.1