class dlstreamer::Sink#
Overview#
Abstract interface for sink elements. Sink element has one input and no output. More…
#include <sink.h> class Sink: public dlstreamer::Element { public: // methods virtual FrameInfo get_input_info() = 0; virtual void set_input_info(const FrameInfo& info) = 0; virtual void write(FramePtr frame) = 0; }; // direct descendants template <class T> class BaseElement;
Inherited Members#
public: // methods virtual bool init() = 0; virtual ContextPtr get_context(MemoryType memory_type) = 0;
Detailed Documentation#
Abstract interface for sink elements. Sink element has one input and no output.
Methods#
virtual FrameInfo get_input_info() = 0
Returns input information.
virtual void set_input_info(const FrameInfo& info) = 0
The function notifies element about input information.
Parameters:
info |
Output frames information |
virtual void write(FramePtr frame) = 0
Write one frame.
Parameters:
frame |
Frame to write |