summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNipun Kwatra <nkwatra@google.com>2010-09-03 17:14:51 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-09-03 17:14:51 -0700
commitf5e1faf1ccee6698b7e51cd70ab382ee0c8bc5e1 (patch)
treeb258b3c38cd485089e02c64187702f05add33634 /include
parent7e955e7ccef41fba8bed9f6b9d4fd59afb9007ae (diff)
parent4a857e620fecd91d051d8e58f573b5ff30d81aaf (diff)
downloadframeworks_base-f5e1faf1ccee6698b7e51cd70ab382ee0c8bc5e1.zip
frameworks_base-f5e1faf1ccee6698b7e51cd70ab382ee0c8bc5e1.tar.gz
frameworks_base-f5e1faf1ccee6698b7e51cd70ab382ee0c8bc5e1.tar.bz2
Merge changes I71f5b0fc,I92c7accb
* changes: Moving decision to use still camera to CameraSourceTimeLapse pass auxiliary video parameters.
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/CameraSourceTimeLapse.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/media/stagefright/CameraSourceTimeLapse.h b/include/media/stagefright/CameraSourceTimeLapse.h
index 7135a33..e1cd0c8 100644
--- a/include/media/stagefright/CameraSourceTimeLapse.h
+++ b/include/media/stagefright/CameraSourceTimeLapse.h
@@ -31,13 +31,12 @@ class Camera;
class CameraSourceTimeLapse : public CameraSource {
public:
- static CameraSourceTimeLapse *Create(bool useStillCameraForTimeLapse,
+ static CameraSourceTimeLapse *Create(
int64_t timeBetweenTimeLapseFrameCaptureUs,
int32_t width, int32_t height,
int32_t videoFrameRate);
static CameraSourceTimeLapse *CreateFromCamera(const sp<Camera> &camera,
- bool useStillCameraForTimeLapse,
int64_t timeBetweenTimeLapseFrameCaptureUs,
int32_t width, int32_t height,
int32_t videoFrameRate);
@@ -87,7 +86,6 @@ private:
bool mCameraIdle;
CameraSourceTimeLapse(const sp<Camera> &camera,
- bool useStillCameraForTimeLapse,
int64_t timeBetweenTimeLapseFrameCaptureUs,
int32_t width, int32_t height,
int32_t videoFrameRate);
@@ -124,6 +122,11 @@ private:
virtual void dataCallbackTimestamp(int64_t timestampUs, int32_t msgType,
const sp<IMemory> &data);
+ // If the passed in size (width x height) is a supported preview size,
+ // the function sets the camera's preview size to it and returns true.
+ // Otherwise returns false.
+ bool trySettingPreviewSize(int32_t width, int32_t height);
+
// The still camera may not support the demanded video width and height.
// We look for the supported picture sizes from the still camera and
// choose the smallest one with either dimensions higher than the corresponding