multimedia/client/qt_gl_/yuvgl/mainwindow.h

49 lines
993 B
C
Raw Normal View History

2020-06-04 15:28:45 +00:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "media/CameraCapture.h"
#include "cplaywidget.h"
2020-06-05 02:18:37 +00:00
#include "media/VideoCoder.h"
2020-06-05 15:59:47 +00:00
#include "media/RtmpPusher.h"
2020-06-05 02:18:37 +00:00
#include "components/toast.h"
2020-06-05 15:59:47 +00:00
#include "utils.h"
#include "Qss.h"
2020-06-21 17:13:44 +00:00
#include "media/audiocaptureff.h"
#include <vector>
using namespace std;
2020-06-04 15:28:45 +00:00
namespace Ui {
class MainWindow;
}
2020-06-06 07:39:55 +00:00
class MainWindow : public QssMainWindow
2020-06-04 15:28:45 +00:00
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
void on_pushButton_clicked();
2020-06-05 02:18:37 +00:00
void on_pushButton_2_clicked();
void on_pushButton_3_clicked();
2020-12-06 16:01:38 +00:00
void DetectDpi();
2020-06-04 15:28:45 +00:00
private:
Ui::MainWindow *ui;
Camera *mCamera;
QStringList mCameraList;
bool m_bCameraOpen;
CPlayWidget *mPlayerWidget;
2020-06-05 02:18:37 +00:00
VideoCoder *mVideoCoder;
bool m_bRtmpPushing;
2020-06-05 15:59:47 +00:00
H264RtmpPuser *mPusher;
CaptureAudioFfmpeg *mAudioCapture;
vector<CaptureAudioFfmpeg::MICInfo> mMic;
2020-12-06 16:01:38 +00:00
QTimer *mTimer;
2020-06-04 15:28:45 +00:00
};
#endif // MAINWINDOW_H