invisible
annotate src/frame.h @ 16:97dad98482f5
foo
author | Eleni Maria Stea <eleni@mutantstargoat.com> |
---|---|
date | Wed, 06 Nov 2013 21:04:45 +0200 |
parents | 700127288dc5 |
children |
rev | line source |
---|---|
eleni@1 | 1 #ifndef FRAME_H_ |
eleni@1 | 2 #define FRAME_H_ |
eleni@1 | 3 |
eleni@1 | 4 #include <libfreenect.h> |
eleni@2 | 5 #include <cv.h> |
eleni@1 | 6 |
eleni@2 | 7 struct Frame { |
eleni@2 | 8 cv::Mat depth_buf; |
eleni@2 | 9 cv::Mat video_buf; |
eleni@1 | 10 |
eleni@5 | 11 unsigned int depth_tex; |
eleni@5 | 12 unsigned int video_tex; |
eleni@5 | 13 |
eleni@1 | 14 Frame(); |
eleni@4 | 15 ~Frame(); //TODO delete Mat |
eleni@4 | 16 |
eleni@5 | 17 void tex_setup(); |
eleni@2 | 18 void process(); |
eleni@5 | 19 |
eleni@5 | 20 void draw(); |
eleni@5 | 21 void draw_video(); |
eleni@5 | 22 void draw_depth(); |
eleni@1 | 23 }; |
eleni@1 | 24 |
eleni@2 | 25 void video_cb(freenect_device *kin_dev, void *video, uint32_t time); |
eleni@1 | 26 void depth_cb(freenect_device *kin_dev, void *depth, uint32_t time); |
eleni@1 | 27 |
eleni@5 | 28 bool save_video_ppm(void *video, int w, int h); |
eleni@5 | 29 bool save_depth_ppm(void *depth, int w, int h); |
eleni@6 | 30 |
eleni@1 | 31 #endif // FRAME_H_ |