mf
Media Framework
|
Seekable frame importer, abstract base class. More...
#include <seekable_frame_importer.h>
Public Types | |
using | frame_view_type = ndarray_view< Dim, Elem > |
Public Types inherited from mf::frame_importer< Dim, Elem > | |
using | frame_view_type = ndarray_view< Dim, Elem > |
using | elem_type = Elem |
Public Member Functions | |
virtual time_unit | current_time () const =0 |
virtual time_unit | total_duration () const =0 |
virtual void | seek (time_unit)=0 |
void | read_frame_at (const frame_view_type &vw, time_unit t) |
Public Member Functions inherited from mf::frame_importer< Dim, Elem > | |
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 bool | is_seekable = true |
Static Public Attributes inherited from mf::frame_importer< Dim, Elem > | |
static constexpr std::size_t | dimension = Dim |
static constexpr bool | is_seekable = false |
Protected Member Functions | |
seekable_frame_importer (const ndsize< Dim > &frame_shape) | |
Protected Member Functions inherited from mf::frame_importer< Dim, Elem > | |
frame_importer (const ndsize< Dim > &frame_shape) | |
Seekable frame importer, abstract base class.
Can change position in file using seek(). Keeps track of absolute frame index (called current time). Total duration of file is known after construction.
using mf::frame_importer< Dim, Elem >::frame_view_type = ndarray_view<Dim, Elem> |
|
inlineprotected |
|
pure virtual |
Implemented in mf::yuv_importer.
|
inline |
|
pure virtual |
Implemented in mf::yuv_importer.
|
pure virtual |
Implemented in mf::yuv_importer.
|
static |