-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinput_uvc.h
More file actions
43 lines (38 loc) · 980 Bytes
/
input_uvc.h
File metadata and controls
43 lines (38 loc) · 980 Bytes
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
#ifndef INPUT_UVC_H
#define INPUT_UVC_H
#include <stdbool.h>
/*
* UVC resolutions mentioned at: (at least for some webcams)
* http://www.quickcamteam.net/hcl/frame-format-matrix/
*/
static const struct {
const char *string;
const int width, height;
} resolutions[] = {
{ "QSIF", 160, 120 },
{ "QCIF", 176, 144 },
{ "CGA", 320, 200 },
{ "QVGA", 320, 240 },
{ "CIF", 352, 288 },
{ "VGA", 640, 480 },
{ "SVGA", 800, 600 },
{ "XGA", 1024, 768 },
{ "SXGA", 1280, 1024 }
};
struct input_uvc_config {
char *dev;
size_t width;
size_t height;
size_t fps;
size_t format;
bool dynctrls;
size_t gquality;
size_t minimum_size;
int stop_camera;
};
extern struct input_uvc_config input_uvc_cfg;
int input_uvc_init(void);
int input_uvc_run(void);
int input_uvc_stop(void);
int input_uvc_cmd(int plugin_number, unsigned int control_id, unsigned int group, int value);
#endif // INPUT_UVC_H