| | |
| | | #include <qt5/QtCore/QDateTime> |
| | | #include <basic/util/app/AppPreference.hpp> |
| | | #include "VideoCaptureElementWithRtp.h" |
| | | #include <VideoToImageMulth/RtspAnalysManager.h> |
| | | |
| | | //std::string BASICGB28181::VideoCaptureElementWithRtp::m_chanPubID; |
| | | //BASICGB28181::FFmpegDecoderJPG BASICGB28181::VideoCaptureElementWithRtp::m_fFmpegDecoderJPG; |
| | | |
| | | BASICGB28181::VideoCaptureElementWithRtp::VideoCaptureElementWithRtp(std::string &chanPubID, int fps, |
| | | int streamTransType, |
| | | int gpuIdx) : m_chanPubID(chanPubID), m_fps(fps), |
| | | m_running(false), |
| | | m_waitSignal(false), |
| | | m_streamTransType(streamTransType), |
| | | m_gpuIdx(gpuIdx), |
| | | m_userdata((long) this) { |
| | | int gpuIdx, RtspAnalysManager *manager) |
| | | : m_chanPubID(chanPubID), m_fps(fps), m_running(false), |
| | | m_waitSignal(false), m_streamTransType(streamTransType), |
| | | m_gpuIdx(gpuIdx), m_userdata((long) this), m_pManager(manager) { |
| | | // m_chanPubID = chanPubID; |
| | | |
| | | m_cutPath = appPref.getStringData("user.loop.absolute.path"); |
| | |
| | | cv::Mat copyMat; |
| | | std::string imageName = p_this->m_fFmpegDecoderJPG.GetImageName(); |
| | | p_this->m_image.copyTo(copyMat); |
| | | // m_pManager->SaveImageToRedis(m_camId, imageName, copyMat); |
| | | m_pManager->SaveImageToRedis(p_this->m_chanPubID, imageName, copyMat); |
| | | } |
| | | p_this->submit(); |
| | | } |