mf
Media Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
mf::yuv_importer Class Reference

Seekable frame importer which reads YUV file. More...

#include <yuv_importer.h>

Inheritance diagram for mf::yuv_importer:
mf::seekable_frame_importer< 2, ycbcr_color > mf::frame_importer< Dim, ycbcr_color >

Public Member Functions

 yuv_importer (const std::string &filename, const ndsize< 2 > &frame_shape, int sampling)
 
void read_frame (const ndarray_view< 2, ycbcr_color > &) override
 
bool reached_end () const override
 
time_unit current_time () const override
 
time_unit total_duration () const override
 
void seek (time_unit) override
 
- Public Member Functions inherited from mf::seekable_frame_importer< 2, ycbcr_color >
void read_frame_at (const frame_view_type &vw, time_unit t)
 
- Public Member Functions inherited from mf::frame_importer< Dim, ycbcr_color >
virtual ~frame_importer ()
 
const ndsize< Dim > & frame_shape ()
 
virtual void read_frame (const frame_view_type &)=0
 

Additional Inherited Members

- Public Types inherited from mf::seekable_frame_importer< 2, ycbcr_color >
using frame_view_type = ndarray_view< Dim, ycbcr_color >
 
- Public Types inherited from mf::frame_importer< Dim, ycbcr_color >
using frame_view_type = ndarray_view< Dim, ycbcr_color >
 
using elem_type = ycbcr_color
 
- Static Public Attributes inherited from mf::seekable_frame_importer< 2, ycbcr_color >
static constexpr bool is_seekable
 
- Static Public Attributes inherited from mf::frame_importer< Dim, ycbcr_color >
static constexpr std::size_t dimension
 
static constexpr bool is_seekable
 
- Protected Member Functions inherited from mf::seekable_frame_importer< 2, ycbcr_color >
 seekable_frame_importer (const ndsize< Dim > &frame_shape)
 
- Protected Member Functions inherited from mf::frame_importer< Dim, ycbcr_color >
 frame_importer (const ndsize< Dim > &frame_shape)
 

Detailed Description

Seekable frame importer which reads YUV file.

Constructor & Destructor Documentation

mf::yuv_importer::yuv_importer ( const std::string &  filename,
const ndsize< 2 > &  frame_shape,
int  sampling 
)

Member Function Documentation

time_unit mf::yuv_importer::current_time ( ) const
overridevirtual
bool mf::yuv_importer::reached_end ( ) const
overridevirtual
void mf::yuv_importer::read_frame ( const ndarray_view< 2, ycbcr_color > &  out)
override
void mf::yuv_importer::seek ( time_unit  t)
overridevirtual
time_unit mf::yuv_importer::total_duration ( ) const
overridevirtual

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