173#if defined(VISP_HAVE_OPENCV) && \
174 (((VISP_HAVE_OPENCV_VERSION < 0x030000) && defined(HAVE_OPENCV_HIGHGUI)) || \
175 ((VISP_HAVE_OPENCV_VERSION >= 0x030000) && defined(HAVE_OPENCV_VIDEOIO)))
176 cv::VideoWriter m_writer;
195 vpVideoFormatType m_formatType;
198 std::string m_videoName;
199 std::string m_frameName;
214 unsigned int m_width;
215 unsigned int m_height;
248#if defined(VISP_HAVE_OPENCV) && \
249 (((VISP_HAVE_OPENCV_VERSION < 0x030000) && defined(HAVE_OPENCV_HIGHGUI)) || \
250 ((VISP_HAVE_OPENCV_VERSION >= 0x030000) && defined(HAVE_OPENCV_VIDEOIO)))
251 inline void setCodec(
const int fourcc_codec) { m_fourcc = fourcc_codec; }
254 void setFileName(
const std::string &filename);
255 void setFirstFrameIndex(
int first_frame);
266#if defined(VISP_HAVE_OPENCV) && \
267 (((VISP_HAVE_OPENCV_VERSION < 0x030000) && defined(HAVE_OPENCV_HIGHGUI)) || \
268 ((VISP_HAVE_OPENCV_VERSION >= 0x030000) && defined(HAVE_OPENCV_VIDEOIO)))
269 inline void setFramerate(
const double framerate) { m_framerate = framerate; }
271 inline void setFramerate(
const double dummy) { (void)dummy; }
277 inline void setFrameStep(
const int frame_step) { m_frameStep = frame_step; }
280 vpVideoFormatType getFormat(
const std::string &filename);
281 static std::string getExtension(
const std::string &filename);