#include "NewRecordVideoElement.h" #include //#todo index int -> string NewRecordVideoElement::NewRecordVideoElement(std::string camid) : videoEncoderElement(cv::Size(1920, 1080), 8, 0), camID(camid) { // basicPath(); m_cutPath = appPref.getStringData("user.loop.absolute.path"); } NewRecordVideoElement::~NewRecordVideoElement() { std::queue empty; empty.swap(m_imgBufQue); //m_imgBufQue.clear(); } std::string NewRecordVideoElement::startRecord() { // ImgInfo info=m_HiredisTool.getImage(camID); ImgInfo info; getImg(info); std::string srcPath = getFileName(info.time); // DBG("fisrt fps time"<= fileMin / 2) { sdkTrigger = false; } else { sdkTrigger = true; } } } void NewRecordVideoElement::recordInit(int videoMin, int videoMax) { sdkTrigger = false; fileMin = videoMin; fileMax = videoMax; triggerDelay = fileMin / 2; recordStatus = RECORD_STOP; videoLength = 0; recordDelay = 0; }