派生自 development/c++

pansen
2019-03-07 d3b7bbe7102cd089680a828f5d8f6402c8cf6342
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef NEWENCODEVIDEO_H
#define NEWENCODEVIDEO_H
#include "HiredisTool.h"
#include <basic/pipe/PipeElement.h>
#include <basic/pipe_element/ffmpeg/FfmpegElement.h>
class NewEncodeVideo: public basic::PipeElement
{
public:
    NewEncodeVideo();
    ~NewEncodeVideo();
   void thisEncodeFunc();
   static void encodeFunc(void *arg);
 
   void setImageQue(std::queue<cv::Mat>& imgQue);
 
private:
    virtual void threadFunc()override;
private:
 
    std::queue<cv::Mat> m_imgQue;
     HiredisTool m_hiredisTool;
    ffmpeg::VideoEncodeElement videoEncoderElement;
};
 
#endif // NEWENCODEVIDEO_H