1 #ifndef OPENPOSE_FILESTREAM_W_VIDEO_SAVER_HPP
2 #define OPENPOSE_FILESTREAM_W_VIDEO_SAVER_HPP
10 template<
typename TDatums>
14 explicit WVideoSaver(
const std::shared_ptr<VideoSaver>& videoSaver);
21 std::shared_ptr<VideoSaver> spVideoSaver;
35 template<
typename TDatums>
37 spVideoSaver{videoSaver}
41 template<
typename TDatums>
46 template<
typename TDatums>
58 auto& tDatumsNoPtr = *tDatums;
60 std::vector<cv::Mat> cvOutputDatas(tDatumsNoPtr.size());
61 for (
auto i = 0u ; i < cvOutputDatas.size() ; i++)
62 cvOutputDatas[i] = tDatumsNoPtr[i].cvOutputData;
63 spVideoSaver->write(cvOutputDatas);
71 catch (
const std::exception& e)
74 error(e.what(), __LINE__, __FUNCTION__, __FILE__);
81 #endif // OPENPOSE_FILESTREAM_W_VIDEO_SAVER_HPP
Definition: workerConsumer.hpp:10
WVideoSaver(const std::shared_ptr< VideoSaver > &videoSaver)
Definition: wVideoSaver.hpp:36
static const std::string timerInit(const int line, const std::string &function, const std::string &file)
void workConsumer(const TDatums &tDatums)
Definition: wVideoSaver.hpp:47
OP_API void error(const std::string &message, const int line=-1, const std::string &function="", const std::string &file="")
void initializationOnThread()
Definition: wVideoSaver.hpp:42
Definition: wVideoSaver.hpp:11
void dLog(const T &message, const Priority priority=Priority::Max, const int line=-1, const std::string &function="", const std::string &file="")
Definition: errorAndLog.hpp:53
bool checkNoNullNorEmpty(const TPointerContainer &tPointerContainer)
Definition: pointerContainer.hpp:7
static void printAveragedTimeMsOnIterationX(const std::string &key, const int line, const std::string &function, const std::string &file, const unsigned long long x=DEFAULT_X)
COMPILE_TEMPLATE_DATUM(WPoseTriangulation)
static void timerEnd(const std::string &key)