Developer World
Spresense SDK Library v3.3.0-375c679
video_controls.h File Reference

Go to the source code of this file.

Macros

#define V4L2_CTRL_CLASS_USER   (0x0100)
 
#define V4L2_CTRL_CLASS_CAMERA   (0x0200)
 
#define V4L2_CTRL_CLASS_FLASH   (0x0300)
 
#define V4L2_CTRL_CLASS_JPEG   (0x0400)
 
#define USER_CID(v)   (V4L2_CTRL_CLASS_USER + (v))
 
#define CAMERA_CID(v)   (V4L2_CTRL_CLASS_CAMERA + (v))
 
#define FLASH_CID(v)   (V4L2_CTRL_CLASS_FLASH + (v))
 
#define JPEG_CID(v)   (V4L2_CTRL_CLASS_JPEG + (v))
 
#define V4L2_CID_BRIGHTNESS   USER_CID(0)
 
#define V4L2_CID_CONTRAST   USER_CID(1)
 
#define V4L2_CID_SATURATION   USER_CID(2)
 
#define V4L2_CID_HUE   USER_CID(3)
 
#define V4L2_CID_AUTO_WHITE_BALANCE   USER_CID(4)
 
#define V4L2_CID_RED_BALANCE   USER_CID(5)
 
#define V4L2_CID_BLUE_BALANCE   USER_CID(6)
 
#define V4L2_CID_GAMMA   USER_CID(7)
 
#define V4L2_CID_GAMMA_CURVE   USER_CID(8)
 
#define V4L2_CID_EXPOSURE   USER_CID(9)
 
#define V4L2_CID_HFLIP   USER_CID(10)
 
#define V4L2_CID_VFLIP   USER_CID(11)
 
#define V4L2_CID_HFLIP_STILL   USER_CID(12)
 
#define V4L2_CID_VFLIP_STILL   USER_CID(13)
 
#define V4L2_CID_SHARPNESS   USER_CID(14)
 
#define V4L2_CID_COLOR_KILLER   USER_CID(15)
 
#define V4L2_CID_COLORFX   USER_CID(16)
 
#define V4L2_CID_AUTOBRIGHTNESS   USER_CID(17)
 
#define V4L2_CID_ROTATE   USER_CID(18)
 
#define V4L2_CID_EXPOSURE_AUTO   CAMERA_CID(0)
 
#define V4L2_CID_EXPOSURE_ABSOLUTE   CAMERA_CID(1)
 
#define V4L2_CID_FOCUS_ABSOLUTE   CAMERA_CID(2)
 
#define V4L2_CID_FOCUS_RELATIVE   CAMERA_CID(3)
 
#define V4L2_CID_FOCUS_AUTO   CAMERA_CID(4)
 
#define V4L2_CID_ZOOM_ABSOLUTE   CAMERA_CID(5)
 
#define V4L2_CID_ZOOM_RELATIVE   CAMERA_CID(6)
 
#define V4L2_CID_ZOOM_CONTINUOUS   CAMERA_CID(7)
 
#define V4L2_CID_IRIS_ABSOLUTE   CAMERA_CID(8)
 
#define V4L2_CID_IRIS_RELATIVE   CAMERA_CID(9)
 
#define V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE   CAMERA_CID(10)
 
#define V4L2_CID_WIDE_DYNAMIC_RANGE   CAMERA_CID(11)
 
#define V4L2_CID_IMAGE_STABILIZATION   CAMERA_CID(12)
 
#define V4L2_CID_ISO_SENSITIVITY   CAMERA_CID(13)
 
#define V4L2_CID_ISO_SENSITIVITY_AUTO   CAMERA_CID(14)
 
#define V4L2_CID_EXPOSURE_METERING   CAMERA_CID(15)
 
#define V4L2_CID_SCENE_MODE   CAMERA_CID(16)
 
#define V4L2_CID_3A_LOCK   CAMERA_CID(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   CAMERA_CID(18)
 
#define V4L2_CID_AUTO_FOCUS_STOP   CAMERA_CID(19)
 
#define V4L2_CID_3A_PARAMETER   CAMERA_CID(20)
 
#define V4L2_CID_3A_STATUS   CAMERA_CID(21)
 
#define V4L2_3A_STATUS_STABLE   (0)
 
#define V4L2_3A_STATUS_AE_OPERATING   (1 << 0)
 
#define V4L2_3A_STATUS_AWB_OPERATING   (1 << 1)
 
#define V4L2_3A_STATUS_AF_OPERATING   (1 << 2)
 
#define V4L2_CID_EXPOSURE_METERING_SPOT_POSITION   CAMERA_CID(22)
 
#define V4L2_CID_FLASH_LED_MODE   FLASH_CID(0)
 
#define V4L2_CID_JPEG_COMPRESSION_QUALITY   JPEG_CID(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 , V4L2_SCENE_MODE_MAX = 14
}
 
enum  v4l2_flash_led_mode { V4L2_FLASH_LED_MODE_NONE , V4L2_FLASH_LED_MODE_FLASH , V4L2_FLASH_LED_MODE_TORCH }