From fd034ae0402af90c84f80b37037a59dfbf880f4b Mon Sep 17 00:00:00 2001 From: chenshijun <csj_sky@126.com> Date: 星期四, 07 三月 2019 11:27:43 +0800 Subject: [PATCH] 修改LocalDataDB的字段 删除RecordVideo的东西 --- QiaoJiaSystem/VideoToImageMulth/RtspAnalysManager.h | 33 +++++++++++++++++++++++++-------- 1 files changed, 25 insertions(+), 8 deletions(-) diff --git a/QiaoJiaSystem/VideoToImageMulth/RtspAnalysManager.h b/QiaoJiaSystem/VideoToImageMulth/RtspAnalysManager.h index da8e966..d608547 100644 --- a/QiaoJiaSystem/VideoToImageMulth/RtspAnalysManager.h +++ b/QiaoJiaSystem/VideoToImageMulth/RtspAnalysManager.h @@ -9,23 +9,33 @@ #include <map> #include "RtspCaptureElement.h" #include "RtspImageRedis.h" -#include <VideoServer/QiaoJia/DB/LDBTool.h> +#include "../GB28181DecoderModel/VideoCaptureElementWithRtp.h" +//#include <VideoCaptureElementWithRtp.h> +#include <QiaoJia/DB/LDBTool.h> #include <basic/util/app/AppPreference.hpp> #include "RtspAnalysServer.h" +//#include <GB28181DecoderModel/VideoCaptureElementWithRtp.h> +//#include <VideoToImageMulth/rpc/RtspAnalysServer.h> -class RtspAnalysManager :public ::RtspAnalys::RtspAnalysServer{ +//using BASICGB28181::VideoCaptureElementWithRtp; + +//鐢ㄦ潵瀹炵幇recordVideo鐨凴PC鐨勬帴鍙g被 +class RtspAnalysManager : public ::RtspAnalys::RtspAnalysServer { public: - RtspAnalysManager():m_maxCount(50), m_currentCount(0){ - m_lDBTool=new LDBTool; + RtspAnalysManager() : m_maxCount(50), m_currentCount(0) { + m_lDBTool = new LDBTool; init(); } + RtspAnalysManager(LDBTool *_dbTool); - virtual ::std::string recordVideo(const ::std::string&, const ::Ice::Current& = ::Ice::emptyCurrent); + + virtual ::std::string recordVideo(const ::std::string &, const ::Ice::Current & = ::Ice::emptyCurrent); + virtual ~RtspAnalysManager(); - int addCamera(const std::string &, const std::string& rtsp); + int addCamera(const std::string &, const std::string &rtsp); int removeCamera(const std::string &); @@ -36,20 +46,27 @@ int getCurrentCamCount(); // 鏍规嵁camId淇濆瓨img鍒癛edis,img鐨凨ey涓篿mageName - bool SaveImageToRedis(const std::string& camId,const std::string& imageName,const cv::Mat& img); + bool SaveImageToRedis(const std::string &camId, const std::string &imageName, const cv::Mat &img); private: void init(); private: + RWLock m_imgRedisCRwLock; + LDBTool *m_lDBTool; + + int m_GB28181_Enable; //淇濆瓨CamID鍜孯tspCaptureElement鐨勬槧灏勫叧绯� std::map<std::string, RtspCaptureElement *> m_controllers; + //淇濆瓨CamID鍜孷ideoCaptureElementWithRtp鐨勬槧灏勫叧绯� + std::map<std::string, BASICGB28181::VideoCaptureElementWithRtp *> m_controllers_videoCapElem; + //淇濆瓨CamID鍜孯tspImageRedisElement鐨勬槧灏勫叧绯� - std::map<std::string, RtspImageRedisElement*> m_imgRedisControllers; + std::map<std::string, RtspImageRedisElement *> m_imgRedisControllers; //褰撳墠鎽勫儚澶寸殑鏁伴噺 int m_currentCount; // 鎽勫儚澶寸殑鏈�澶ф暟閲� -- Gitblit v1.8.0