The state of the autofocus algorithm on the camera
Synopsis:
#include <camera/camera_3a.h>
typedef enum {
    CAMERA_FOCUSSTATE_NONE = 0,
    CAMERA_FOCUSSTATE_WAITING,
    CAMERA_FOCUSSTATE_SEARCHING,
    CAMERA_FOCUSSTATE_FAILED,
    CAMERA_FOCUSSTATE_LOCKED,
    CAMERA_FOCUSSTATE_SCENECHANGE
} camera_focusstate_t;
 
Data:
- CAMERA_FOCUSSTATE_NONE
 
- Autofocus is disabled or isn't available. 
 
- CAMERA_FOCUSSTATE_WAITING
 
- The system is waiting for the scene to stabilize before trying to focus. 
 
Depending on the platform, this intermediate state may not get reported. 
 
- CAMERA_FOCUSSTATE_SEARCHING
 
- The system is searching for an object to focus on. 
 
- CAMERA_FOCUSSTATE_FAILED
 
- The system has failed to focus. 
 
- CAMERA_FOCUSSTATE_LOCKED
 
- The focus is successfully locked. 
 
- CAMERA_FOCUSSTATE_SCENECHANGE
 
- The system detected a significant change in the scene. 
 
 
Library:
libcamapi