Developer World
Spresense SDK Library v3.3.0-375c679
video_controls.h
Go to the documentation of this file.
1/****************************************************************************
2 * include/nuttx/video/video_controls.h
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one or more
5 * contributor license agreements. See the NOTICE file distributed with
6 * this work for additional information regarding copyright ownership. The
7 * ASF licenses this file to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance with the
9 * License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16 * License for the specific language governing permissions and limitations
17 * under the License.
18 *
19 ****************************************************************************/
24#ifndef __INCLUDE_NUTTX_VIDEO_VIDEO_CONTROLS_H
25#define __INCLUDE_NUTTX_VIDEO_VIDEO_CONTROLS_H
26
27/****************************************************************************
28 * Included Files
29 ****************************************************************************/
30
35/****************************************************************************
36 * Pre-processor Definitions
37 ****************************************************************************/
38
44/* Control classes */
45
46#define V4L2_CTRL_CLASS_USER (0x0100)
47#define V4L2_CTRL_CLASS_CAMERA (0x0200)
48#define V4L2_CTRL_CLASS_FLASH (0x0300)
49#define V4L2_CTRL_CLASS_JPEG (0x0400)
51#define USER_CID(v) (V4L2_CTRL_CLASS_USER + (v))
52#define CAMERA_CID(v) (V4L2_CTRL_CLASS_CAMERA + (v))
53#define FLASH_CID(v) (V4L2_CTRL_CLASS_FLASH + (v))
54#define JPEG_CID(v) (V4L2_CTRL_CLASS_JPEG + (v))
55
56/* @} video_ctrl_class */
57
68/* User-class control IDs */
69
70#define V4L2_CID_BRIGHTNESS USER_CID(0)
71#define V4L2_CID_CONTRAST USER_CID(1)
72#define V4L2_CID_SATURATION USER_CID(2)
73#define V4L2_CID_HUE USER_CID(3)
74#define V4L2_CID_AUTO_WHITE_BALANCE USER_CID(4)
75#define V4L2_CID_RED_BALANCE USER_CID(5)
76#define V4L2_CID_BLUE_BALANCE USER_CID(6)
77#define V4L2_CID_GAMMA USER_CID(7)
78#define V4L2_CID_GAMMA_CURVE USER_CID(8)
79#define V4L2_CID_EXPOSURE USER_CID(9)
83#define V4L2_CID_HFLIP USER_CID(10)
84
87#define V4L2_CID_VFLIP USER_CID(11)
88
91#define V4L2_CID_HFLIP_STILL USER_CID(12)
92
95#define V4L2_CID_VFLIP_STILL USER_CID(13)
96#define V4L2_CID_SHARPNESS USER_CID(14)
97#define V4L2_CID_COLOR_KILLER USER_CID(15)
98#define V4L2_CID_COLORFX USER_CID(16)
103{
122
123#define V4L2_CID_AUTOBRIGHTNESS USER_CID(17)
124#define V4L2_CID_ROTATE USER_CID(18)
126/* @} video_ctrl_id_user */
127
135#define V4L2_CID_EXPOSURE_AUTO CAMERA_CID(0)
140{
144
148
152
157
158#define V4L2_CID_EXPOSURE_ABSOLUTE CAMERA_CID(1)
160#define V4L2_CID_FOCUS_ABSOLUTE CAMERA_CID(2)
161#define V4L2_CID_FOCUS_RELATIVE CAMERA_CID(3)
162#define V4L2_CID_FOCUS_AUTO CAMERA_CID(4)
164#define V4L2_CID_ZOOM_ABSOLUTE CAMERA_CID(5)
165#define V4L2_CID_ZOOM_RELATIVE CAMERA_CID(6)
166#define V4L2_CID_ZOOM_CONTINUOUS CAMERA_CID(7)
168#define V4L2_CID_IRIS_ABSOLUTE CAMERA_CID(8)
169#define V4L2_CID_IRIS_RELATIVE CAMERA_CID(9)
173#define V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE CAMERA_CID(10)
174
178{
189};
190
191#define V4L2_CID_WIDE_DYNAMIC_RANGE CAMERA_CID(11)
195#define V4L2_CID_IMAGE_STABILIZATION CAMERA_CID(12)
196#define V4L2_CID_ISO_SENSITIVITY CAMERA_CID(13)
200#define V4L2_CID_ISO_SENSITIVITY_AUTO CAMERA_CID(14)
201
205{
208};
209
210#define V4L2_CID_EXPOSURE_METERING CAMERA_CID(15)
215{
220};
221
222#define V4L2_CID_SCENE_MODE CAMERA_CID(16)
227{
244
245#define V4L2_CID_3A_LOCK CAMERA_CID(17)
246#define V4L2_LOCK_EXPOSURE (1 << 0)
248#define V4L2_LOCK_WHITE_BALANCE (1 << 1)
250#define V4L2_LOCK_FOCUS (1 << 2)
253#define V4L2_CID_AUTO_FOCUS_START CAMERA_CID(18)
254#define V4L2_CID_AUTO_FOCUS_STOP CAMERA_CID(19)
256#define V4L2_CID_3A_PARAMETER CAMERA_CID(20)
257#define V4L2_CID_3A_STATUS CAMERA_CID(21)
258#define V4L2_3A_STATUS_STABLE (0)
259#define V4L2_3A_STATUS_AE_OPERATING (1 << 0)
260#define V4L2_3A_STATUS_AWB_OPERATING (1 << 1)
261#define V4L2_3A_STATUS_AF_OPERATING (1 << 2)
265#define V4L2_CID_EXPOSURE_METERING_SPOT_POSITION CAMERA_CID(22)
266
267/* @} video_ctrl_id_camera */
268
276#define V4L2_CID_FLASH_LED_MODE FLASH_CID(0)
277
281{
285};
286
287/* @} video_ctrl_id_flash */
288
294/* JPEG-class control IDs */
295
296#define V4L2_CID_JPEG_COMPRESSION_QUALITY JPEG_CID(0)
298/* @} video_ctrl_id_jpeg */
299/* @} video_ctrl_id */
300
301#endif /* __INCLUDE_NUTTX_VIDEO_VIDEO_CONTROLS_H */
v4l2_exposure_metering
Definition: video_controls.h:215
v4l2_exposure_auto_type
Definition: video_controls.h:140
v4l2_scene_mode
Definition: video_controls.h:227
v4l2_iso_sensitivity_auto_type
Definition: video_controls.h:205
v4l2_auto_n_preset_white_balance
Definition: video_controls.h:178
@ V4L2_EXPOSURE_METERING_AVERAGE
Definition: video_controls.h:216
@ V4L2_EXPOSURE_METERING_MATRIX
Definition: video_controls.h:219
@ V4L2_EXPOSURE_METERING_SPOT
Definition: video_controls.h:218
@ V4L2_EXPOSURE_METERING_CENTER_WEIGHTED
Definition: video_controls.h:217
@ V4L2_EXPOSURE_APERTURE_PRIORITY
Definition: video_controls.h:155
@ V4L2_EXPOSURE_SHUTTER_PRIORITY
Definition: video_controls.h:151
@ V4L2_EXPOSURE_MANUAL
Definition: video_controls.h:147
@ V4L2_EXPOSURE_AUTO
Definition: video_controls.h:143
@ V4L2_SCENE_MODE_PARTY_INDOOR
Definition: video_controls.h:237
@ V4L2_SCENE_MODE_CANDLE_LIGHT
Definition: video_controls.h:231
@ V4L2_SCENE_MODE_FIREWORKS
Definition: video_controls.h:234
@ V4L2_SCENE_MODE_LANDSCAPE
Definition: video_controls.h:235
@ V4L2_SCENE_MODE_NONE
Definition: video_controls.h:228
@ V4L2_SCENE_MODE_DAWN_DUSK
Definition: video_controls.h:232
@ V4L2_SCENE_MODE_SUNSET
Definition: video_controls.h:240
@ V4L2_SCENE_MODE_SPORTS
Definition: video_controls.h:239
@ V4L2_SCENE_MODE_PORTRAIT
Definition: video_controls.h:238
@ V4L2_SCENE_MODE_BACKLIGHT
Definition: video_controls.h:229
@ V4L2_SCENE_MODE_BEACH_SNOW
Definition: video_controls.h:230
@ V4L2_SCENE_MODE_FALL_COLORS
Definition: video_controls.h:233
@ V4L2_SCENE_MODE_TEXT
Definition: video_controls.h:241
@ V4L2_SCENE_MODE_NIGHT
Definition: video_controls.h:236
@ V4L2_SCENE_MODE_MAX
Definition: video_controls.h:242
@ V4L2_ISO_SENSITIVITY_MANUAL
Definition: video_controls.h:206
@ V4L2_ISO_SENSITIVITY_AUTO
Definition: video_controls.h:207
@ V4L2_WHITE_BALANCE_FLUORESCENT_H
Definition: video_controls.h:183
@ V4L2_WHITE_BALANCE_HORIZON
Definition: video_controls.h:184
@ V4L2_WHITE_BALANCE_INCANDESCENT
Definition: video_controls.h:181
@ V4L2_WHITE_BALANCE_FLASH
Definition: video_controls.h:186
@ V4L2_WHITE_BALANCE_AUTO
Definition: video_controls.h:180
@ V4L2_WHITE_BALANCE_CLOUDY
Definition: video_controls.h:187
@ V4L2_WHITE_BALANCE_FLUORESCENT
Definition: video_controls.h:182
@ V4L2_WHITE_BALANCE_DAYLIGHT
Definition: video_controls.h:185
@ V4L2_WHITE_BALANCE_SHADE
Definition: video_controls.h:188
@ V4L2_WHITE_BALANCE_MANUAL
Definition: video_controls.h:179
v4l2_flash_led_mode
Definition: video_controls.h:281
@ V4L2_FLASH_LED_MODE_TORCH
Definition: video_controls.h:284
@ V4L2_FLASH_LED_MODE_FLASH
Definition: video_controls.h:283
@ V4L2_FLASH_LED_MODE_NONE
Definition: video_controls.h:282
v4l2_colorfx
Definition: video_controls.h:103
@ V4L2_COLORFX_SOLARIZATION
Definition: video_controls.h:117
@ V4L2_COLORFX_ART_FREEZE
Definition: video_controls.h:115
@ V4L2_COLORFX_SET_CBCR
Definition: video_controls.h:119
@ V4L2_COLORFX_ANTIQUE
Definition: video_controls.h:118
@ V4L2_COLORFX_AQUA
Definition: video_controls.h:114
@ V4L2_COLORFX_SKETCH
Definition: video_controls.h:109
@ V4L2_COLORFX_NEGATIVE
Definition: video_controls.h:107
@ V4L2_COLORFX_VIVID
Definition: video_controls.h:113
@ V4L2_COLORFX_PASTEL
Definition: video_controls.h:120
@ V4L2_COLORFX_NONE
Definition: video_controls.h:104
@ V4L2_COLORFX_SKY_BLUE
Definition: video_controls.h:110
@ V4L2_COLORFX_EMBOSS
Definition: video_controls.h:108
@ V4L2_COLORFX_BW
Definition: video_controls.h:105
@ V4L2_COLORFX_SKIN_WHITEN
Definition: video_controls.h:112
@ V4L2_COLORFX_GRASS_GREEN
Definition: video_controls.h:111
@ V4L2_COLORFX_SEPIA
Definition: video_controls.h:106
@ V4L2_COLORFX_SILHOUETTE
Definition: video_controls.h:116