forked from jnohlgard/python-v4l2capture
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvideoin.h
38 lines (29 loc) · 1018 Bytes
/
videoin.h
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
#ifndef VIDEOIN_H
#define VIDEOIN_H
#include <Python.h>
#include "base.h"
#include <map>
#include <string>
/*typedef struct {
PyObject_HEAD
int fd;
struct buffer *buffers;
int buffer_count;
} Video_device;*/
class Device_manager_cl{
public:
PyObject_HEAD
std::map<std::string, class Base_Video_In *> *threadArgStore;
};
typedef Device_manager_cl Device_manager;
int Device_manager_init(Device_manager *self, PyObject *args,
PyObject *kwargs);
void Device_manager_dealloc(Device_manager *self);
PyObject *Device_manager_open(Device_manager *self, PyObject *args);
PyObject *Device_manager_set_format(Device_manager *self, PyObject *args);
PyObject *Device_manager_Start(Device_manager *self, PyObject *args);
PyObject *Device_manager_Get_frame(Device_manager *self, PyObject *args);
PyObject *Device_manager_stop(Device_manager *self, PyObject *args);
PyObject *Device_manager_close(Device_manager *self, PyObject *args);
PyObject *Device_manager_list_devices(Device_manager *self);
#endif //VIDEOIN_H