/*************************************************************************************** * * video.h is part of SimpleSkyCam. * ***************************************************************************************/ #ifndef _VIDEO_H_ #define _VIDEO_H_ #include #include #include "gui.h" #include "config.h" enum { VDEV_STATUS_UNKNOWN, VDEV_STATUS_OK, VDEV_STATUS_ERROR }; class VideoDev { private: std::string conf_device; std::string conf_devicename; gboolean (*callback)(gpointer data); int status; public: VideoDev(); ~VideoDev(); int Start(std::string dev, gboolean (*callback_func)(gpointer data)); // will start a new thread int Stop(); // stop video processing and stop the pthread int GetDeviceList(std::list *list); int GetStatus() { return status; }; }; #endif // _VIDEO_H_