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