diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-10-27 18:07:01 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-10-28 00:38:02 +0800 |
commit | 597f405273ce21b7e67984084c428d84c3365bd9 (patch) | |
tree | 69a0a2f098e37d684514980d686fb1ec28106828 /include/camera | |
parent | 55f4bc5c3d1acfaa735b8b19cf34b6b68f6cfcca (diff) | |
download | frameworks_av-597f405273ce21b7e67984084c428d84c3365bd9.zip frameworks_av-597f405273ce21b7e67984084c428d84c3365bd9.tar.gz frameworks_av-597f405273ce21b7e67984084c428d84c3365bd9.tar.bz2 |
Update camera continuous autofocus javadoc.
Suppose applications call autoFocus in CAF picture mode. If
CAF is in the middle of scanning, the picture is very likely to
be blurry. Change focus callback to return when the scanning
finishes.
bug:5514415
Change-Id: Ibcb8f92a5263d7dbd7cce54df3617fb21c6255d4
Diffstat (limited to 'include/camera')
-rw-r--r-- | include/camera/CameraParameters.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/include/camera/CameraParameters.h b/include/camera/CameraParameters.h index ef4cf5c..7edf6b4 100644 --- a/include/camera/CameraParameters.h +++ b/include/camera/CameraParameters.h @@ -644,15 +644,17 @@ public: // than FOCUS_MODE_CONTINUOUS_VIDEO. Auto focus starts when the parameter is // set. // - // If applications call CameraHardwareInterface.autoFocus in this mode, the - // focus callback will immediately return with a boolean that indicates - // whether the focus is sharp or not. The apps can then decide if they want - // to take a picture immediately or to change the focus mode to auto, and - // run a full autofocus cycle. The focus position is locked after autoFocus - // call. If applications want to resume the continuous focus, - // cancelAutoFocus must be called. Restarting the preview will not resume - // the continuous autofocus. To stop continuous focus, applications should - // change the focus mode to other modes. + // Applications can call CameraHardwareInterface.autoFocus in this mode. If + // the autofocus is in the middle of scanning, the focus callback will + // return when it completes. If the autofocus is not scanning, focus + // callback will immediately return with a boolean that indicates whether + // the focus is sharp or not. The apps can then decide if they want to take + // a picture immediately or to change the focus mode to auto, and run a full + // autofocus cycle. The focus position is locked after autoFocus call. If + // applications want to resume the continuous focus, cancelAutoFocus must be + // called. Restarting the preview will not resume the continuous autofocus. + // To stop continuous focus, applications should change the focus mode to + // other modes. static const char FOCUS_MODE_CONTINUOUS_PICTURE[]; private: |