invisible
view src/kinect.h @ 5:700127288dc5
quick backup
todo: fix save_ppm
subimage2d
author | Eleni Maria Stea <eleni@mutantstargoat.com> |
---|---|
date | Thu, 24 Oct 2013 00:09:13 +0300 |
parents | b0b90ef993a0 |
children | 4f1b8ddcd32e |
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_