-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSpyder3Camera.hpp
49 lines (35 loc) · 1010 Bytes
/
Spyder3Camera.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef SPY3CAM_HPP
#define SPY3CAM_HPP
#include <string>
#include <vector>
#include <boost/thread.hpp>
#include "ISpyder3Listener.hpp"
#include "ISpyder3StatsListener.hpp"
using namespace std;
class Spyder3Camera{
private:
unsigned int cameraID;
char* MAC;
unsigned int pipelineBufferMax;
vector<ISpyder3Listener*> listeners;
vector<ISpyder3StatsListener*> statsListeners;
boost::thread* camThread;
boost::mutex runMutex;
boost::mutex listenersMutex;
boost::mutex statsListenerMutex;
bool isRunning;
public:
Spyder3Camera(unsigned int _cameraID, const char* _MAC, unsigned int _pipelineBufferMax=32);
~Spyder3Camera();
string getMAC();
unsigned int getNumBuffers();
unsigned int getImageWidth();
unsigned int getImageHeight();
void addListener(ISpyder3Listener *l);
void addStatsListener(ISpyder3StatsListener *l);
void clearListeners();
bool start();
bool stop();
void operator() ();
};
#endif