camera_set_3a_face_priority()
Configure 3A algorithm for face-detection priority.
Synopsis:
#include <camera/camera_api.h>
camera_error_t camera_set_3a_face_priority(camera_handle_t handle, uint32_t priority)
Arguments:
- handle
-
The handle returned by a call to the camera_open() function.
- priority
-
The face priority mode to configure on the camera.
Library:
libcamapiDescription:
For the priority argument, you can OR values from the camera_3a_t enumeration to enable or disable 3A face-detection priority. These are examples:
- Enable 3A face-detection priority for autofocus and auto exposure, but not auto white balance: CAMERA_3A_AUTOFOCUS|CAMERA_3A_AUTOEXPOSURE.
- Disable face priority: CAMERA_3A_NONE
Enabling 3A face-detection priority for a given mode will clear any corresponding
camera_region_t. For example,
if priority includes CAMERA_3A_AUTOEXPOSURE
, the camera_region_t set by camera_set_exposure_regions()
is cleared.
Returns:
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.