summaryrefslogtreecommitdiffstats
path: root/camera/inc
diff options
context:
space:
mode:
authorSundar Raman <sunds@ti.com>2011-08-26 11:28:22 -0700
committerIliyan Malchev <malchev@google.com>2011-08-26 12:39:42 -0700
commit0eba93f2b1a8dfece8dc6abf57d706ca55f2de98 (patch)
tree8a0755e0e30a7ba71c89811064e6dd93bfa361fc /camera/inc
parent751058292f6819da23f13808ffe2bf2fc619ff7c (diff)
downloadhardware_ti_omap4-0eba93f2b1a8dfece8dc6abf57d706ca55f2de98.zip
hardware_ti_omap4-0eba93f2b1a8dfece8dc6abf57d706ca55f2de98.tar.gz
hardware_ti_omap4-0eba93f2b1a8dfece8dc6abf57d706ca55f2de98.tar.bz2
CameraHAL: Adds support for 'autoFocus()' calls during CAF
- Previously during CAF any calls for doing AF were immediately returning status. The patch will check if CAF has succeeded in locking and if this is not the case it will temporarily switch to 'auto' triggering a full AF sweep. CAF is again restored afterwards. - Additionally this patch adds support for canceling AF during 'PREVIEW_STATE' state, which is needed in order to release the 3A lock after AF Change-Id: Ie8c9b77fb134e63ed668a22453c1672b34488d94 Signed-off-by: Sundar Raman <sunds@ti.com>
Diffstat (limited to 'camera/inc')
-rw-r--r--camera/inc/OMXCameraAdapter/OMXCameraAdapter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h b/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h
index b065d06..6fc4423 100644
--- a/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h
+++ b/camera/inc/OMXCameraAdapter/OMXCameraAdapter.h
@@ -419,6 +419,8 @@ private:
status_t stopAutoFocus();
status_t checkFocus(OMX_PARAM_FOCUSSTATUSTYPE *eFocusStatus);
status_t returnFocusStatus(bool timeoutReached);
+ status_t getFocusMode(OMX_IMAGE_CONFIG_FOCUSCONTROLTYPE &focusMode);
+
//Focus distances
status_t setParametersFocus(const CameraParameters &params,