mf
Media Framework
|
Frame importer, abstract base class. More...
#include <frame_importer.h>
Public Types | |
using | frame_view_type = ndarray_view< Dim, Elem > |
using | elem_type = Elem |
Public Member Functions | |
virtual | ~frame_importer () |
const ndsize< Dim > & | frame_shape () |
virtual void | read_frame (const frame_view_type &)=0 |
virtual bool | reached_end () const =0 |
Static Public Attributes | |
static constexpr std::size_t | dimension = Dim |
static constexpr bool | is_seekable = false |
Protected Member Functions | |
frame_importer (const ndsize< Dim > &frame_shape) | |
Frame importer, abstract base class.
Each frame is an ndarray<Dim, Elem> with fixed shape. Frames are read sequentially with read_frame(), and reached_end() becomes true when after last frame was read.
using mf::frame_importer< Dim, Elem >::elem_type = Elem |
using mf::frame_importer< Dim, Elem >::frame_view_type = ndarray_view<Dim, Elem> |
|
inlineprotected |
|
inlinevirtual |
|
inline |
|
pure virtual |
Implemented in mf::yuv_importer.
|
pure virtual |
|
static |
|
static |