mf
Media Framework
|
Sink node base class. More...
#include <sink_node.h>
Public Member Functions | |
sink_node (graph &gr) | |
void | internal_setup () finaloverride |
Called by propagate_setup_. More... | |
void | launch () finaloverride |
Called by graph for all nodes, before any frame is pulled from sink. More... | |
void | stop () finaloverride |
Called by graph for all node, before destruction of any node. More... | |
bool | process_next_frame () finaloverride |
void | setup_graph () |
void | pull (time_unit t) |
void | pull_next_frame () |
void | seek (time_unit t) |
node_input & | add_input (time_unit past_window, time_unit future_window) override |
node_output & | add_output (const frame_format &format) override |
Public Member Functions inherited from mf::flow::filter_node | |
filter_node (graph &gr) | |
~filter_node () | |
template<typename Filter , typename... Args> | |
Filter & | set_filter (Args &&...args) |
filter & | this_filter () |
const filter & | this_filter () const |
Public Member Functions inherited from mf::flow::node | |
virtual | ~node () |
graph & | this_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 |
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 |
Additional Inherited Members | |
Public Attributes inherited from mf::flow::node | |
std::string | name |
Protected Member Functions inherited from mf::flow::filter_node | |
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 | |
node & | operator= (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) |
Sink node base class.
Has one of multiple inputs and no outputs. There is one sink node per graph. Controls time flow of graph.
|
inlineexplicit |
|
inlineoverridevirtual |
Implements mf::flow::filter_node.
|
inlineoverridevirtual |
Implements mf::flow::filter_node.
|
finaloverridevirtual |
Called by propagate_setup_.
Implements mf::flow::node.
|
finaloverridevirtual |
Called by graph for all nodes, before any frame is pulled from sink.
Implements mf::flow::node.
|
finaloverridevirtual |
Implements mf::flow::node.
void mf::flow::sink_node::pull | ( | time_unit | t | ) |
|
inline |
void mf::flow::sink_node::seek | ( | time_unit | t | ) |
void mf::flow::sink_node::setup_graph | ( | ) |
|
finaloverridevirtual |
Called by graph for all node, before destruction of any node.
Implements mf::flow::node.