summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-08-18 10:19:45 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-08-18 10:19:45 -0700
commit186c38766c030b15135e7e8484d2d6b83464513a (patch)
tree01ff27457bdba81715dc09efe081cce4614d9ecf
parentd6831054e0c6995749ccc09e8241a478ccadb9c8 (diff)
parent85b6e1681e32162676d81f4c762bdb19927beeac (diff)
downloadframeworks_av-186c38766c030b15135e7e8484d2d6b83464513a.zip
frameworks_av-186c38766c030b15135e7e8484d2d6b83464513a.tar.gz
frameworks_av-186c38766c030b15135e7e8484d2d6b83464513a.tar.bz2
Merge "Document that autoFocus must be called in auto and macro mode." into gingerbread
-rw-r--r--include/camera/CameraParameters.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/camera/CameraParameters.h b/include/camera/CameraParameters.h
index 6a5d254..99a3115 100644
--- a/include/camera/CameraParameters.h
+++ b/include/camera/CameraParameters.h
@@ -337,11 +337,14 @@ public:
static const char PIXEL_FORMAT_JPEG[];
// Values for focus mode settings.
- // Auto-focus mode.
+ // Auto-focus mode. Applications should call
+ // CameraHardwareInterface.autoFocus to start the focus in this mode.
static const char FOCUS_MODE_AUTO[];
// Focus is set at infinity. Applications should not call
// CameraHardwareInterface.autoFocus in this mode.
static const char FOCUS_MODE_INFINITY[];
+ // Macro (close-up) focus mode. Applications should call
+ // CameraHardwareInterface.autoFocus to start the focus in this mode.
static const char FOCUS_MODE_MACRO[];
// Focus is fixed. The camera is always in this mode if the focus is not
// adjustable. If the camera has auto-focus, this mode can fix the
@@ -355,7 +358,8 @@ public:
// 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.
+ // CameraHardwareInterface.autoFocus in this mode. To stop continuous
+ // focus, applications should change the focus mode to other modes.
static const char FOCUS_MODE_CONTINUOUS[];
// The camera determines the exposure by giving more weight to the