Debian Codegraph @

thirdparty/analogdevicesinc/no-OS/v4l2_config/v4l2_config.h

raw symbols SCIP
1
2 #ifndef V4L2_CONFIG_H_
3 #define V4L2_CONFIG_H_
4
5 #include <linux/videodev2.h>
6
7 /******************************************************************************/
8 /******** Temporary defines until <linux/videodev2.h> will be updated *********/
9 /******************************************************************************/
10 #define V4L2_EVENT_SOURCE_CHANGE 5
11
12 struct v4l2_event_src_change_new {
13 __u32 changes;
14 };
15
16 struct v4l2_event_motion_det_new {
17 __u32 flags;
18 __u32 frame_sequence;
19 __u32 region_mask;
20 };
21
22 struct v4l2_event_new {
23 __u32 type;
24 union {
25 struct v4l2_event_vsync vsync;
26 struct v4l2_event_ctrl ctrl;
27 struct v4l2_event_frame_sync frame_sync;
28 struct v4l2_event_src_change_new src_change_new;
29 struct v4l2_event_motion_det_new motion_det;
30 __u8 data[64];
31 } u;
32 __u32 pending;
33 __u32 sequence;
34 struct timespec timestamp;
35 __u32 id;
36 __u32 reserved[8];
37 };
38
39 /******************************************************************************/
40 /***************************** Controls IDs ***********************************/
41 /******************************************************************************/
42 #define V4L2_CFG_CID_ADV7611_FREE_RUN_COLOR_MANUAL \
43 (V4L2_CID_DV_CLASS_BASE + 0x1001)
44 #define V4L2_CFG_CID_ADV7611_FREE_RUN_COLOR \
45 (V4L2_CID_DV_CLASS_BASE + 0x1002)
46 #define V4L2_CFG_CID_ADV7611_FREE_RUN_MODE \
47 (V4L2_CID_DV_CLASS_BASE + 0x1003)
48
49 /******************************************************************************/
50 /************************ Functions Declarations ******************************/
51 /******************************************************************************/
52 int v4l2_cfg_query_dv_timings(int dev_fd,
53 struct v4l2_dv_timings *dv_timings);
54 int v4l2_cfg_get_dv_timings(int dev_fd,
55 struct v4l2_dv_timings *dv_timings);
56 int v4l2_cfg_set_dv_timings(int dev_fd,
57 struct v4l2_dv_timings *dv_timings);
58 int v4l2_cfg_query_ctrls(int dev_fd,
59 struct v4l2_queryctrl *ctrls,
60 int *ctrls_no);
61 int v4l2_cfg_subscribe_event(int dev_fd,
62 unsigned int event_type,
63 unsigned int event_id);
64 int v4l2_cfg_unsubscribe_event(int dev_fd,
65 unsigned int event_type,
66 unsigned int event_id);
67 int v4l2_cfg_dequeue_event(int dev_fd,
68 struct v4l2_event_new *dqevent);
69 int v4l2_cfg_get_control_value(int dev_fd,
70 int ctrl_id,
71 int *value);
72 int v4l2_cfg_set_control_value(int dev_fd,
73 int ctrl_id,
74 int value);
75 #endif