camera_set_manual_focus_step()

Change the focus to a desired level manually on the camera.

Synopsis:

#include <camera/camera_api.h>
 
camera_error_t camera_set_manual_focus_step(camera_handle_t handle, int step)

Arguments:

handle

The handle returned by a call to the camera_open() function.

step

The location to set the focus. Use the camera_get_manual_focus_step() function to retrieve the details on the range accepted for this argument.

Library:

libcamapi

Description:

This function can be called if the CAMERA_FEATURE_MANUALFOCUS feature is available. You can determine whether the feature is available by calling the camera_can_feature() function.

Before you can change the focus manually, you need to set the camera to CAMERA_FOCUSMODE_MANUAL using the camera_set_focus_mode() function.

Returns:

CAMERA_OK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.