Developer World
Spresense SDK Library v1.4.2-3df2e9d
Video control ID
Collaboration diagram for Video control ID:

Macros

#define V4L2_CTRL_CLASS_USER   (0x0000)
 
#define V4L2_CTRL_CLASS_CAMERA   (0x0001)
 
#define V4L2_CTRL_CLASS_FLASH   (0x0002)
 
#define V4L2_CTRL_CLASS_JPEG   (0x0003)
 
#define V4L2_CID_BRIGHTNESS   (0)
 
#define V4L2_CID_CONTRAST   (1)
 
#define V4L2_CID_SATURATION   (2)
 
#define V4L2_CID_HUE   (3)
 
#define V4L2_CID_AUTO_WHITE_BALANCE   (4)
 
#define V4L2_CID_RED_BALANCE   (5)
 
#define V4L2_CID_BLUE_BALANCE   (6)
 
#define V4L2_CID_GAMMA   (7)
 
#define V4L2_CID_GAMMA_CURVE   (8)
 
#define V4L2_CID_EXPOSURE   (9)
 
#define V4L2_CID_HFLIP   (10)
 
#define V4L2_CID_VFLIP   (11)
 
#define V4L2_CID_HFLIP_STILL   (12)
 
#define V4L2_CID_VFLIP_STILL   (13)
 
#define V4L2_CID_SHARPNESS   (14)
 
#define V4L2_CID_COLOR_KILLER   (15)
 
#define V4L2_CID_COLORFX   (16)
 
#define V4L2_CID_AUTOBRIGHTNESS   (17)
 
#define V4L2_CID_ROTATE   (18)
 
#define V4L2_CID_EXPOSURE_AUTO   (0)
 
#define V4L2_CID_EXPOSURE_ABSOLUTE   (1)
 
#define V4L2_CID_FOCUS_ABSOLUTE   (2) /** Focus */
 
#define V4L2_CID_FOCUS_RELATIVE   (3) /** Focus */
 
#define V4L2_CID_FOCUS_AUTO   (4) /** Auto focus */
 
#define V4L2_CID_ZOOM_ABSOLUTE   (5) /** Zoom(absolute) */
 
#define V4L2_CID_ZOOM_RELATIVE   (6) /** Zoom(relative) */
 
#define V4L2_CID_ZOOM_CONTINUOUS   (7) /** Continuous zoom */
 
#define V4L2_CID_IRIS_ABSOLUTE   (8) /** Iris(absolute) */
 
#define V4L2_CID_IRIS_RELATIVE   (9) /** Iris(relative) */
 
#define V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE   (10)
 
#define V4L2_CID_WIDE_DYNAMIC_RANGE   (11)
 
#define V4L2_CID_IMAGE_STABILIZATION   (12)
 
#define V4L2_CID_ISO_SENSITIVITY   (13)
 
#define V4L2_CID_ISO_SENSITIVITY_AUTO   (14)
 
#define V4L2_CID_EXPOSURE_METERING   (15)
 
#define V4L2_CID_SCENE_MODE   (16)
 
#define V4L2_CID_3A_LOCK   (17)
 
#define V4L2_LOCK_EXPOSURE   (1 << 0)
 
#define V4L2_LOCK_WHITE_BALANCE   (1 << 1)
 
#define V4L2_LOCK_FOCUS   (1 << 2)
 
#define V4L2_CID_AUTO_FOCUS_START   (18)
 
#define V4L2_CID_AUTO_FOCUS_STOP   (19)
 
#define V4L2_CID_FLASH_LED_MODE   (0)
 
#define V4L2_CID_JPEG_COMPRESSION_QUALITY   (0)
 

Enumerations

enum  v4l2_colorfx {
  V4L2_COLORFX_NONE = 0, V4L2_COLORFX_BW = 1, V4L2_COLORFX_SEPIA = 2, V4L2_COLORFX_NEGATIVE = 3,
  V4L2_COLORFX_EMBOSS = 4, V4L2_COLORFX_SKETCH = 5, V4L2_COLORFX_SKY_BLUE = 6, V4L2_COLORFX_GRASS_GREEN = 7,
  V4L2_COLORFX_SKIN_WHITEN = 8, V4L2_COLORFX_VIVID = 9, V4L2_COLORFX_AQUA = 10, V4L2_COLORFX_ART_FREEZE = 11,
  V4L2_COLORFX_SILHOUETTE = 12, V4L2_COLORFX_SOLARIZATION = 13, V4L2_COLORFX_ANTIQUE = 14, V4L2_COLORFX_SET_CBCR = 15,
  V4L2_COLORFX_PASTEL = 16
}
 
enum  v4l2_exposure_auto_type { V4L2_EXPOSURE_AUTO = 0, V4L2_EXPOSURE_MANUAL = 1, V4L2_EXPOSURE_SHUTTER_PRIORITY = 2, V4L2_EXPOSURE_APERTURE_PRIORITY = 3 }
 
enum  v4l2_auto_n_preset_white_balance {
  V4L2_WHITE_BALANCE_MANUAL = 0, V4L2_WHITE_BALANCE_AUTO = 1, V4L2_WHITE_BALANCE_INCANDESCENT = 2, V4L2_WHITE_BALANCE_FLUORESCENT = 3,
  V4L2_WHITE_BALANCE_FLUORESCENT_H = 4, V4L2_WHITE_BALANCE_HORIZON = 5, V4L2_WHITE_BALANCE_DAYLIGHT = 6, V4L2_WHITE_BALANCE_FLASH = 7,
  V4L2_WHITE_BALANCE_CLOUDY = 8, V4L2_WHITE_BALANCE_SHADE = 9
}
 
enum  v4l2_iso_sensitivity_auto_type { V4L2_ISO_SENSITIVITY_MANUAL = 0, V4L2_ISO_SENSITIVITY_AUTO = 1 }
 
enum  v4l2_exposure_metering { V4L2_EXPOSURE_METERING_AVERAGE = 0, V4L2_EXPOSURE_METERING_CENTER_WEIGHTED = 1, V4L2_EXPOSURE_METERING_SPOT = 2, V4L2_EXPOSURE_METERING_MATRIX = 3 }
 
enum  v4l2_scene_mode {
  V4L2_SCENE_MODE_NONE = 0, V4L2_SCENE_MODE_BACKLIGHT = 1, V4L2_SCENE_MODE_BEACH_SNOW = 2, V4L2_SCENE_MODE_CANDLE_LIGHT = 3,
  V4L2_SCENE_MODE_DAWN_DUSK = 4, V4L2_SCENE_MODE_FALL_COLORS = 5, V4L2_SCENE_MODE_FIREWORKS = 6, V4L2_SCENE_MODE_LANDSCAPE = 7,
  V4L2_SCENE_MODE_NIGHT = 8, V4L2_SCENE_MODE_PARTY_INDOOR = 9, V4L2_SCENE_MODE_PORTRAIT = 10, V4L2_SCENE_MODE_SPORTS = 11,
  V4L2_SCENE_MODE_SUNSET = 12, V4L2_SCENE_MODE_TEXT = 13
}
 
enum  v4l2_flash_led_mode { V4L2_FLASH_LED_MODE_NONE, V4L2_FLASH_LED_MODE_FLASH, V4L2_FLASH_LED_MODE_TORCH }
 

Detailed Description

Macro Definition Documentation

◆ V4L2_CTRL_CLASS_USER

#define V4L2_CTRL_CLASS_USER   (0x0000)

Old-style 'user' controls

◆ V4L2_CTRL_CLASS_CAMERA

#define V4L2_CTRL_CLASS_CAMERA   (0x0001)

Camera class controls

◆ V4L2_CTRL_CLASS_FLASH

#define V4L2_CTRL_CLASS_FLASH   (0x0002)

Camera flash controls

◆ V4L2_CTRL_CLASS_JPEG

#define V4L2_CTRL_CLASS_JPEG   (0x0003)

JPEG-compression controls

◆ V4L2_CID_BRIGHTNESS

#define V4L2_CID_BRIGHTNESS   (0)

Brightness

◆ V4L2_CID_CONTRAST

#define V4L2_CID_CONTRAST   (1)

Contrast

◆ V4L2_CID_SATURATION

#define V4L2_CID_SATURATION   (2)

Saturation

◆ V4L2_CID_HUE

#define V4L2_CID_HUE   (3)

Hue

◆ V4L2_CID_AUTO_WHITE_BALANCE

#define V4L2_CID_AUTO_WHITE_BALANCE   (4)

AWB

◆ V4L2_CID_RED_BALANCE

#define V4L2_CID_RED_BALANCE   (5)

Red balance

◆ V4L2_CID_BLUE_BALANCE

#define V4L2_CID_BLUE_BALANCE   (6)

Blue balance

◆ V4L2_CID_GAMMA

#define V4L2_CID_GAMMA   (7)

Gamma value adjustment

◆ V4L2_CID_GAMMA_CURVE

#define V4L2_CID_GAMMA_CURVE   (8)

Gamma curve adjustment

◆ V4L2_CID_EXPOSURE

#define V4L2_CID_EXPOSURE   (9)

Exposure value

◆ V4L2_CID_HFLIP

#define V4L2_CID_HFLIP   (10)

Mirror horizontally(VIDEO)

◆ V4L2_CID_VFLIP

#define V4L2_CID_VFLIP   (11)

Mirror vertically(VIDEO)

◆ V4L2_CID_HFLIP_STILL

#define V4L2_CID_HFLIP_STILL   (12)

Mirror horizontally(STILL)

◆ V4L2_CID_VFLIP_STILL

#define V4L2_CID_VFLIP_STILL   (13)

Mirror vertically(STILL)

◆ V4L2_CID_SHARPNESS

#define V4L2_CID_SHARPNESS   (14)

Sharpness

◆ V4L2_CID_COLOR_KILLER

#define V4L2_CID_COLOR_KILLER   (15)

Color killer

◆ V4L2_CID_COLORFX

#define V4L2_CID_COLORFX   (16)

Color effect

◆ V4L2_CID_AUTOBRIGHTNESS

#define V4L2_CID_AUTOBRIGHTNESS   (17)

Auto brightness

◆ V4L2_CID_ROTATE

#define V4L2_CID_ROTATE   (18)

Rotation

◆ V4L2_CID_EXPOSURE_AUTO

#define V4L2_CID_EXPOSURE_AUTO   (0)

Camera class control IDs Auto exposure

◆ V4L2_CID_EXPOSURE_ABSOLUTE

#define V4L2_CID_EXPOSURE_ABSOLUTE   (1)

Exposure time

◆ V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE

#define V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE   (10)

Preset white balance

◆ V4L2_CID_WIDE_DYNAMIC_RANGE

#define V4L2_CID_WIDE_DYNAMIC_RANGE   (11)

Wide dynamic range

◆ V4L2_CID_IMAGE_STABILIZATION

#define V4L2_CID_IMAGE_STABILIZATION   (12)

Image stabilization

◆ V4L2_CID_ISO_SENSITIVITY

#define V4L2_CID_ISO_SENSITIVITY   (13)

ISO sensitivity

◆ V4L2_CID_ISO_SENSITIVITY_AUTO

#define V4L2_CID_ISO_SENSITIVITY_AUTO   (14)

Auto ISO sensitivity

◆ V4L2_CID_EXPOSURE_METERING

#define V4L2_CID_EXPOSURE_METERING   (15)

Exposure metering

◆ V4L2_CID_SCENE_MODE

#define V4L2_CID_SCENE_MODE   (16)

Scene selection

◆ V4L2_CID_3A_LOCK

#define V4L2_CID_3A_LOCK   (17)

Lock 3A

◆ V4L2_LOCK_EXPOSURE

#define V4L2_LOCK_EXPOSURE   (1 << 0)

Exposure bit for V4L2_CID_3A_LOCK

◆ V4L2_LOCK_WHITE_BALANCE

#define V4L2_LOCK_WHITE_BALANCE   (1 << 1)

White balance bit for V4L2_CID_3A_LOCK

◆ V4L2_LOCK_FOCUS

#define V4L2_LOCK_FOCUS   (1 << 2)

Focus bit for V4L2_CID_3A_LOCK

◆ V4L2_CID_AUTO_FOCUS_START

#define V4L2_CID_AUTO_FOCUS_START   (18)

Start single AF

◆ V4L2_CID_AUTO_FOCUS_STOP

#define V4L2_CID_AUTO_FOCUS_STOP   (19)

Stop single AF

◆ V4L2_CID_FLASH_LED_MODE

#define V4L2_CID_FLASH_LED_MODE   (0)

Flash and privacy (indicator) light controls

◆ V4L2_CID_JPEG_COMPRESSION_QUALITY

#define V4L2_CID_JPEG_COMPRESSION_QUALITY   (0)

JPEG quality

Enumeration Type Documentation

◆ v4l2_colorfx

enumeration for V4L2_CID_COLORFX

Enumerator
V4L2_COLORFX_NONE 

no effect

V4L2_COLORFX_BW 

Black/white

V4L2_COLORFX_SEPIA 

Sepia

V4L2_COLORFX_NEGATIVE 

positive/negative inversion

V4L2_COLORFX_EMBOSS 

Emboss

V4L2_COLORFX_SKETCH 

Sketch

V4L2_COLORFX_SKY_BLUE 

Sky blue

V4L2_COLORFX_GRASS_GREEN 

Grass green

V4L2_COLORFX_SKIN_WHITEN 

Skin whiten

V4L2_COLORFX_VIVID 

Vivid

V4L2_COLORFX_AQUA 

Aqua

V4L2_COLORFX_ART_FREEZE 

Art freeze

V4L2_COLORFX_SILHOUETTE 

Silhouette

V4L2_COLORFX_SOLARIZATION 

Solarization

V4L2_COLORFX_ANTIQUE 

Antique

V4L2_COLORFX_SET_CBCR 

Set CbCr

V4L2_COLORFX_PASTEL 

Pastel

◆ v4l2_exposure_auto_type

enumeration for V4L2_CID_EXPOSURE_AUTO

Enumerator
V4L2_EXPOSURE_AUTO 

exposure time:auto, iris aperture:auto

V4L2_EXPOSURE_MANUAL 

exposure time:manual, iris aperture:manual

V4L2_EXPOSURE_SHUTTER_PRIORITY 

exposure time:manual, iris aperture:auto

V4L2_EXPOSURE_APERTURE_PRIORITY 

exposure time:auto, iris aperture:manual

◆ v4l2_auto_n_preset_white_balance

enumeration for V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE

Enumerator
V4L2_WHITE_BALANCE_MANUAL 

Manual

V4L2_WHITE_BALANCE_AUTO 

Automatic

V4L2_WHITE_BALANCE_INCANDESCENT 

Incandescent

V4L2_WHITE_BALANCE_FLUORESCENT 

Fluorescent

V4L2_WHITE_BALANCE_FLUORESCENT_H 

Fluorescent H

V4L2_WHITE_BALANCE_HORIZON 

Horizon

V4L2_WHITE_BALANCE_DAYLIGHT 

Daylight

V4L2_WHITE_BALANCE_FLASH 

Flash

V4L2_WHITE_BALANCE_CLOUDY 

Cloudy

V4L2_WHITE_BALANCE_SHADE 

Shade

◆ v4l2_iso_sensitivity_auto_type

enumeration for V4L2_CID_ISO_SENSITIVITY_AUTO

Enumerator
V4L2_ISO_SENSITIVITY_MANUAL 

Manual

V4L2_ISO_SENSITIVITY_AUTO 

Automatic

◆ v4l2_exposure_metering

enumeration for V4L2_CID_EXPOSURE_METERING

Enumerator
V4L2_EXPOSURE_METERING_AVERAGE 

Average

V4L2_EXPOSURE_METERING_CENTER_WEIGHTED 

Center weighted

V4L2_EXPOSURE_METERING_SPOT 

Spot

V4L2_EXPOSURE_METERING_MATRIX 

Matrix

◆ v4l2_scene_mode

enumeration for V4L2_CID_SCENE_MODE

Enumerator
V4L2_SCENE_MODE_NONE 

No scene

V4L2_SCENE_MODE_BACKLIGHT 

Backlight

V4L2_SCENE_MODE_BEACH_SNOW 

Beach snow

V4L2_SCENE_MODE_CANDLE_LIGHT 

Candle light

V4L2_SCENE_MODE_DAWN_DUSK 

Dawn dask

V4L2_SCENE_MODE_FALL_COLORS 

Fall colors

V4L2_SCENE_MODE_FIREWORKS 

Fire works

V4L2_SCENE_MODE_LANDSCAPE 

Landscape

V4L2_SCENE_MODE_NIGHT 

Night

V4L2_SCENE_MODE_PARTY_INDOOR 

Indoor party

V4L2_SCENE_MODE_PORTRAIT 

Portrait

V4L2_SCENE_MODE_SPORTS 

Sports

V4L2_SCENE_MODE_SUNSET 

Sunset

V4L2_SCENE_MODE_TEXT 

Text

◆ v4l2_flash_led_mode

enumeration for V4L2_CID_FLASH_LED_MODE

Enumerator
V4L2_FLASH_LED_MODE_NONE 

Not use LED

V4L2_FLASH_LED_MODE_FLASH 

Flash mode

V4L2_FLASH_LED_MODE_TORCH 

Torch mode