The focus mode of the camera.
Synopsis:
#include <camera/camera_api.h>
typedef enum {
CAMERA_FOCUSMODE_OFF = 0
CAMERA_FOCUSMODE_EDOF
CAMERA_FOCUSMODE_MANUAL
CAMERA_FOCUSMODE_AUTO
CAMERA_FOCUSMODE_MACRO
CAMERA_FOCUSMODE_CONTINUOUS_AUTO
CAMERA_FOCUSMODE_CONTINUOUS_MACRO
CAMERA_FOCUSMODE_NUMFOCUSMODES
} camera_focusmode_t;
Data:
- CAMERA_FOCUSMODE_OFF
- Focus is disabled.
- CAMERA_FOCUSMODE_EDOF
- The camera is using extended depth of field (EDoF) focus mode.
- CAMERA_FOCUSMODE_MANUAL
- The camera is using manual focus mode.
- CAMERA_FOCUSMODE_AUTO
- The camera is using single-cycle autofocus.
Single-cycle focus occurs once and then stops.
- CAMERA_FOCUSMODE_MACRO
- The camera is using single-cycle macro autofocus.
Single-cycle focus occurs once and then stops.
- CAMERA_FOCUSMODE_CONTINUOUS_AUTO
- The camera is using continuous autofocus mode.
The autofocus algorithm restarts if the scene goes out of focus.
- CAMERA_FOCUSMODE_CONTINUOUS_MACRO
- The camera is using continuous autofocus mode for macro-range subjects.
The autofocus algorithm restarts if the scene goes out of focus.
- CAMERA_FOCUSMODE_NUMFOCUSMODES
- The total number of supported focus modes.
Library:
libcamapi (For the qcc command, use the -l camapi option to link against this library)
Description:
Use camera_get_focus_modes() to determine the focus modes that are supported by the current platform and camera.