forked from remexre/pyfreenect2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyfreenect2.hpp
78 lines (55 loc) · 3.61 KB
/
pyfreenect2.hpp
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#pragma once
#include <Python.h>
#include <string>
#include <libfreenect2/libfreenect2.hpp>
#include <libfreenect2/logger.h>
#include <libfreenect2/frame_listener_impl.h>
#include <libfreenect2/registration.h>
#include <numpy/arrayobject.h>
////////////////////////////////////////////////////////////////////////////////
// GLOBAL FUNCTIONS //
////////////////////////////////////////////////////////////////////////////////
libfreenect2::Freenect2& getGlobalFreenect2();
PyObject *py_numberOfDevices(PyObject *self, PyObject *args);
PyObject *py_getDefaultDeviceSerialNumber(PyObject *self, PyObject *args);
////////////////////////////////////////////////////////////////////////////////
// Freenect2Device //
////////////////////////////////////////////////////////////////////////////////
PyObject *py_Freenect2Device_new(PyObject *self, PyObject *args);
void py_Freenect2Device_destroy(PyObject *deviceCapsule);
PyObject *py_Freenect2Device_start(PyObject *self, PyObject *args);
PyObject *py_Freenect2Device_stop(PyObject *self, PyObject *args);
PyObject *py_Freenect2Device_setColorFrameListener(PyObject *self, PyObject *args);
PyObject *py_Freenect2Device_setIrAndDepthFrameListener(PyObject *self, PyObject *args);
PyObject *py_Freenect2Device_getSerialNumber(PyObject *self, PyObject *args);
PyObject *py_Freenect2Device_getFirmwareVersion(PyObject *self, PyObject *args);
PyObject *py_Freenect2Device_getColorCameraParams(PyObject *self, PyObject *args);
PyObject *py_Freenect2Device_getIRCameraParams(PyObject *self, PyObject *args);
void py_Freenect2Device_ColorCameraParams_destroy(PyObject *colorCameraParamsCapsule);
void py_Freenect2Device_IRCameraParams_destroy(PyObject *irCameraParamsCapsule);
////////////////////////////////////////////////////////////////////////////////
// SyncMultiFrameListener //
////////////////////////////////////////////////////////////////////////////////
PyObject *py_SyncMultiFrameListener_new(PyObject *self, PyObject *args);
void py_SyncMultiFrameListener_destroy(PyObject *object);
PyObject *py_SyncMultiFrameListener_waitForNewFrame(PyObject *self, PyObject *args);
PyObject *py_SyncMultiFrameListener_release(PyObject *self, PyObject *args);
////////////////////////////////////////////////////////////////////////////////
// FrameMap //
////////////////////////////////////////////////////////////////////////////////
void py_FrameMap_destroy(PyObject *object);
PyObject *py_FrameMap_getFrame(PyObject *self, PyObject *args);
////////////////////////////////////////////////////////////////////////////////
// Frame //
////////////////////////////////////////////////////////////////////////////////
void py_Frame_destroy(PyObject *object);
PyObject *py_Frame_getHeight(PyObject *self, PyObject *args);
PyObject *py_Frame_getWidth(PyObject *self, PyObject *args);
PyObject *py_Frame_getData(PyObject *self, PyObject *args);
PyObject *py_Frame_getDepthData(PyObject *self, PyObject *args);
////////////////////////////////////////////////////////////////////////////////
// Registration //
////////////////////////////////////////////////////////////////////////////////
PyObject *py_Registration_new(PyObject *self, PyObject *args);
void py_Registration_destroy(PyObject *object);
PyObject *py_Registration_apply(PyObject *self, PyObject *args);