-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCapture.h
More file actions
executable file
·88 lines (82 loc) · 2.14 KB
/
Copy pathCapture.h
File metadata and controls
executable file
·88 lines (82 loc) · 2.14 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#ifndef CAPTURE_H
#define CAPTURE_H
#ifndef CAPTURES_H
#define CAPTURES_H
#include <QWidget>
#include <QPushButton>
#include <QRadioButton>
#include <QGroupBox>
#include <QBoxLayout>
#include <QMediaCaptureSession>
#include <QMediaRecorder>
#include <QMediaFormat>
#include <QImageCapture>
#include <QComboBox>
#include <QMediaPlayer>
#include <QVideoWidget>
#include <QLabel>
#include <QSlider>
class Captures : public QWidget
{
Q_OBJECT
public:
Captures(int argc, char *argv[]);
bool checkDevicesAvailability();
public slots:
void Record();
void chooseFile();
void typeChanged();
void Alert();
void f_iso(int iso);
void f_colorTemp(int temp);
void f_exposureCompensation(float ec);
void f_exposureTime(float expo);
void f_focusDistance(float focus);
void EasterEgg();
private:
QPushButton *m_buttonRecord;//Enregistrer
QRadioButton *m_buttonFilm;//type: film
QRadioButton *m_buttonSound;//type: son
QRadioButton *m_buttonPhoto;
QVBoxLayout *vBoxType;
QMediaCaptureSession *captureSession;
QCamera *camera;
QMediaRecorder *recorder;
QMediaFormat *format;
bool recording;
QImageCapture *imageCapture;
QVBoxLayout *VBox;
QPushButton *m_file;
QString dossier;
QAudioInput *audioInputVideo;
QMediaPlayer *player;
QVideoWidget *viewFinder;
QHBoxLayout *hBox;
QGroupBox *type;
QVBoxLayout *vBox;
QLabel *iconRecord;
QLabel *typeLabel;
QLabel *fileLabel;
QLabel *previewLabel;
QSlider *zoom;
QSlider *iso;
QSlider *timeExposure;
QSlider *colorTemp;
QSlider *exposureCompensation;
QSlider *focusDistance;
QLabel *zoomLabel;
QLabel *isoLabel;
QLabel *timeExposureLabel;
QLabel *colorTempLabel;
QLabel *exposureCompensationLabel;
QLabel *focusDistanceLabel;
QMediaCaptureSession *audioSession;
QMediaRecorder *audioRecorder;
QMediaFormat *audioFormat;
QAudioInput *audioInput;
QComboBox *flash;
QLabel *flashLabel;
QComboBox *camSelector;
};
#endif // CAPTURES_H
#endif // CAPTURE_H