-
Notifications
You must be signed in to change notification settings - Fork 1k
/
avdevice.h
75 lines (61 loc) · 1.93 KB
/
avdevice.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
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
#ifndef AVDEVICE_H
#define AVDEVICE_H
#include <qevent.h>
#include <QMainWindow>
namespace Ui {
class AVDevice;
}
class AVDevice : public QMainWindow
{
Q_OBJECT
public:
explicit AVDevice(QMainWindow* pLastWnd,const QString &qsChanne,QWidget *parent = 0);
~AVDevice();
bool SetCustomVideoProfile();
protected:
virtual void mousePressEvent(QMouseEvent *e);
virtual void mouseMoveEvent(QMouseEvent *e);
virtual void mouseReleaseEvent(QMouseEvent *e);
void initCtrl();
void setStyleSheet_audio(bool bEnable);
void setStyleSheet_video(bool bEnable);
private slots:
void on_btn_back_clicked();
void on_cb_solution_activated(int index);
void on_cb_audio_activated(int index);
void on_cb_video_activated(int index);
void on_cb_speaker_activated(int index);
void on_btn_audio_clicked();
void on_btn_video_clicked();
void on_optVideo_Beauty_clicked();
void on_btn_close_clicked();
void on_btn_min_clicked();
void on_cb_solution_activated(const QString &arg1);
void on_cb_log_activated(int index);
void on_cbContrastLevel_activated(int index);
void on_valueChanged_horizontalSlider_Redness(int value);
void on_valueChanged_horizontalSlider_Smoothness(int value);
void on_valueChanged_horizontalSlider_Lightening(int value);
void on_cb_bitrate_currentIndexChanged(int index);
void on_cb_FPS_currentIndexChanged(int index);
private:
void enableVideoBeutyControl(bool bEnable);
void updateBeautyOptions();
void setVideoProfile();
const int lnGapWidth = 18;
const int lnGapHeight = 12;
const int lnTitleWidth = 718;
const int lnTitleHeight = 30;
QPoint m_mousePosition;
bool m_bMousePressed;
private:
Ui::AVDevice *ui;
QMainWindow* m_lastWnd;
QString m_strChannel;
bool m_bEnableVideo;
bool m_bEnableAudio;
bool m_bEnableBeauty;
int fps[5];
int bitrate[3];
};
#endif // AVDEVICE_H