1 Star 0 Fork 0

qinxude/rk3568ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
networkcamerachannel1.h 2.14 KB
一键复制 编辑 原始数据 按行查看 历史
qinxude 提交于 2024-09-03 09:38 . 3568ui base
#ifndef NETWORKCAMERACHANNEL1_H
#define NETWORKCAMERACHANNEL1_H
#include <QWidget>
#include <QTimer>
#include <QImage>
#include <QDebug>
#include <QThread>
#include <QLabel>
#include <QTimer>
#include <QRegExpValidator>
#include "MyFFmpeg.h"
#include "RTSP_Player.h"
#include "datadictionary.h"
#include "infoshowlabel.h"
#include "fullscreenbutton.h"
#include "viewlist.h"
typedef struct {
QString passWord ;
QString userName;
QString ip ;
QString port ;
QString path ;
QString url ;
} NetWorkCameraInfo;
namespace Ui {
class NetWorkCameraChannel1;
}
class NetWorkCameraChannel1 : public QWidget
{
Q_OBJECT
public:
explicit NetWorkCameraChannel1(NetWorkCameraInfo netWorkCameraInfo,QWidget *parent = nullptr);
// static NetWorkCameraChannel1* GetInstance();
~NetWorkCameraChannel1();
void Show(QWidget *parent,int ax = 0, int ay = 0);
void ShowCentre();
void HideCentre();
ViewList* getViewList();
signals:
void swapScreensButtonClicked();
void fullScreenButtonClicked();
void exitFullScreenClicked();
protected:
virtual void resizeEvent(QResizeEvent *event);
void paintEvent(QPaintEvent *event) override;
private slots:
void NetCameraShow(QImage Img);
void PlayerStatus(int Sta);
void PicLabelRepaint();
void SystemDataChangeProcess(SystemDataIndex_t);
void MisDataChange(MisDataIndex_t Index);
void DisconnectDisplay();
void on_pushButton_clicked();
void on_pushButton_2_clicked();
void on_m_pBtnExitFullScreen_clicked();
private:
// explicit NetWorkCameraChannel1(QWidget *parent = nullptr);
void BuildUrl();
QString UrlGetIp(QString Str);
private:
Ui::NetWorkCameraChannel1 *ui;
DataDictionary *m_DataDictionary;
NetWorkCameraInfo m_netWorkCameraInfo;
QTimer *m_Player;
MyFFmpeg *m_MyFFmpeg;
QString m_Url;
RTSP_Player *m_RtspPlayer;
QThread *m_playThread;
QTimer *m_RepaintTimer;
QTimer *m_DisconnectTimer;
InfoShowLabel *m_InfoShowLabel;
FullScreenButton *m_FullScreenButton;
int32_t m_DisplayInterval;
bool m_Shoting;
ViewList* m_viewList;
};
#endif // NETWORKCAMERACHANNEL1_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/qinxude/rk3568ui.git
[email protected]:qinxude/rk3568ui.git
qinxude
rk3568ui
rk3568ui
master

搜索帮助