#ifndef FFMPEGVIDEODLG_H #define FFMPEGVIDEODLG_H #include "cffmpeg_decode.h" #include #include #include #include #include #include #include extern "C" { #include #include #include #include #include #include #include #include #include #include #include } namespace Ui { class ffmpegvideoDlg; } class ffmpegvideoDlg : public QWidget { Q_OBJECT public: explicit ffmpegvideoDlg(QWidget *parent = nullptr); ~ffmpegvideoDlg(); private: Ui::ffmpegvideoDlg *ui; public: void iniWindow(); void setUrl(QString url); void play(); void stop(); bool Isplay(bool IsstopPlay); bool m_PlayStatus = false; double m_setVideoAreaWidth; double m_setVideoAreaHeight; double m_ax; double m_ay; protected: void paintEvent(QPaintEvent *); void resizeEvent(QResizeEvent *event); private slots: void receiveQImage(const QImage &rImg); void showMessagBox(int); signals: void operate(); private: Cffmpeg_decode *ffmpeg; QThread workerThread; QImage img; }; #endif // FFMPEGVIDEODLG_H