diff options
| author | Wu-cheng Li <wuchengli@google.com> | 2010-09-20 16:15:32 -0700 |
|---|---|---|
| committer | Wu-cheng Li <wuchengli@google.com> | 2010-09-21 08:46:32 -0700 |
| commit | ac4205c9064ca961883b1ccf2ce565e449c0983e (patch) | |
| tree | 5d741e2a6731ad4c2707f9bc689609cbbbda421c | |
| parent | 1c1503cf47c0a37a30e7acac2c5d29140fc61a5f (diff) | |
| download | frameworks_av-ac4205c9064ca961883b1ccf2ce565e449c0983e.zip frameworks_av-ac4205c9064ca961883b1ccf2ce565e449c0983e.tar.gz frameworks_av-ac4205c9064ca961883b1ccf2ce565e449c0983e.tar.bz2 | |
Rename FOCUS_MODE_CONTINUOUS to FOCUS_MODE_CONTINUOUS_VIDEO.
This constant is not public yet. Continuous autofocus should
behave differently in still camera and camcorder. In camcorder,
lens movement may be more smooth. And the triggers to start a
new focus search may be different. If there is a need,
FOCUS_MODE_CONTINUOUS_PHOTO can be added in the future.
Change-Id: I05df9e491aca37829be3df92a73b952f26c86a4a
| -rw-r--r-- | camera/CameraParameters.cpp | 2 | ||||
| -rw-r--r-- | include/camera/CameraParameters.h | 14 |
2 files changed, 9 insertions, 7 deletions
diff --git a/camera/CameraParameters.cpp b/camera/CameraParameters.cpp index 362d9ee..83e5e57 100644 --- a/camera/CameraParameters.cpp +++ b/camera/CameraParameters.cpp @@ -142,7 +142,7 @@ const char CameraParameters::FOCUS_MODE_INFINITY[] = "infinity"; const char CameraParameters::FOCUS_MODE_MACRO[] = "macro"; const char CameraParameters::FOCUS_MODE_FIXED[] = "fixed"; const char CameraParameters::FOCUS_MODE_EDOF[] = "edof"; -const char CameraParameters::FOCUS_MODE_CONTINUOUS[] = "continuous"; +const char CameraParameters::FOCUS_MODE_CONTINUOUS_VIDEO[] = "continuous-video"; CameraParameters::CameraParameters() : mMap() diff --git a/include/camera/CameraParameters.h b/include/camera/CameraParameters.h index 7c5371a..53039a0 100644 --- a/include/camera/CameraParameters.h +++ b/include/camera/CameraParameters.h @@ -380,12 +380,14 @@ public: // continuously. Applications should not call // CameraHardwareInterface.autoFocus in this mode. static const char FOCUS_MODE_EDOF[]; - // Continuous auto focus mode. The camera continuously tries to focus. This - // is ideal for shooting video or shooting photo of moving object. Auto - // focus starts when the parameter is set. Applications should not call - // CameraHardwareInterface.autoFocus in this mode. To stop continuous - // focus, applications should change the focus mode to other modes. - static const char FOCUS_MODE_CONTINUOUS[]; + // Continuous auto focus mode intended for video recording. The camera + // continuously tries to focus. This is ideal for shooting video. + // Applications still can call CameraHardwareInterface.takePicture in this + // mode but the subject may not be in focus. Auto focus starts when the + // parameter is set. Applications should not call + // CameraHardwareInterface.autoFocus in this mode. To stop continuous focus, + // applications should change the focus mode to other modes. + static const char FOCUS_MODE_CONTINUOUS_VIDEO[]; private: DefaultKeyedVector<String8,String8> mMap; |
