From ed7186f89434ff9a19a5abdce8252d69460677ee Mon Sep 17 00:00:00 2001 From: chenshijun <chenshijun@aiotlink.com> Date: 星期五, 15 三月 2019 13:50:04 +0800 Subject: [PATCH] 将算法的进程以多进程方式启动 --- QiaoJiaSystem/GB28181DecoderModel/VideoCaptureElementWithRtp.h | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/QiaoJiaSystem/GB28181DecoderModel/VideoCaptureElementWithRtp.h b/QiaoJiaSystem/GB28181DecoderModel/VideoCaptureElementWithRtp.h index a4fa33b..77751c3 100644 --- a/QiaoJiaSystem/GB28181DecoderModel/VideoCaptureElementWithRtp.h +++ b/QiaoJiaSystem/GB28181DecoderModel/VideoCaptureElementWithRtp.h @@ -8,16 +8,19 @@ #include "FFmpegDecoderJPG.h" #include "28181SDK.h" #include <basic/pipe/PipeElement.h> -#include "GlobalSignalWaitLock.hpp" +//#include <RtspAnalysManager.h> +//#include <VideoToImageMulth/RtspAnalysManager.h> + +class RtspAnalysManager; namespace BASICGB28181 { class VideoCaptureElementWithRtp : public basic::PipeElement { public: - explicit VideoCaptureElementWithRtp(std::string &chanPubID, int fps, int streamTransType, int gpuIdx = -1); + explicit VideoCaptureElementWithRtp(std::string &chanPubID, int fps, int streamTransType, int gpuIdx = -1, + RtspAnalysManager *manager = nullptr); virtual ~VideoCaptureElementWithRtp(); - /*** * 鑾峰彇褰撳墠瀹炴椂娴佹帴鏀舵暟鎹嚎绋嬭繍琛岀姸鎬� @@ -47,6 +50,7 @@ FFmpegDecoderJPG m_fFmpegDecoderJPG; cv::Mat m_image; long m_userdata; + RtspAnalysManager *m_pManager; std::atomic<bool> m_running; std::atomic<bool> m_waitSignal; -- Gitblit v1.8.0