Developer World
Spresense SDK Library v1.4.2-3df2e9d
video_controls.h
Go to the documentation of this file.
1 /****************************************************************************
2  * modules/include/video/video.h
3  *
4  * Copyright 2018 Sony Semiconductor Solutions Corporation
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  *
10  * 1. Redistributions of source code must retain the above copyright
11  * notice, this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in
14  * the documentation and/or other materials provided with the
15  * distribution.
16  * 3. Neither the name of Sony Semiconductor Solutions Corporation nor
17  * the names of its contributors may be used to endorse or promote
18  * products derived from this software without specific prior written
19  * permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
28  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
29  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32  * POSSIBILITY OF SUCH DAMAGE.
33  *
34  ****************************************************************************/
39 #ifndef __MODULES_INCLUDE_VIDEO_VIDEO_CONTROLS_H
40 #define __MODULES_INCLUDE_VIDEO_VIDEO_CONTROLS_H
41 
42 /****************************************************************************
43  * Included Files
44  ****************************************************************************/
45 
49 /****************************************************************************
50  * Pre-processor Definitions
51  ****************************************************************************/
52 
58 /* Control classes */
59 
60 #define V4L2_CTRL_CLASS_USER (0x0000)
61 #define V4L2_CTRL_CLASS_CAMERA (0x0001)
62 #define V4L2_CTRL_CLASS_FLASH (0x0002)
63 #define V4L2_CTRL_CLASS_JPEG (0x0003)
65 /* User-class control IDs */
66 
67 #define V4L2_CID_BRIGHTNESS (0)
68 #define V4L2_CID_CONTRAST (1)
69 #define V4L2_CID_SATURATION (2)
70 #define V4L2_CID_HUE (3)
71 #define V4L2_CID_AUTO_WHITE_BALANCE (4)
72 #define V4L2_CID_RED_BALANCE (5)
73 #define V4L2_CID_BLUE_BALANCE (6)
74 #define V4L2_CID_GAMMA (7)
75 #define V4L2_CID_GAMMA_CURVE (8)
76 #define V4L2_CID_EXPOSURE (9)
77 #define V4L2_CID_HFLIP (10)
78 #define V4L2_CID_VFLIP (11)
79 #define V4L2_CID_HFLIP_STILL (12)
80 #define V4L2_CID_VFLIP_STILL (13)
81 #define V4L2_CID_SHARPNESS (14)
82 #define V4L2_CID_COLOR_KILLER (15)
83 #define V4L2_CID_COLORFX (16)
87 enum v4l2_colorfx {
105 };
106 #define V4L2_CID_AUTOBRIGHTNESS (17)
107 #define V4L2_CID_ROTATE (18)
112 #define V4L2_CID_EXPOSURE_AUTO (0)
116 enum v4l2_exposure_auto_type {
117 
120 
124 
128 
132 };
133 #define V4L2_CID_EXPOSURE_ABSOLUTE (1)
135 #define V4L2_CID_FOCUS_ABSOLUTE (2)
136 #define V4L2_CID_FOCUS_RELATIVE (3)
137 #define V4L2_CID_FOCUS_AUTO (4)
139 #define V4L2_CID_ZOOM_ABSOLUTE (5)
140 #define V4L2_CID_ZOOM_RELATIVE (6)
141 #define V4L2_CID_ZOOM_CONTINUOUS (7)
144 #define V4L2_CID_IRIS_ABSOLUTE (8)
145 #define V4L2_CID_IRIS_RELATIVE (9)
148 #define V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE (10)
152 enum v4l2_auto_n_preset_white_balance {
163 };
164 
165 #define V4L2_CID_WIDE_DYNAMIC_RANGE (11)
166 #define V4L2_CID_IMAGE_STABILIZATION (12)
168 #define V4L2_CID_ISO_SENSITIVITY (13)
169 #define V4L2_CID_ISO_SENSITIVITY_AUTO (14)
173 enum v4l2_iso_sensitivity_auto_type {
176 };
177 
178 #define V4L2_CID_EXPOSURE_METERING (15)
182 enum v4l2_exposure_metering {
187 };
188 
189 #define V4L2_CID_SCENE_MODE (16)
193 enum v4l2_scene_mode {
208 };
209 
210 #define V4L2_CID_3A_LOCK (17)
211 #define V4L2_LOCK_EXPOSURE (1 << 0)
213 #define V4L2_LOCK_WHITE_BALANCE (1 << 1)
215 #define V4L2_LOCK_FOCUS (1 << 2)
218 #define V4L2_CID_AUTO_FOCUS_START (18)
219 #define V4L2_CID_AUTO_FOCUS_STOP (19)
223 #define V4L2_CID_FLASH_LED_MODE (0)
224 
227 enum v4l2_flash_led_mode {
231 };
233 /* JPEG-class control IDs */
234 
235 #define V4L2_CID_JPEG_COMPRESSION_QUALITY (0)
241 #endif /* __MODULES_INCLUDE_VIDEO_VIDEO_CONTROLS_H */
Definition: video_controls.h:98
Definition: video_controls.h:90
Definition: video_controls.h:205
Definition: video_controls.h:232
Definition: video_controls.h:233
Definition: video_controls.h:100
Definition: video_controls.h:162
Definition: video_controls.h:195
Definition: video_controls.h:89
Definition: video_controls.h:92
Definition: video_controls.h:153
Definition: video_controls.h:198
Definition: video_controls.h:127
v4l2_flash_led_mode
Definition: video_controls.h:230
Definition: video_controls.h:158
Definition: video_controls.h:131
Definition: video_controls.h:154
Definition: video_controls.h:194
Definition: video_controls.h:97
Definition: video_controls.h:123
Definition: video_controls.h:201
Definition: video_controls.h:95
Definition: video_controls.h:156
Definition: video_controls.h:196
Definition: video_controls.h:160
Definition: video_controls.h:185
Definition: video_controls.h:206
Definition: video_controls.h:184
Definition: video_controls.h:161
Definition: video_controls.h:202
Definition: video_controls.h:96
Definition: video_controls.h:159
Definition: video_controls.h:186
Definition: video_controls.h:204
Definition: video_controls.h:101
Definition: video_controls.h:103
Definition: video_controls.h:174
Definition: video_controls.h:93
Definition: video_controls.h:155
Definition: video_controls.h:91
Definition: video_controls.h:99
Definition: video_controls.h:102
Definition: video_controls.h:231
Definition: video_controls.h:175
Definition: video_controls.h:203
Definition: video_controls.h:88
Definition: video_controls.h:183
Definition: video_controls.h:207
Definition: video_controls.h:104
Definition: video_controls.h:157
Definition: video_controls.h:199
Definition: video_controls.h:200
Definition: video_controls.h:94
Definition: video_controls.h:197
Definition: video_controls.h:119