1 #ifndef MF_FLOW_FILTER_NODE_H_
2 #define MF_FLOW_FILTER_NODE_H_
8 namespace mf {
namespace flow {
17 std::unique_ptr<filter> filter_;
29 template<
typename Filter,
typename... Args>
31 Filter*
filter =
new Filter(*
this, std::forward<Args>(args)...);
32 filter_.reset(filter);
Output port of node in flow graph.
Definition: node.h:108
filter_node(graph &gr)
Definition: filter_node.cc:6
const filter & this_filter() const
Definition: filter_node.h:37
std::ptrdiff_t time_unit
Discrete time unit type.
Definition: common.h:52
void process_filter(node_job &)
Definition: filter_node.cc:20
Node in flow graph, base class.
Definition: node.h:19
~filter_node()
Definition: filter_node.cc:8
void setup_filter()
Definition: filter_node.cc:10
Filter which performs concrete processing, base class.
Definition: filter.h:15
Node which delegates concrete frame processing to associated filter object.
Definition: filter_node.h:15
void pre_process_filter(node_job &)
Definition: filter_node.cc:15
filter & this_filter()
Definition: filter_node.h:36
virtual node_input & add_input(time_unit past_window, time_unit future_window)=0
Work unit of flow graph node.
Definition: node_job.h:13
virtual node_output & add_output(const frame_format &format)=0
Filter & set_filter(Args &&...args)
Definition: filter_node.h:30
Graph containing interconnected nodes through which media frames flow.
Definition: graph.h:23