From 25928e3093a7c0257128192d7785ec3f74e89e81 Mon Sep 17 00:00:00 2001 From: pans <pansen626@sina.com> Date: 星期六, 30 三月 2019 12:46:20 +0800 Subject: [PATCH] 添加注释 --- QiaoJiaSystem/GB28181DecoderModel/VideoCaptureElementWithRtp.h | 26 ++++++++++++++++++++++---- 1 files changed, 22 insertions(+), 4 deletions(-) diff --git a/QiaoJiaSystem/GB28181DecoderModel/VideoCaptureElementWithRtp.h b/QiaoJiaSystem/GB28181DecoderModel/VideoCaptureElementWithRtp.h index a4fa33b..4722443 100644 --- a/QiaoJiaSystem/GB28181DecoderModel/VideoCaptureElementWithRtp.h +++ b/QiaoJiaSystem/GB28181DecoderModel/VideoCaptureElementWithRtp.h @@ -8,16 +8,27 @@ #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); + /*** + * VideoCaptureElementWithRtp 瑙嗛瑙g爜 + * @param chanPubID 閫氶亾鍦�(鎽勫儚鏈篿d) + * @param fps + * @param streamTransType 璇锋眰鐨勮棰戞祦绫诲瀷 + * @param gpuIdx gpuindex + * @param manager 涓婂眰绫荤殑鎸囬拡 + */ + explicit VideoCaptureElementWithRtp(std::string &chanPubID, int fps, int streamTransType, int gpuIdx = -1, + RtspAnalysManager *manager = nullptr); virtual ~VideoCaptureElementWithRtp(); - /*** * 鑾峰彇褰撳墠瀹炴椂娴佹帴鏀舵暟鎹嚎绋嬭繍琛岀姸鎬� @@ -25,6 +36,11 @@ */ bool getRunning(); + + /*** + * 鑾峰彇鍥剧墖 + * @return + */ cv::Mat getImage(); //淇濆瓨瑙嗛鎺ュ彛,浠嶳tspAnalysManager鍙戣捣璋冪敤 @@ -37,6 +53,7 @@ std::string MakeDir(const std::string &timeStamp); private: + int reopenTime{1000}; int m_gpuIdx; int m_fps; int m_streamTransType; @@ -47,6 +64,7 @@ FFmpegDecoderJPG m_fFmpegDecoderJPG; cv::Mat m_image; long m_userdata; + RtspAnalysManager *m_pManager; std::atomic<bool> m_running; std::atomic<bool> m_waitSignal; @@ -69,7 +87,7 @@ /*** - * rtp缁勫寘鍥炶皟鍑芥暟 + * GB28181 SDK rtp缁勫寘鍥炶皟鍑芥暟 * @param handle * @param datatype * @param frametype -- Gitblit v1.8.0