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

Graph containing interconnected nodes through which media frames flow. More...

#include <graph.h>

Public Types

using frame_callback_function_type = void(time_unit t)
 

Public Member Functions

 ~graph ()
 
template<typename Filter , typename Node = sync_node, typename... Args>
Filter & add_filter (Args &&...args)
 
template<typename Filter , typename... Args>
Filter & add_sink_filter (Args &&...args)
 
bool was_setup () const
 
bool is_running () const
 
eventstop_event ()
 
void setup ()
 
void launch ()
 
void stop ()
 
time_unit current_time () const
 
void run_until (time_unit last_frame)
 
void run_for (time_unit duration)
 
bool run ()
 
void seek (time_unit target_time)
 

Public Attributes

std::function
< frame_callback_function_type
callback_function
 

Detailed Description

Graph containing interconnected nodes through which media frames flow.

Member Typedef Documentation

Constructor & Destructor Documentation

mf::flow::graph::~graph ( )

Member Function Documentation

template<typename Filter , typename Node = sync_node, typename... Args>
Filter& mf::flow::graph::add_filter ( Args &&...  args)
inline
template<typename Filter , typename... Args>
Filter& mf::flow::graph::add_sink_filter ( Args &&...  args)
inline
time_unit mf::flow::graph::current_time ( ) const
bool mf::flow::graph::is_running ( ) const
inline
void mf::flow::graph::launch ( )
bool mf::flow::graph::run ( )
void mf::flow::graph::run_for ( time_unit  duration)
void mf::flow::graph::run_until ( time_unit  last_frame)
void mf::flow::graph::seek ( time_unit  target_time)
void mf::flow::graph::setup ( )
void mf::flow::graph::stop ( )
event& mf::flow::graph::stop_event ( )
inline
bool mf::flow::graph::was_setup ( ) const
inline

Member Data Documentation

std::function<frame_callback_function_type> mf::flow::graph::callback_function

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