Source

bias / src / gui / video_writer.hpp

Full commit
#ifndef BIAS_VIDEO_WRITER_HPP
#define BIAS_VIDEO_WRITER_HPP
#include "stamped_image.hpp"
#include <QString>
#include <opencv2/core/core.hpp>
//#include <opencv2/core/types_c.h>

namespace bias
{
    class VideoWriter
    {
        public:

            VideoWriter(); 
            explicit VideoWriter(QString fileName);
            virtual ~VideoWriter();
            virtual void setFileName(QString fileName);
            virtual void setSize(cv::Size size);
            virtual void addFrame(StampedImage stampedImg);

        protected:

            cv::Size size_;
            QString fileName_;
            unsigned long frameCount_;
    };

} // namespace bias

#endif // #ifndef BIAS_VIDEO_WRITER_HPP