eleni@0: #ifndef KINECT_H_ eleni@0: #define KINECT_H_ eleni@0: eleni@0: #include eleni@0: eleni@2: /* from specs */ eleni@5: #define KINECT_VIDEO_WIDTH 640 eleni@5: #define KINECT_VIDEO_HEIGHT 480 eleni@5: #define KINECT_DEPTH_WIDTH 640 eleni@5: #define KINECT_DEPTH_HEIGHT 480 eleni@0: eleni@0: struct KinectParams { eleni@0: double angle; eleni@2: eleni@2: int video_width; eleni@2: int video_height; eleni@2: int depth_width; eleni@2: int depth_height; eleni@2: eleni@0: freenect_led_options led_color; eleni@0: freenect_video_format video_format; eleni@0: freenect_depth_format depth_format; eleni@0: freenect_resolution video_res; eleni@0: freenect_resolution depth_res; eleni@0: eleni@5: KinectParams(); eleni@0: }; eleni@0: eleni@0: bool init_kinect(freenect_context **kin_ctx, freenect_device **kin_dev, KinectParams *kin_params); eleni@2: bool init_kinect_frames(freenect_context **kin_ctx, freenect_device **kin_dev, KinectParams *kin_params); eleni@2: eleni@2: void stop_kinect_video_frames(freenect_device *kin_dev); eleni@2: void stop_kinect_depth_frames(freenect_device *kin_dev); eleni@2: void stop_kinect_frames(freenect_device *kin_dev); eleni@2: eleni@0: void stop_kinect(freenect_context *kin_ctx, freenect_device *kin_dev); eleni@0: eleni@0: #endif // KINECT_H_