camera_set_3a_lock()

Updated: April 19, 2023

Configure the auto focus, auto exposure, and auto white balance (the 3A algorithms) locks on the camera

Synopsis:

#include <camera/camera_3a.h>
camera_error_t camera_set_3a_lock(camera_handle_t handle,
                                  uint32_t locks)

Arguments:

handle
The handle returned by a call to the camera_open() function.
locks
A bitmask of 3A algorithms to lock on the camera.

Library:

libcamapi

Description:

For the locks argument, you can specify the 3A algorithms to lock by ORing values from the camera_3a_t enumerated type. The following are examples:
Note:

Not all cameras allow the independent locking of individual 3A algorithms. For example, it may be required that auto exposure and auto white balance be locked together. Use the camera_get_3a_lock_modes() function to discover these restrictions.

Returns:

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