From 9f08028f23d9e5cbfa159bec1e07d63b141a6809 Mon Sep 17 00:00:00 2001 From: zhangjixing <775834166@qq.com> Date: 星期五, 18 一月 2019 10:17:00 +0800 Subject: [PATCH] --- QiaoJiaSystem/StructureApp/NewRecordVideoElement.h | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/QiaoJiaSystem/StructureApp/NewRecordVideoElement.h b/QiaoJiaSystem/StructureApp/NewRecordVideoElement.h index 17a40f9..dc35006 100644 --- a/QiaoJiaSystem/StructureApp/NewRecordVideoElement.h +++ b/QiaoJiaSystem/StructureApp/NewRecordVideoElement.h @@ -1,6 +1,6 @@ #ifndef NEWRECORDVIDEOELEMENT_H #define NEWRECORDVIDEOELEMENT_H -#include <basic/pipe/PipeElement.h> +//#include <basic/pipe/PipeElement.h> #include <basic/pipe_element/ffmpeg/FfmpegElement.h> #include "HiredisTool.h" //struct ImgInfo @@ -8,7 +8,7 @@ // std::string time; // cv::Mat img; //}; -class NewRecordVideoElement : public basic::PipeElement{ +class NewRecordVideoElement { public: @@ -20,9 +20,9 @@ void setSdkTrigger(bool isTrigger); void pushImgBuf(const std::string& time,cv::Mat& img); -private: - virtual void threadFunc() override; - virtual void threadInitial() override; +//private: +// virtual void threadFunc() override; +// virtual void threadInitial() override; private: void recordInit(int videoMin, int videoMax); void Record(); @@ -53,6 +53,7 @@ std::queue<ImgInfo> m_imgBufQue; HiredisTool m_hiredisTool; std::string m_filename; + bool isRecord; }; #endif // RECORDVIDEOELEMENT_H -- Gitblit v1.8.0