invisible

diff 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 diff
     1.1 --- a/src/kinect.h	Wed Oct 16 15:41:08 2013 +0300
     1.2 +++ b/src/kinect.h	Thu Oct 24 00:09:13 2013 +0300
     1.3 @@ -4,10 +4,10 @@
     1.4  #include <libfreenect.h>
     1.5  
     1.6  /* from specs */
     1.7 -#define FREENECT_VIDEO_WIDTH 640
     1.8 -#define FREENECT_VIDEO_HEIGHT 480
     1.9 -#define FREENECT_DEPTH_WIDTH 640
    1.10 -#define FREENECT_DEPTH_HEIGHT 480
    1.11 +#define KINECT_VIDEO_WIDTH 640
    1.12 +#define KINECT_VIDEO_HEIGHT 480
    1.13 +#define KINECT_DEPTH_WIDTH 640
    1.14 +#define KINECT_DEPTH_HEIGHT 480
    1.15  
    1.16  struct KinectParams {
    1.17  	double angle;
    1.18 @@ -23,21 +23,7 @@
    1.19  	freenect_resolution video_res;
    1.20  	freenect_resolution depth_res;
    1.21  
    1.22 -	KinectParams()
    1.23 -	{
    1.24 -		angle = 10;
    1.25 -
    1.26 -		video_width = FREENECT_VIDEO_WIDTH;
    1.27 -		video_height = FREENECT_DEPTH_HEIGHT;
    1.28 -		depth_width = FREENECT_VIDEO_WIDTH;
    1.29 -		depth_height = FREENECT_DEPTH_HEIGHT;
    1.30 -
    1.31 -		led_color = LED_RED;
    1.32 -		video_format = FREENECT_VIDEO_RGB;
    1.33 -		depth_format = FREENECT_DEPTH_11BIT;
    1.34 -		video_res = FREENECT_RESOLUTION_MEDIUM;
    1.35 -		depth_res = FREENECT_RESOLUTION_MEDIUM;
    1.36 -	}
    1.37 +	KinectParams();
    1.38  };
    1.39  
    1.40  bool init_kinect(freenect_context **kin_ctx, freenect_device **kin_dev, KinectParams *kin_params);