Developer World
Spresense SDK Library v1.4.2-3df2e9d
video_controls.h File Reference

Go to the source code of this file.

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 }