MCPcopy Create free account
hub / github.com/Smorodov/Multitarget-tracker / WriteFrame

Method WriteFrame

example/VideoExample.cpp:713–727  ·  view source on GitHub ↗

\brief VideoExample::WriteFrame \param writer \param frame \return

Source from the content-addressed store, hash-verified

711/// \return
712///
713bool VideoExample::WriteFrame(cv::VideoWriter& writer, const cv::Mat& frame)
714{
715 if (!m_outFile.empty())
716 {
717 if (!writer.isOpened())
718 writer.open(m_outFile, m_fourcc, m_fps, frame.size(), true);
719
720 if (writer.isOpened())
721 {
722 writer << frame;
723 return true;
724 }
725 }
726 return false;
727}

Callers

nothing calls this directly

Calls 3

openMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected