camera_set_3a_lock()

Configures the autofocus, auto exposure, and auto white balance locks on the camera.

Synopsis:

#include <camera/camera_api.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

The lock to configure on the camera.

Library:

libcamapi

Description:

For the locks argument, you can specify the locks by ORing values from camera_3a_t enumeration. The following are examples:

  • To unlock autofocus, auto exposure, and auto white balance, use the value of CAMERA_3A_NONE.
  • To lock autofocus and auto exposure and unlock auto white balance, use the value of CAMERA_3A_AUTOFOCUS|CAMERA_3A_AUTOEXPOSURE.

Returns:

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