#ifndef NEWRECORDVIDEOELEMENT_H
|
#define NEWRECORDVIDEOELEMENT_H
|
|
#include <basic/pipe_element/ffmpeg/FfmpegElement.h>
|
struct ImgInfo
|
{
|
std::string time;
|
cv::Mat img;
|
};
|
class NewRecordVideoElement {
|
|
public:
|
|
NewRecordVideoElement(){}
|
NewRecordVideoElement(std::string camid);
|
|
~NewRecordVideoElement();
|
|
std::string startRecord();
|
|
void doRecord();
|
|
void endRecord();
|
|
void pushImgBuf(const std::string& time,cv::Mat img);
|
|
void getImg(ImgInfo& info);
|
|
private:
|
std::string getFileName(std::string timeStamp);
|
std::string makeDir();
|
ffmpeg::VideoEncodeElement videoEncoderElement;
|
std::string camID;
|
std::string m_cutPath;
|
std::list<ImgInfo> m_imgBufQue;
|
};
|
|
#endif // RECORDVIDEOELEMENT_H
|