#include "NewRecordVideoElement.h" #include //#todo index int -> string NewRecordVideoElement::NewRecordVideoElement(std::string camid) : videoEncoderElement(cv::Size(1920, 1080), 9, 0), camID(camid) { // basicPath(); m_cutPath= appPref.getStringData("user.loop.absolute.path"); } NewRecordVideoElement::~NewRecordVideoElement() { m_imgBufQue.clear(); } std::string NewRecordVideoElement::startRecord() { // ImgInfo info=m_HiredisTool.getImage(camID); ImgInfo info; getImg(info); std::string srcPath= getFileName(info.time); try { videoEncoderElement.threadInitial(srcPath, info.img); } catch (std::exception &e) { ERR(e.what()) } return srcPath; } void NewRecordVideoElement::endRecord() { ImgInfo info; getImg(info); videoEncoderElement.threadClosing(); } void NewRecordVideoElement::doRecord() { // ImgInfo info=m_HiredisTool.getImage(camID); ImgInfo info; getImg(info); DBG(" time="<