CCIMXDesktop
 
Loading...
Searching...
No Matches
MainWindow.h
1#ifndef MAINWINDOW_H
2#define MAINWINDOW_H
3#include <QMainWindow>
4class VideoPlayer;
5class QMediaPlayer;
6class QAudioOutput;
7class CVImage;
8QT_BEGIN_NAMESPACE
9namespace Ui {
10class MainWindow;
11}
12QT_END_NAMESPACE
13
14class MainWindow : public QMainWindow {
15 Q_OBJECT
16
17public:
23 MainWindow(QWidget* parent = nullptr);
25
26private slots:
27
28 void on_btn_open_clicked();
29
30 void on_btn_play_clicked();
31
32 void on_btn_stop_clicked();
33
34private:
35 static constexpr const unsigned short MAX_MISTCH = 80;
36 static constexpr const float VOLUMN = 0.1;
37 Ui::MainWindow* ui;
38 VideoPlayer* video_player { nullptr };
39 QMediaPlayer* audio_player { nullptr };
40 QAudioOutput* audio_output { nullptr };
41 void handle_frame(const CVImage& image);
42};
43#endif // MAINWINDOW_H
The CVImage class is the image class that provides the image in the frameworks.
Definition CVImage.h:9
MainWindow for example show.
Definition MainWindow.h:15
MainWindow(QWidget *parent=nullptr)
Construct a new Main Window object.
Definition VideoPlayer.h:35