Configure 3A algorithms for face-detection priority.
#include <camera/camera_api.h>
camera_error_t camera_set_3a_face_priority(camera_handle_t handle,
uint32_t priority)
BlackBerry 10.0.0
The handle returned by a call to the camera_open() function.
A bitmask of 3A algorithms to switch to 3A face-detection priority mode.
The autofocus, auto exposure, and auto white balance algorithms (the 3A algorithms) may be switched into face-detection priority mode. When in face-detection priority mode, the 3A algorithms will prioritize focus, exposure, or white balance on faces in the scene.
For the priority argument, you can specify the 3A algorithms to switch to face-detection priority by ORing values from the camera_3a_t enumerated type. The following are examples:
After 3A face-priority algorithms are enabled, the camera will select a default face to track. You can explicitly select a different face using camera_set_3a_face_id().
The viewfinder must be running before using this function.
CAMERA_EOK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.