forked from brendandburns/py-k4a
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.h
56 lines (45 loc) · 1.08 KB
/
types.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include <Python.h>
#include <structmember.h>
#include <k4a/k4a.h>
#ifndef __PY_K4A_TYPES__
#define __PY_K4A_TYPES__
typedef struct {
PyObject_HEAD
k4a_device_t device;
} DeviceObject;
typedef struct {
PyObject_HEAD
k4a_image_format_t color_format;
k4a_color_resolution_t color_resolution;
k4a_depth_mode_t depth_mode;
k4a_fps_t camera_fps;
bool synchronized_images_only;
int32_t depth_delay_off_color_usec;
k4a_wired_sync_mode_t wired_sync_mode;
uint32_t subordinate_delay_off_master_usec;
bool disable_streaming_indicator;
} DeviceConfiguration;
typedef struct {
PyObject_HEAD
uint32_t major;
uint32_t minor;
uint32_t iteration;
} VersionInfo;
typedef struct {
PyObject_HEAD
VersionInfo* rgb;
} HardwareVersion;
void Hardware_dealloc(HardwareVersion* self);
typedef struct {
PyObject_HEAD
k4a_capture_t capture;
} CaptureObject;
typedef struct {
PyObject_HEAD
k4a_image_t image;
} ImageObject;
ImageObject* newImageObject();
bool initTypes();
bool addTypes();
void registerEnums(PyObject *mod);
#endif