-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecorder.h
More file actions
35 lines (30 loc) · 714 Bytes
/
recorder.h
File metadata and controls
35 lines (30 loc) · 714 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
#ifndef RECORDER
#define RECORDER
#define MAX_RECORDING_SECONDS 10
#define VIDEOWRITER_FPS 15
#define COLOR_IMAGE_WIDTH 1280
#define COLOR_IMAGE_HEIGHT 720
#define DEPTH_IMAGE_WIDTH 640
#define DEPTH_IMAGE_HEIGHT 576
#include "stdafx.h"
#include "desktopapp.h"
#include "helper.h"
class Recorder {
private:
bool isRecording;
int counter;
DesktopApp* parent;
cv::VideoWriter* colorVideoWriter;
cv::VideoWriter* depthVideoWriter;
QString colorOutputFilename;
QString depthOutputFilename;
public:
QTimer* timer;
Recorder(DesktopApp*);
bool getRecordingStatus();
void prepareRecorder();
void stopRecorder();
cv::VideoWriter* getColorVideoWriter();
cv::VideoWriter* getDepthVideoWriter();
};
#endif