-
Notifications
You must be signed in to change notification settings - Fork 8
/
VideoPlayerWidget.h
47 lines (37 loc) · 1012 Bytes
/
VideoPlayerWidget.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 VIDEOPLAYERWIDDGET_H
#define VIDEOPLAYERWIDDGET_H
#include <QWidget>
#include <QSlider>
#include <QLabel>
#include <QPushButton>
#include "OpenGLRender.h"
#include "DecodecVideo.h"
#include "VideoPlayOper.h"
#include "QtRenderWidget.h"
#include "VideoRenderBase.h"
class EncodecGif;
class VideoPlayerWidget : public QWidget
{
Q_OBJECT
public:
VideoPlayerWidget();
~VideoPlayerWidget();
private:
VideoRenderBase* m_pRender = nullptr;
DecodecVideo* m_pDecodecVideoThread = nullptr;
VideoPlayOper* m_pVideoPlayOper = nullptr;
QSlider* m_pSlider = nullptr;
QLabel* m_pTimeTag = nullptr;
QPushButton* m_pPlayButton = nullptr;
EncodecGif* m_pEncodecGif = nullptr;
void setCurrentDisplayTime(qreal time);
private slots:
void onClickedLoadButton(void);
void onSliderValueChanged(int value);
void onPlayButtonClicked(void);
void onClickedCreateGifButton(void);
void onUpdateDisplayInfos(qreal time);
protected:
void closeEvent(QCloseEvent * event) override;
};
#endif