The state of the autofocus algorithm on the camera.
Synopsis:
#include <camera/camera_api.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 not available.
- CAMERA_FOCUSSTATE_WAITING
- The system is waiting for the scene to stabilize before trying to focus.
Not all platforms may report this intermediate state.
- 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 (For the qcc command, use the -l camapi option to link against this library)