mf
Media Framework
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | List of all members
mf::flow::filter_node Class Referenceabstract

Node which delegates concrete frame processing to associated filter object. More...

#include <filter_node.h>

Inheritance diagram for mf::flow::filter_node:
mf::flow::node mf::flow::async_node mf::flow::sink_node mf::flow::sync_node

Public Member Functions

 filter_node (graph &gr)
 
 ~filter_node ()
 
template<typename Filter , typename... Args>
Filter & set_filter (Args &&...args)
 
filterthis_filter ()
 
const filterthis_filter () const
 
virtual node_inputadd_input (time_unit past_window, time_unit future_window)=0
 
virtual node_outputadd_output (const frame_format &format)=0
 
- Public Member Functions inherited from mf::flow::node
virtual ~node ()
 
graphthis_graph () noexcept
 
void define_source_stream_properties (bool seekable, time_unit stream_duration=-1)
 
void set_prefetch_duration (time_unit)
 
const auto & inputs () noexcept
 
const auto & outputs () noexcept
 
bool is_source () const noexcept
 
bool is_sink () const noexcept
 
virtual void internal_setup ()=0
 Called by propagate_setup_. More...
 
virtual void launch ()=0
 Called by graph for all nodes, before any frame is pulled from sink. More...
 
virtual void stop ()=0
 Called by graph for all node, before destruction of any node. More...
 
virtual bool process_next_frame ()=0
 
time_unit end_time () const noexcept
 
bool reached_end () const noexcept
 
bool was_setup () const noexcept
 
time_unit prefetch_duration () const noexcept
 
time_unit offset () const noexcept
 
bool stream_duration_is_defined () const noexcept
 
time_unit stream_duration () const noexcept
 
bool is_seekable () const noexcept
 
bool is_bounded () const
 
bool is_active () const noexcept
 
void update_activation ()
 Called by output, propagates to preceding nodes. More...
 
time_unit current_time () const noexcept
 

Protected Member Functions

void setup_filter ()
 
void pre_process_filter (node_job &)
 
void process_filter (node_job &)
 
- Protected Member Functions inherited from mf::flow::node
 node (graph &gr)
 
 node (const node &)=delete
 
nodeoperator= (const node &)=delete
 
void setup_sink ()
 Called by sink node, runs set up procedure for all node in graph. More...
 
void set_current_time (time_unit t) noexcept
 
void mark_end ()
 
node_job make_job ()
 
void cancel_job (node_job &)
 
template<typename Input >
Input & add_input_ (time_unit past_window, time_unit future_window)
 
template<typename Output >
Output & add_output_ (const frame_format &format)
 

Additional Inherited Members

- Public Attributes inherited from mf::flow::node
std::string name
 

Detailed Description

Node which delegates concrete frame processing to associated filter object.

Constructor & Destructor Documentation

mf::flow::filter_node::filter_node ( graph gr)
mf::flow::filter_node::~filter_node ( )

Member Function Documentation

virtual node_input& mf::flow::filter_node::add_input ( time_unit  past_window,
time_unit  future_window 
)
pure virtual
virtual node_output& mf::flow::filter_node::add_output ( const frame_format format)
pure virtual
void mf::flow::filter_node::pre_process_filter ( node_job job)
protected
void mf::flow::filter_node::process_filter ( node_job job)
protected
template<typename Filter , typename... Args>
Filter& mf::flow::filter_node::set_filter ( Args &&...  args)
inline
void mf::flow::filter_node::setup_filter ( )
protected
filter& mf::flow::filter_node::this_filter ( )
inline
const filter& mf::flow::filter_node::this_filter ( ) const
inline

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