camera_exposuremode_t

Updated: April 19, 2023

The exposure mode of the camera

Synopsis:

#include <camera/camera_3a.h>
typedef enum {
    CAMERA_EXPOSUREMODE_DEFAULT,
    CAMERA_EXPOSUREMODE_OFF,
    CAMERA_EXPOSUREMODE_AUTO,
    CAMERA_EXPOSUREMODE_MANUAL,
    CAMERA_EXPOSUREMODE_ISO_PRIORITY,
    CAMERA_EXPOSUREMODE_SHUTTER_PRIORITY,
    CAMERA_EXPOSUREMODE_APERTURE_PRIORITY,
    CAMERA_EXPOSUREMODE_ISO_SHUTTER_PRIORITY,
    CAMERA_EXPOSUREMODE_ISO_APERTURE_PRIORITY,
    CAMERA_EXPOSUREMODE_SHUTTER_APERTURE_PRIORITY,
    CAMERA_EXPOSUREMODE_NUMEXPOSUREMODES
} camera_exposuremode_t;

Data:

CAMERA_EXPOSUREMODE_DEFAULT
The default exposure mode for the camera.

Because not every camera supports all exposure modes, CAMERA_EXPOSUREMODE_DEFAULT can always be used as an alias to the best automatic exposure mode that's supported by the camera.

CAMERA_EXPOSUREMODE_OFF
Auto exposure is off.
CAMERA_EXPOSUREMODE_AUTO
Exposure is automatically adjusted by the camera by varying the shutter speed, ISO value, and aperture value.
CAMERA_EXPOSUREMODE_MANUAL
Manual exposure mode.

The camera won't automatically adjust any of the exposure controls. The shutter speed, ISO value, and aperture value must all be set manually.

CAMERA_EXPOSUREMODE_ISO_PRIORITY
The ISO value must be manually set.

The camera automatically adjusts the shutter speed and aperture value.

CAMERA_EXPOSUREMODE_SHUTTER_PRIORITY
The shutter speed must be manually set.

The camera automatically adjusts the ISO value and aperture value.

CAMERA_EXPOSUREMODE_APERTURE_PRIORITY
The aperture value must be manually set.

The camera automatically adjusts the shutter speed and ISO value.

CAMERA_EXPOSUREMODE_ISO_SHUTTER_PRIORITY
The ISO value and shutter speed must be manually set.

The camera automatically adjusts the aperture value.

CAMERA_EXPOSUREMODE_ISO_APERTURE_PRIORITY
The ISO value and aperture value must be manually set.

The camera automatically adjusts the shutter speed.

CAMERA_EXPOSUREMODE_SHUTTER_APERTURE_PRIORITY
The shutter speed and aperture value must be manually set.

The camera automatically adjusts the ISO value.

CAMERA_EXPOSUREMODE_NUMEXPOSUREMODES
The total number of exposure modes.

Library:

libcamapi

Description:

You can use the camera_get_exposure_modes() function to determine which modes are supported by the current platform and camera.