invisible

diff src/frame.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 1ff5a1a50b41
children db8f1c036d0e
line diff
     1.1 --- a/src/frame.h	Wed Oct 16 15:41:08 2013 +0300
     1.2 +++ b/src/frame.h	Thu Oct 24 00:09:13 2013 +0300
     1.3 @@ -8,13 +8,23 @@
     1.4  	cv::Mat depth_buf;
     1.5  	cv::Mat video_buf;
     1.6  
     1.7 +	unsigned int depth_tex;
     1.8 +	unsigned int video_tex;
     1.9 +
    1.10  	Frame();
    1.11      ~Frame(); //TODO delete Mat
    1.12  
    1.13 +	void tex_setup();
    1.14  	void process();
    1.15 +
    1.16 +	void draw();
    1.17 +	void draw_video();
    1.18 +	void draw_depth();
    1.19  };
    1.20  
    1.21  void video_cb(freenect_device *kin_dev, void *video, uint32_t time);
    1.22  void depth_cb(freenect_device *kin_dev, void *depth, uint32_t time);
    1.23  
    1.24 +bool save_video_ppm(void *video, int w, int h);
    1.25 +bool save_depth_ppm(void *depth, int w, int h);
    1.26  #endif // FRAME_H_