-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathVideoCaptureControls.h
More file actions
40 lines (32 loc) · 928 Bytes
/
VideoCaptureControls.h
File metadata and controls
40 lines (32 loc) · 928 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
#ifndef VIDEOCAPTURECONTROLS_H
#define VIDEOCAPTURECONTROLS_H
#include <QWidget>
class QComboBox;
class VideoCapture;
class ThreadWaiter;
class QSettings;
class VideoCaptureControls : public QWidget
{
Q_OBJECT
public:
explicit VideoCaptureControls(QWidget *parent = 0);
~VideoCaptureControls();
VideoCapture * capture();
void save(QSettings& s);
void load(QSettings& s);
signals:
void deviceChosen(int index);
void resolutionChosen(int w, int h);
public slots:
void populateDeviceList(const QStringList& devNames);
void onDeviceChosen(int id);
// user has chosen via combo
void onResolutionChosen(QString resolution);
// OS has chosen - should reflect in the combo
void showResolution(int w, int h);
protected:
QComboBox * m_deviceSelector, * m_resolutionSelector;
VideoCapture * m_capture;
ThreadWaiter * m_waiter;
};
#endif // VIDEOCAPTURECONTROLS_H