mf
Media Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
mf::seekable_frame_importer< Dim, Elem > Class Template Referenceabstract

Seekable frame importer, abstract base class. More...

#include <seekable_frame_importer.h>

Inheritance diagram for mf::seekable_frame_importer< Dim, Elem >:
mf::frame_importer< Dim, Elem >

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)
 

Detailed Description

template<std::size_t Dim, typename Elem>
class mf::seekable_frame_importer< Dim, Elem >

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.

Member Typedef Documentation

template<std::size_t Dim, typename Elem>
using mf::frame_importer< Dim, Elem >::frame_view_type = ndarray_view<Dim, Elem>

Constructor & Destructor Documentation

template<std::size_t Dim, typename Elem>
mf::seekable_frame_importer< Dim, Elem >::seekable_frame_importer ( const ndsize< Dim > &  frame_shape)
inlineprotected

Member Function Documentation

template<std::size_t Dim, typename Elem>
virtual time_unit mf::seekable_frame_importer< Dim, Elem >::current_time ( ) const
pure virtual

Implemented in mf::yuv_importer.

template<std::size_t Dim, typename Elem>
void mf::seekable_frame_importer< Dim, Elem >::read_frame_at ( const frame_view_type vw,
time_unit  t 
)
inline
template<std::size_t Dim, typename Elem>
virtual void mf::seekable_frame_importer< Dim, Elem >::seek ( time_unit  )
pure virtual

Implemented in mf::yuv_importer.

template<std::size_t Dim, typename Elem>
virtual time_unit mf::seekable_frame_importer< Dim, Elem >::total_duration ( ) const
pure virtual

Implemented in mf::yuv_importer.

Member Data Documentation

template<std::size_t Dim, typename Elem>
constexpr bool mf::seekable_frame_importer< Dim, Elem >::is_seekable = true
static

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