-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathVideoCapture.h
More file actions
39 lines (32 loc) · 793 Bytes
/
VideoCapture.h
File metadata and controls
39 lines (32 loc) · 793 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
#ifndef VIDEOCAPTURE_H
#define VIDEOCAPTURE_H
#include <QThread>
#include <QImage>
#include <QTimer>
#include <QStringList>
class VideoCapture : public QObject
{
Q_OBJECT
public:
explicit VideoCapture(QThread * thread = 0, QObject *parent = 0);
~VideoCapture();
signals:
void foundDevices(QStringList);
void gotFrame(QImage frame);
void autoResolution(int w, int h);
public slots:
void setupResolution(int w=0, int h=0);
void scanForDevices();
void openDevice(int index=0);
void closeDevice();
protected slots:
virtual void onThreadStarted();
virtual void onClockTick();
protected:
struct Private;
Private * m_private;
int m_deviceCount;
int m_openDevice, m_resW, m_resH;
QTimer * m_clock;
};
#endif // VIDEOCAPTURE_H