libcortex
Event loop library following a "batteries included" approach
Loading...
Searching...
No Matches
v4l.h
1#ifndef _CRTX_V4L_H
2#define _CRTX_V4L_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8/*
9 * Mario Kicherer (dev@kicherer.org) 2016
10 *
11 */
12
14 struct crtx_listener_base base;
15
16 char * device_path;
17 int fd;
18
19 struct crtx_dict *formats;
20 struct v4l2_format format;
21
22 struct crtx_dict *controls;
23
24 struct v4l2_event_subscription *subscriptions;
25 unsigned int subscription_length;
26};
27
28char crtx_v4l2_event2dict(struct v4l2_event *ptr, struct crtx_dict **dict_ptr, struct crtx_dict *controls);
29
30struct crtx_listener_base *crtx_new_v4l_listener(void *options);
31CRTX_DECLARE_ALLOC_FUNCTION(v4l)
32
33void crtx_v4l_init();
34void crtx_v4l_finish();
35
36#ifdef __cplusplus
37}
38#endif
39
40#endif
Definition dict.h:61
base structure of a listener
Definition core.h:186
Definition v4l.h:13