-
Notifications
You must be signed in to change notification settings - Fork 4
/
SLCameraVirtual.h
37 lines (33 loc) · 950 Bytes
/
SLCameraVirtual.h
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
/*
*
SLStudio - Platform for Real-Time Structured Light
(c) 2013 -- 2014 Jakob Wilm, DTU, Kgs.Lyngby, Denmark
*
*/
#ifndef SLCAMERAVIRTUAL_H
#define SLCAMERAVIRTUAL_H
#include "Camera.h"
#include "Codec.h"
// Virtual Camera Implementation
class SLCameraVirtual : public Camera {
public:
// Static methods
static std::vector<CameraInfo> getCameraList();
// Interface function
SLCameraVirtual(unsigned int, CameraTriggerMode triggerMode);
CameraSettings getCameraSettings();
void setCameraSettings(CameraSettings){}
void startCapture();
void stopCapture();
CameraFrame getFrame();
size_t getFrameSizeBytes();
size_t getFrameWidth();
size_t getFrameHeight();
~SLCameraVirtual();
private:
unsigned int frameWidth, frameHeight;
Encoder *encoder;
unsigned long counter;
cv::Mat currentBuffer;
};
#endif