-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSaveVideoClass.h
More file actions
49 lines (33 loc) · 813 Bytes
/
SaveVideoClass.h
File metadata and controls
49 lines (33 loc) · 813 Bytes
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
#include "FlyCapture2.h"
#include "SaveVideoClassBase.h"
using namespace std;
/**
* SaveVideo Class. Saves and displays a video captured from a camaera.
*/
class VideoSaverFlyCapture: public VideoSaver
{
public:
/** Constructor. */
VideoSaverFlyCapture();
/** Destructor. */
virtual ~VideoSaverFlyCapture();
/**
*/
bool isFlycapture() {
return m_isFlycapture;
};
/**
* Captures and writes the video to the file
*/
virtual int startCapture();
virtual int close();
virtual int init(int camIdx);
int init(FlyCapture2::PGRGuid camIdx);
virtual bool isInit();
private:
FlyCapture2::Camera m_Camera;
bool m_isFlycapture;
protected:
virtual int stopCapturing();
virtual void captureThread();
};