CCIMXDesktop
Loading...
Searching...
No Matches
MainWindow.h
1
#ifndef MAINWINDOW_H
2
#define MAINWINDOW_H
3
#include <QMainWindow>
4
class
VideoPlayer
;
5
class
QMediaPlayer;
6
class
QAudioOutput;
7
class
CVImage
;
8
QT_BEGIN_NAMESPACE
9
namespace
Ui {
10
class
MainWindow
;
11
}
12
QT_END_NAMESPACE
13
14
class
MainWindow
:
public
QMainWindow {
15
Q_OBJECT
16
17
public
:
23
MainWindow
(QWidget* parent =
nullptr
);
24
~MainWindow
();
25
26
private
slots:
27
28
void
on_btn_open_clicked();
29
30
void
on_btn_play_clicked();
31
32
void
on_btn_stop_clicked();
33
34
private
:
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
CVImage
The CVImage class is the image class that provides the image in the frameworks.
Definition
CVImage.h:9
MainWindow
MainWindow for example show.
Definition
MainWindow.h:15
MainWindow::MainWindow
MainWindow(QWidget *parent=nullptr)
Construct a new Main Window object.
VideoPlayer
Definition
VideoPlayer.h:35
extern_app
professionals
library
OpencvQtAdapter
gui_example
MainWindow.h
Generated by
1.9.8