6
Please keep the first part (options < 128) in alphabetical order.
7
That makes it easier to see which short options are still free.
9
In general the lower case is used to set something and the upper
10
case is used to retrieve a setting. */
12
OptGetSlicedVbiFormat = 'B',
13
OptSetSlicedVbiFormat = 'b',
17
OptGetDriverInfo = 'D',
24
OptListCtrlsMenus = 'L',
35
OptGetVideoFormat = 'V',
36
OptSetVideoFormat = 'v',
39
OptGetVideoMplaneFormat = 128,
40
OptSetVideoMplaneFormat,
41
OptGetSlicedVbiOutFormat,
43
OptGetOutputOverlayFormat,
47
OptGetVideoOutMplaneFormat,
48
OptSetSlicedVbiOutFormat,
49
OptSetOutputOverlayFormat,
51
//OptSetVbiFormat, TODO
52
//OptSetVbiOutFormat, TODO
54
OptSetVideoOutMplaneFormat,
56
OptTryVideoOutMplaneFormat,
57
OptTrySlicedVbiOutFormat,
58
OptTrySlicedVbiFormat,
60
OptTryVideoMplaneFormat,
61
OptTryOutputOverlayFormat,
63
//OptTryVbiFormat, TODO
64
//OptTryVbiOutFormat, TODO
70
OptListMplaneFormatsExt,
72
OptListFrameIntervals,
73
OptListOverlayFormats,
75
OptListOutMplaneFormats,
80
OptGetSlicedVbiOutCap,
89
OptGetOutputOverlayCrop,
90
OptSetOutputOverlayCrop,
93
OptGetOutputSelection,
94
OptSetOutputSelection,
103
OptGetOverlayCropCap,
104
OptGetOutputOverlayCropCap,
138
OptListBuffersSlicedVbi,
139
OptListBuffersVbiOut,
140
OptListBuffersSlicedVbiOut,
165
extern char options[OptLast];
166
extern unsigned capabilities;
175
#define FmtWidth (1L<<0)
176
#define FmtHeight (1L<<1)
177
#define FmtChromaKey (1L<<2)
178
#define FmtGlobalAlpha (1L<<3)
179
#define FmtPixelFormat (1L<<4)
180
#define FmtLeft (1L<<5)
181
#define FmtTop (1L<<6)
182
#define FmtField (1L<<7)
185
int doioctl_name(int fd, unsigned long int request, void *parm, const char *name);
186
int test_ioctl(int fd, int cmd, void *arg);
187
std::string flags2s(unsigned val, const flag_def *def);
188
int parse_subopt(char **subs, const char * const *subopts, char **value);
189
std::string std2s(v4l2_std_id std);
190
std::string buftype2s(int type);
191
std::string fcc2s(unsigned int val);
192
std::string fmtdesc2s(unsigned flags);
193
std::string colorspace2s(int val);
194
std::string service2s(unsigned service);
195
std::string field2s(int val);
196
void print_v4lstd(v4l2_std_id std);
197
int parse_fmt(char *optarg, __u32 &width, __u32 &height, __u32 &pixelformat);
198
__u32 find_pixel_format(int fd, unsigned index, bool mplane);
199
void printfmt(const struct v4l2_format &vfmt);
200
void print_video_formats(int fd, enum v4l2_buf_type type);
202
#define doioctl(n, r, p) doioctl_name(n, r, p, #r)
204
// v4l2-ctl-common.cpp
205
void common_usage(void);
206
void common_cmd(int ch, char *optarg);
207
void common_set(int fd);
208
void common_get(int fd);
209
void common_list(int fd);
210
void common_process_controls(int fd);
211
void common_control_event(const struct v4l2_event *ev);
212
int common_find_ctrl_id(const char *name);
214
// v4l2-ctl-tuner.cpp
215
void tuner_usage(void);
216
void tuner_cmd(int ch, char *optarg);
217
void tuner_set(int fd);
218
void tuner_get(int fd);
222
void io_cmd(int ch, char *optarg);
225
void io_list(int fd);
228
void stds_usage(void);
229
void stds_cmd(int ch, char *optarg);
230
void stds_set(int fd);
231
void stds_get(int fd);
232
void stds_list(int fd);
234
// v4l2-ctl-vidcap.cpp
235
void vidcap_usage(void);
236
void vidcap_cmd(int ch, char *optarg);
237
void vidcap_set(int fd);
238
void vidcap_get(int fd);
239
void vidcap_list(int fd);
241
// v4l2-ctl-vidout.cpp
242
void vidout_usage(void);
243
void vidout_cmd(int ch, char *optarg);
244
void vidout_set(int fd);
245
void vidout_get(int fd);
246
void vidout_list(int fd);
248
// v4l2-ctl-overlay.cpp
249
void overlay_usage(void);
250
void overlay_cmd(int ch, char *optarg);
251
void overlay_set(int fd);
252
void overlay_get(int fd);
253
void overlay_list(int fd);
256
void vbi_usage(void);
257
void vbi_cmd(int ch, char *optarg);
258
void vbi_set(int fd);
259
void vbi_get(int fd);
260
void vbi_list(int fd);
262
// v4l2-ctl-selection.cpp
263
void selection_usage(void);
264
void selection_cmd(int ch, char *optarg);
265
void selection_set(int fd);
266
void selection_get(int fd);
269
void misc_usage(void);
270
void misc_cmd(int ch, char *optarg);
271
void misc_set(int fd);
272
void misc_get(int fd);
274
// v4l2-ctl-streaming.cpp
275
void streaming_usage(void);
276
void streaming_cmd(int ch, char *optarg);
277
void streaming_set(int fd);
278
void streaming_list(int fd);