mf
Media Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
mf::video_exporter Class Reference

Frame exporter which writes video file. More...

#include <video_exporter.h>

Inheritance diagram for mf::video_exporter:
mf::frame_exporter< 2, rgb_color >

Public Member Functions

 video_exporter (const std::string &filename, const ndsize< 2 > &frame_shape, float frame_rate=25.0, const std::string &format="mp4v")
 
void write_frame (const ndarray_view< 2, rgb_color > &) override
 
void close () override
 
- Public Member Functions inherited from mf::frame_exporter< 2, rgb_color >
virtual ~frame_exporter ()
 
const ndsize< Dim > & frame_shape ()
 
virtual void write_frame (const frame_view_type &)=0
 

Additional Inherited Members

- Public Types inherited from mf::frame_exporter< 2, rgb_color >
using frame_view_type = ndarray_view< Dim, rgb_color >
 
using elem_type = rgb_color
 
- Static Public Attributes inherited from mf::frame_exporter< 2, rgb_color >
static constexpr std::size_t dimension
 
- Protected Member Functions inherited from mf::frame_exporter< 2, rgb_color >
 frame_exporter (const ndsize< Dim > &frame_shape)
 

Detailed Description

Frame exporter which writes video file.

Uses OpenCV VideoWriter.

Constructor & Destructor Documentation

mf::video_exporter::video_exporter ( const std::string &  filename,
const ndsize< 2 > &  frame_shape,
float  frame_rate = 25.0,
const std::string &  format = "mp4v" 
)

Member Function Documentation

void mf::video_exporter::close ( )
overridevirtual
void mf::video_exporter::write_frame ( const ndarray_view< 2, rgb_color > &  vw)
override

The documentation for this class was generated from the following files: