OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
videoSaver.hpp
Go to the documentation of this file.
1 #ifndef OPENPOSE_FILESTREAM_VIDEO_SAVER_HPP
2 #define OPENPOSE_FILESTREAM_VIDEO_SAVER_HPP
3 
5 
6 namespace op
7 {
9  {
10  public:
12  const std::string& videoSaverPath, const int cvFourcc, const double fps,
13  const std::string& addAudioFromThisVideo = "");
14 
15  virtual ~VideoSaver();
16 
17  bool isOpened();
18 
19  void write(const Matrix& matToSave);
20 
21  void write(const std::vector<Matrix>& matsToSave);
22 
23  private:
24  // PIMPL idiom
25  // http://www.cppsamples.com/common-tasks/pimpl.html
26  struct ImplVideoSaver;
27  std::unique_ptr<ImplVideoSaver> upImpl;
28 
30  };
31 }
32 
33 #endif // OPENPOSE_FILESTREAM_VIDEO_SAVER_HPP
VideoSaver(const std::string &videoSaverPath, const int cvFourcc, const double fps, const std::string &addAudioFromThisVideo="")
void write(const std::vector< Matrix > &matsToSave)
void write(const Matrix &matToSave)
virtual ~VideoSaver()
#define OP_API
Definition: macros.hpp:18
#define DELETE_COPY(className)
Definition: macros.hpp:32