From 2836141124cf065387bbc7e59ddcfa238ea0a26f Mon Sep 17 00:00:00 2001 From: Patrick Ruoff Date: Sat, 29 Sep 2012 13:18:52 +0000 Subject: Updated vc9 project files. PT: Undo of Wim's last wrong commit, some code cleanup, added preliminary resolution change support. git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@184 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb --- FTNoIR_Tracker_PT/camera.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'FTNoIR_Tracker_PT/camera.h') diff --git a/FTNoIR_Tracker_PT/camera.h b/FTNoIR_Tracker_PT/camera.h index 69719fcc..f26a7a8f 100644 --- a/FTNoIR_Tracker_PT/camera.h +++ b/FTNoIR_Tracker_PT/camera.h @@ -29,6 +29,8 @@ public: void set_index(int index); void set_f(float f) { cam_info.f = f; } + bool set_fps(int fps); + bool set_res(int x_res, int y_res); // gets a frame from the camera, dt: time since last call in seconds cv::Mat get_frame(float dt); @@ -37,6 +39,7 @@ public: const CamInfo& get_info() const { return cam_info; } protected: + int active_index; CvCapture* cap; CamInfo cam_info; float dt_valid; -- cgit v1.2.3