invisible

diff src/kinect.h @ 0:80df8030105b

init kinect
author Eleni Maria Stea <eleni@mutantstargoat.com>
date Sat, 05 Oct 2013 16:03:08 +0300
parents
children b0b90ef993a0
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/kinect.h	Sat Oct 05 16:03:08 2013 +0300
     1.3 @@ -0,0 +1,30 @@
     1.4 +#ifndef KINECT_H_
     1.5 +#define KINECT_H_
     1.6 +
     1.7 +#include <libfreenect.h>
     1.8 +
     1.9 +#define FREENECT_ANGLE 30
    1.10 +
    1.11 +struct KinectParams {
    1.12 +	double angle;
    1.13 +	freenect_led_options led_color;
    1.14 +	freenect_video_format video_format;
    1.15 +	freenect_depth_format depth_format;
    1.16 +	freenect_resolution video_res;
    1.17 +	freenect_resolution depth_res;
    1.18 +
    1.19 +	KinectParams()
    1.20 +	{
    1.21 +		angle = 10;
    1.22 +		led_color = LED_RED;
    1.23 +		video_format = FREENECT_VIDEO_RGB;
    1.24 +		depth_format = FREENECT_DEPTH_11BIT;
    1.25 +		video_res = FREENECT_RESOLUTION_MEDIUM;
    1.26 +		depth_res = FREENECT_RESOLUTION_MEDIUM;
    1.27 +	}
    1.28 +};
    1.29 +
    1.30 +bool init_kinect(freenect_context **kin_ctx, freenect_device **kin_dev, KinectParams *kin_params);
    1.31 +void stop_kinect(freenect_context *kin_ctx, freenect_device *kin_dev);
    1.32 +
    1.33 +#endif // KINECT_H_