-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathplaydialog.h
47 lines (36 loc) · 986 Bytes
/
playdialog.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
#ifndef PLAYDIALOG_H
#define PLAYDIALOG_H
#include <QDialog>
#include "ts_parser.h"
#include <QList>
#include <QtAV>
#include <QtAVWidgets>
#include "tsstreamdevice.h"
namespace Ui {
class PlayDialog;
}
using namespace QtAV;
class PlayDialog : public QDialog
{
Q_OBJECT
public:
explicit PlayDialog(ts_parse_context* tpc, QList<bool> &ts_packet_select, QString &filename, QWidget *parent = 0);
~PlayDialog();
ts_parse_context* tpc;
QList<bool> ts_packet_select;
QtAV::AVPlayer *mpPlayer;
QtAV::VideoRenderer *mpRenderer;
QtAV::LibAVFilterVideo *mpVideoFilter;
QtAV::LibAVFilterAudio *mpAudioFilter;
QtAV::SubtitleFilter *mpSubtitle;
bool setRenderer(VideoRenderer* renderer);
TSStreamDevice tssd;
private:
Ui::PlayDialog *ui;
protected:
virtual void showEvent(QShowEvent*);
virtual void closeEvent(QCloseEvent*);
public slots:
void slot_update_stream_info(int ts_index, int pes_index);
};
#endif // PLAYDIALOG_H