You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
842 B
41 lines
842 B
/***************************************************************************************
|
|
*
|
|
* video.h is part of SimpleSkyCam.
|
|
*
|
|
***************************************************************************************/
|
|
|
|
#ifndef _VIDEO_H_
|
|
#define _VIDEO_H_
|
|
|
|
#include <string>
|
|
#include <list>
|
|
#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<std::string> *list);
|
|
|
|
int GetStatus() { return status; };
|
|
};
|
|
|
|
#endif // _VIDEO_H_
|
|
|