当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 214

zhu126fang / FFmpeg-QT实现摄像头rtsp实时显示
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mainwindow.h 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
/**
* 李震
* 我的码云: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; //2017.8.11---lizhen
QString url;
bool open_red=false;
private slots:
void slotGetOneFrame(QImage img);
void slotGetRFrame(QImage img); //2017.8.11---lizhen
bool slotOpenRed(); //2017.8.12---lizhen
bool slotCloseRed(); //2017.8.12
};
#endif // MAINWINDOW_H
C++
1
https://gitee.com/zhu126fang/FFmpeg-QT-rtsp.git
git@gitee.com:zhu126fang/FFmpeg-QT-rtsp.git
zhu126fang
FFmpeg-QT-rtsp
FFmpeg-QT实现摄像头rtsp实时显示
master

搜索帮助