12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef MAINWINDOW_H
- #define MAINWINDOW_H
- #include <QMainWindow>
- #include "rtspclientdown.h"
- #include "ivh264framedecode.h"
- #include "myview.h"
- #include <thread>
- #include <QMutex>
- namespace Ui {
- class MainWindow;
- }
- class MainWindow : public QMainWindow
- {
- Q_OBJECT
- public:
- explicit MainWindow(QWidget *parent = 0);
- ~MainWindow();
- private slots:
- void on_actionSet_URL_triggered();
- void onCamUpdate();
- virtual void paintEvent(QPaintEvent *);
- signals:
- void CamUpdate();
- private:
- Ui::MainWindow *ui;
- rtspclientdown * mprtspdown;
- ivh264framedecode * mph264decode;
- std::string mstrrtspurl = "rtsp://111.33.136.149:9554/AAAAAAAAAAAAAAAAA-front-hello";
- int mnframewidth = 1920;
- int mnframeheight = 1080;
- private:
- void threadframe();
- void threadpic();
- bool mbthreadrun = true;
- std::thread * mpthreadframe, * mpthreadpic;
- MyView * mmyview;
- QGraphicsScene * mpsceneImg;
- QImage * mpImageCam;
- bool mbCamUpdate;
- QMutex mMutexCam;
- public:
- void resizeEvent(QResizeEvent *event);
- };
- #endif // MAINWINDOW_H
|