49 Star 456 Fork 214

007lz / FFmpeg-QT实现摄像头rtsp实时显示

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mainwindow.h 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
lizhen 提交于 2024-02-27 10:58 . 规范注释
/**
* 李震
* 我的码云:https://git.oschina.net/git-lizhen
* 我的CSDN博客:http://blog.csdn.net/weixin_38215395
* 联系:QQ1039953685
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QImage>
#include <QPaintEvent>
#include <QWidget>
#include <QtDebug>
#include <QtConcurrent/qtconcurrentrun.h>
#include "videoplayer.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
//QImage Indentificate(QImage img); //显示二值图像,2017.10.10
protected:
void paintEvent(QPaintEvent *event);
private:
Ui::MainWindow *ui;
VideoPlayer *mPlayer; //播放线程
QImage mImage; //记录当前的图像
QImage R_mImage;
QString url;
bool open_red=false;
private slots:
void slotGetOneFrame(QImage img);
void slotGetRFrame(QImage img);
bool slotOpenRed();
bool slotCloseRed();
};
#endif // MAINWINDOW_H
C++
1
https://gitee.com/git-lz/FFmpeg-QT-rtsp.git
git@gitee.com:git-lz/FFmpeg-QT-rtsp.git
git-lz
FFmpeg-QT-rtsp
FFmpeg-QT实现摄像头rtsp实时显示
master

搜索帮助