camera_focusmode_t

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
Indicates that the focus mode is off.
CAMERA_FOCUSMODE_EDOF
Indicates that the camera is using extended depth of field (EDoF) focus mode.
CAMERA_FOCUSMODE_MANUAL
Indicates that the camera is using manual focus mode.
CAMERA_FOCUSMODE_AUTO
Indicates that the camera is using single-cycle autofocus.

Single-cycle focus occurs once and then stops.

CAMERA_FOCUSMODE_MACRO
Indicates that the camera is using single-cycle macro autofocus.

Single-cycle focus occurs once and then stops.

CAMERA_FOCUSMODE_CONTINUOUS_AUTO
Indicates that the camera is using continuous autofocus mode.

The autofocus algorithm restarts if the scene goes out of focus.

CAMERA_FOCUSMODE_CONTINUOUS_MACRO
Indicates that the camera is using continuous autofocus mode while in macro view.

The autofocus algorithm restarts if the scene goes out of focus.

CAMERA_FOCUSMODE_NUMFOCUSMODES
Indicates the total number of supported focus modes.

Use camera_get_focus_modes() to determine which focus modes are supported for the current platform and camera.

Library:

libcamapi

Description: