Updated: October 28, 2024 |
Retrieve the current manual focus lens position and range
#include <camera/camera_3a.h>
camera_error_t camera_get_manual_focus_step(camera_handle_t handle, int *maxstep, int *step)
Use this function to query the current position of the lens in manual focus mode and the maximum step value supported by camera_set_manual_focus_step().
You can use this function only when the CAMERA_FEATURE_MANUALFOCUS feature is available. You can determine whether this feature is available by calling the camera_can_feature() function.
Before you can use this function to retrieve the range of accepted values, you need to set the camera to CAMERA_FOCUSMODE_MANUAL using the camera_set_focus_mode() function.
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.