summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/CameraSourceTimeLapse.h
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-10-08 11:59:32 -0700
committerJames Dong <jdong@google.com>2010-10-08 18:32:43 -0700
commit54ff19ac69ace7c05ea90d225e26dab3b133f487 (patch)
treeabf0b910f9a40a2409d7e725c99c6144238d0625 /include/media/stagefright/CameraSourceTimeLapse.h
parentfa6a5d481474ba11517c8d0eb6431595d387b81e (diff)
downloadframeworks_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 'include/media/stagefright/CameraSourceTimeLapse.h')
-rw-r--r--include/media/stagefright/CameraSourceTimeLapse.h27
1 files changed, 14 insertions, 13 deletions
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> &camera,
- int64_t timeBetweenTimeLapseFrameCaptureUs,
- int32_t width, int32_t height,
- int32_t videoFrameRate);
+ static CameraSourceTimeLapse *CreateFromCamera(
+ const sp<ICamera> &camera,
+ int32_t cameraId,
+ Size videoSize,
+ int32_t videoFrameRate,
+ const sp<Surface>& surface,
+ int64_t timeBetweenTimeLapseFrameCaptureUs);
virtual ~CameraSourceTimeLapse();
@@ -132,10 +130,13 @@ private:
// Status code for last read.
status_t mLastReadStatus;
- CameraSourceTimeLapse(const sp<Camera> &camera,
- int64_t timeBetweenTimeLapseFrameCaptureUs,
- int32_t width, int32_t height,
- int32_t videoFrameRate);
+ CameraSourceTimeLapse(
+ const sp<ICamera> &camera,
+ int32_t cameraId,
+ Size videoSize,
+ int32_t videoFrameRate,
+ const sp<Surface>& surface,
+ int64_t timeBetweenTimeLapseFrameCaptureUs);
// Wrapper over CameraSource::signalBufferReturned() to implement quick stop.
// It only handles the case when mLastReadBufferCopy is signalled. Otherwise