invisible

view src/kinect.h @ 1:fdbd55eaa14e

add frame class, mutices
author Eleni Maria Stea <eleni@mutantstargoat.com>
date Sat, 05 Oct 2013 19:02:40 +0300
parents
children b0b90ef993a0
line source
1 #ifndef KINECT_H_
2 #define KINECT_H_
4 #include <libfreenect.h>
6 #define FREENECT_ANGLE 30
8 struct KinectParams {
9 double angle;
10 freenect_led_options led_color;
11 freenect_video_format video_format;
12 freenect_depth_format depth_format;
13 freenect_resolution video_res;
14 freenect_resolution depth_res;
16 KinectParams()
17 {
18 angle = 10;
19 led_color = LED_RED;
20 video_format = FREENECT_VIDEO_RGB;
21 depth_format = FREENECT_DEPTH_11BIT;
22 video_res = FREENECT_RESOLUTION_MEDIUM;
23 depth_res = FREENECT_RESOLUTION_MEDIUM;
24 }
25 };
27 bool init_kinect(freenect_context **kin_ctx, freenect_device **kin_dev, KinectParams *kin_params);
28 void stop_kinect(freenect_context *kin_ctx, freenect_device *kin_dev);
30 #endif // KINECT_H_