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 > |
![]() | |
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) |
![]() | |
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 constexpr std::size_t | dimension = Dim |
static constexpr bool | is_seekable = false |
Protected Member Functions | |
seekable_frame_importer (const ndsize< Dim > &frame_shape) | |
![]() | |
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 |