| | |
| | | |
| | | // basicPath(); |
| | | m_cutPath= appPref.getStringData("user.loop.absolute.path"); |
| | | recordInit(60,360); |
| | | |
| | | recordInit(appPref.getIntData("n_cut_min_duration"),appPref.getIntData("n_cut_max_duration")); |
| | | } |
| | | |
| | | NewRecordVideoElement::~NewRecordVideoElement() { |
| | |
| | | getImg(info); |
| | | std::string srcPath= getFileName(info.time); |
| | | m_filename=srcPath; |
| | | DBG("m_filename: " << m_filename); |
| | | // DBG("m_filename: " << m_filename); |
| | | |
| | | m_hiredisTool.pushImageBuf(m_filename,info.img); |
| | | m_hiredisTool.addFileInfo(m_filename,RECORD_DOING); |
| | |
| | | QDateTime dt = QDateTime::fromString(QString::fromStdString(timeStamp), "yyyy-MM-dd hh:mm:ss:zzz"); |
| | | |
| | | std::string t_strTime=dt.toString("yyyyMMddhh").toStdString(); |
| | | DBG("t_strTime="<<t_strTime); |
| | | // DBG("t_strTime="<<t_strTime); |
| | | t_FilePath.append(camID + "/" + t_strTime.substr(0, 6)+ "/" +t_strTime.substr(6, 2) + "/"); |
| | | //YYYYMMDDHH |
| | | t_FilePath.append(t_strTime.substr(0,10)+ "/"); |
| | |
| | | void NewRecordVideoElement::recordInit(int videoMin, int videoMax) { |
| | | |
| | | sdkTrigger = false; |
| | | fileMin = videoMin; |
| | | fileMax = videoMax; |
| | | fileMin = videoMin*8;//fps=8 |
| | | fileMax = videoMax*8; |
| | | triggerDelay = fileMin/2; |
| | | |
| | | recordStatus = RECORD_STOP; |