1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
|
#ifndef __LINUX_VIDEODEV2_WMT_H
#define __LINUX_VIDEODEV2_WMT_H
#include <linux/videodev2.h>
#define WMT_V4L2_CID_CAMERA_SCENEMODE 0
#define WMT_V4L2_CID_CAMERA_WHITEBALANCE 1
#define WMT_V4L2_CID_CAMERA_ANTIBANDING 2
#define WMT_V4L2_CID_CAMERA_FLASH 3
#define WMT_V4L2_CID_CAMERA_EXPOSURE 4
#define WMT_V4L2_CID_HFLIP 5
#define WMT_V4L2_CID_VFLIP 6
/* CID extensions */
#define V4L2_CID_CAMERA_SCENE_MODE (V4L2_CID_PRIVATE_BASE+0)
enum v4l2_scene_mode {
SCENE_MODE_BASE = 0,
SCENE_MODE_AUTO = 0,
SCENE_MODE_NIGHTSHOT,
SCENE_MODE_PORTRAIT,
SCENE_MODE_BACK_LIGHT,
SCENE_MODE_LANDSCAPE,
SCENE_MODE_SPORTS,
SCENE_MODE_PARTY_INDOOR,
SCENE_MODE_BEACH_SNOW,
SCENE_MODE_SUNSET,
SCENE_MODE_DUSK_DAWN,
SCENE_MODE_FALL_COLOR,
SCENE_MODE_FIREWORKS,
SCENE_MODE_TEXT,
SCENE_MODE_CANDLE_LIGHT,
SCENE_MODE_MAX,
};
#define V4L2_CID_CAMERA_FLASH_MODE (V4L2_CID_PRIVATE_BASE+1)
enum v4l2_flash_mode {
FLASH_MODE_BASE = 0,
FLASH_MODE_OFF = 0,
FLASH_MODE_AUTO,
FLASH_MODE_ON,
FLASH_MODE_TORCH,
FLASH_MODE_STROBE,
FLASH_MODE_MAX,
};
#define V4L2_CID_CAMERA_ISO (V4L2_CID_PRIVATE_BASE+2)
enum v4l2_iso_mode {
ISO_AUTO = 0,
ISO_50,
ISO_100,
ISO_200,
ISO_400,
ISO_800,
ISO_1600,
ISO_SPORTS,
ISO_NIGHT,
ISO_MOVIE,
ISO_MAX,
};
#define V4L2_CID_CAMERA_METERING (V4L2_CID_PRIVATE_BASE+3)
enum v4l2_metering_mode {
METERING_BASE = 0,
METERING_MATRIX,
METERING_CENTER,
METERING_SPOT,
METERING_MAX,
};
#define V4L2_CID_CAMERA_WDR (V4L2_CID_PRIVATE_BASE+4)
enum v4l2_wdr_mode {
WDR_OFF,
WDR_ON,
WDR_MAX,
};
#define V4L2_CID_CAMERA_ANTI_SHAKE (V4L2_CID_PRIVATE_BASE+5)
enum v4l2_anti_shake_mode {
ANTI_SHAKE_OFF,
ANTI_SHAKE_STILL_ON,
ANTI_SHAKE_MOVIE_ON,
ANTI_SHAKE_MAX,
};
#define V4L2_CID_CAMERA_FOCUS_MODE (V4L2_CID_PRIVATE_BASE+6)
enum v4l2_focusmode {
FOCUS_MODE_AUTO = 0,
FOCUS_MODE_MACRO,
FOCUS_MODE_FACEDETECT,
FOCUS_MODE_AUTO_DEFAULT,
FOCUS_MODE_MACRO_DEFAULT,
FOCUS_MODE_FACEDETECT_DEFAULT,
FOCUS_MODE_INFINITY,
FOCUS_MODE_FIXED,
FOCUS_MODE_CONTINUOUS,
FOCUS_MODE_CONTINUOUS_PICTURE,
FOCUS_MODE_CONTINUOUS_PICTURE_MACRO,
FOCUS_MODE_CONTINUOUS_VIDEO,
FOCUS_MODE_TOUCH,
FOCUS_MODE_MAX,
FOCUS_MODE_DEFAULT = (1 << 8),
};
#define V4L2_CID_CAMERA_AUTO_FOCUS_RESULT (V4L2_CID_PRIVATE_BASE+7)
enum v4l2_focusresult {
FOCUS_RESULT_FOCUSING = 0,
FOCUS_RESULT_SUCCEED,
FOCUS_RESULT_FAILED,
};
#define V4L2_CID_CAMERA_FOCUS_POSITION_X (V4L2_CID_PRIVATE_BASE+8)
#define V4L2_CID_CAMERA_FOCUS_POSITION_Y (V4L2_CID_PRIVATE_BASE+9)
#define V4L2_CID_CAMERA_FLASH_MODE_AUTO (V4L2_CID_PRIVATE_BASE+10)
#define V4L2_CID_CAMERA_ANTI_BANDING (V4L2_CID_PRIVATE_BASE+11)
enum v4l2_anti_banding{
ANTI_BANDING_AUTO = 0,
ANTI_BANDING_50HZ = 1,
ANTI_BANDING_60HZ = 2,
ANTI_BANDING_OFF = 3,
};
// V4L2_CID_BRIGHTNESS
enum v4l2_ev_mode {
EV_MINUS_4 = -4,
EV_MINUS_3 = -3,
EV_MINUS_2 = -2,
EV_MINUS_1 = -1,
EV_DEFAULT = 0,
EV_PLUS_1 = 1,
EV_PLUS_2 = 2,
EV_PLUS_3 = 3,
EV_PLUS_4 = 4,
EV_MAX,
};
// V4L2_CID_DO_WHITE_BALANCE
enum v4l2_wb_mode {
WHITE_BALANCE_BASE = 0,
WHITE_BALANCE_AUTO = 0,
WHITE_BALANCE_INCANDESCENCE,
WHITE_BALANCE_FLUORESCENT,
WHITE_BALANCE_DAYLIGHT,
WHITE_BALANCE_CLOUDY,
WHITE_BALANCE_TWILIGHT,
WHITE_BALANCE_SHADE,
WHITE_BALANCE_MAX,
};
// V4L2_CID_CONTRAST
enum v4l2_contrast_mode {
CONTRAST_MINUS_2 = 0,
CONTRAST_MINUS_1,
CONTRAST_DEFAULT,
CONTRAST_PLUS_1,
CONTRAST_PLUS_2,
CONTRAST_MAX,
};
// V4L2_CID_SATURATION
enum v4l2_saturation_mode {
SATURATION_MINUS_2 = 0,
SATURATION_MINUS_1,
SATURATION_DEFAULT,
SATURATION_PLUS_1,
SATURATION_PLUS_2,
SATURATION_MAX,
};
// V4L2_CID_SHARPNESS
enum v4l2_sharpness_mode {
SHARPNESS_MINUS_2 = 0,
SHARPNESS_MINUS_1,
SHARPNESS_DEFAULT,
SHARPNESS_PLUS_1,
SHARPNESS_PLUS_2,
SHARPNESS_MAX,
};
// V4L2_CID_EXPOSURE
enum v4l2_exposure_mode {
EXPOSURE_MINUS_4,
EXPOSURE_MINUS_3,
EXPOSURE_MINUS_2 = -2,
EXPOSURE_MINUS_1 = -1,
EXPOSURE_DEFAULT = 0,
EXPOSURE_PLUS_1 = 1,
EXPOSURE_PLUS_2 = 2,
EXPOSURE_PLUS_3,
EXPOSURE_PLUS_4,
EXPOSURE_MAX
};
#endif /* #ifndef __LINUX_VIDEODEV2_WMT_H */
|