invisible
view src/kinect.h @ 25:96b022f1210e
'w' to switch to wireframe
author | Eleni Maria Stea <eleni@mutantstargoat.com> |
---|---|
date | Sun, 17 Nov 2013 12:46:45 +0200 |
parents | 700127288dc5 |
children |
line source
1 #ifndef KINECT_H_
2 #define KINECT_H_
4 #include <libfreenect.h>
6 /* from specs */
7 #define KINECT_VIDEO_WIDTH 640
8 #define KINECT_VIDEO_HEIGHT 480
9 #define KINECT_DEPTH_WIDTH 640
10 #define KINECT_DEPTH_HEIGHT 480
12 struct KinectParams {
13 double angle;
15 int video_width;
16 int video_height;
17 int depth_width;
18 int depth_height;
20 freenect_led_options led_color;
21 freenect_video_format video_format;
22 freenect_depth_format depth_format;
23 freenect_resolution video_res;
24 freenect_resolution depth_res;
26 KinectParams();
27 };
29 bool init_kinect(freenect_context **kin_ctx, freenect_device **kin_dev, KinectParams *kin_params);
30 bool init_kinect_frames(freenect_context *kin_ctx, freenect_device *kin_dev, KinectParams *kin_params);
32 void stop_kinect_video_frames(freenect_device *kin_dev);
33 void stop_kinect_depth_frames(freenect_device *kin_dev);
34 void stop_kinect_frames(freenect_device *kin_dev);
36 void stop_kinect(freenect_context *kin_ctx, freenect_device *kin_dev);
38 #endif // KINECT_H_