eleni@1: #ifndef FRAME_H_ eleni@1: #define FRAME_H_ eleni@1: eleni@1: #include eleni@2: #include eleni@1: eleni@2: struct Frame { eleni@2: cv::Mat depth_buf; eleni@2: cv::Mat video_buf; eleni@1: eleni@5: unsigned int depth_tex; eleni@5: unsigned int video_tex; eleni@5: eleni@1: Frame(); eleni@4: ~Frame(); //TODO delete Mat eleni@4: eleni@5: void tex_setup(); eleni@2: void process(); eleni@5: eleni@5: void draw(); eleni@5: void draw_video(); eleni@5: void draw_depth(); eleni@1: }; eleni@1: eleni@2: void video_cb(freenect_device *kin_dev, void *video, uint32_t time); eleni@1: void depth_cb(freenect_device *kin_dev, void *depth, uint32_t time); eleni@1: eleni@5: bool save_video_ppm(void *video, int w, int h); eleni@5: bool save_depth_ppm(void *depth, int w, int h); eleni@6: eleni@1: #endif // FRAME_H_