mf
Media Framework
|
Frame exporter which writes video file. More...
#include <video_exporter.h>
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) | |
Frame exporter which writes video file.
Uses OpenCV VideoWriter
.
mf::video_exporter::video_exporter | ( | const std::string & | filename, |
const ndsize< 2 > & | frame_shape, | ||
float | frame_rate = 25.0 , |
||
const std::string & | format = "mp4v" |
||
) |
|
overridevirtual |
Reimplemented from mf::frame_exporter< 2, rgb_color >.
|
override |