class dlstreamer::BaseTransform#

Overview#

#include <transform.h>

class BaseTransform: public dlstreamer::BaseElement {
public:
    // construction

    BaseTransform(const ContextPtr& app_context);

    // methods

    virtual void set_input_info(const FrameInfo& info);
    virtual void set_output_info(const FrameInfo& info);
    virtual FrameInfoVector get_input_info();
    virtual FrameInfoVector get_output_info();
    virtual FramePtr process(FramePtr src);
    virtual TensorPtr process(TensorPtr src);
    virtual bool process(FramePtr src, FramePtr dst);
    virtual bool process(TensorPtr src, TensorPtr dst);
    size_t pool_size();
};

Inherited Members#

public:
    // methods

    bool init();
    ContextPtr get_context(MemoryType);

Detailed Documentation#

Methods#

virtual void set_input_info(const FrameInfo& info)

The function notifies element about input information. Subsequent call to get_output_info() should take into consideration input information passed via this function.

Parameters:

info

Input frames information

virtual void set_output_info(const FrameInfo& info)

The function notifies element about output information. Subsequent call to get_input_info() should take into consideration output information passed via this function.

Parameters:

info

Output frames information

virtual FrameInfoVector get_input_info()

Returns input information supported by element. It may depend on output information previously set by set_output_info().

virtual FrameInfoVector get_output_info()

Returns output information supported by element. It may depend on input information previously set by set_input_info().

virtual FramePtr process(FramePtr src)

Process input frame and return output frame.

Parameters:

src

Input frame

dst

Output frame

virtual TensorPtr process(TensorPtr src)

Process input tensor and return output tensor.

Parameters:

src

Input frame

dst

Output frame

virtual bool process(FramePtr src, FramePtr dst)

Run processing on input and output frames.

Parameters:

src

Input frame

dst

Output frame

virtual bool process(TensorPtr src, TensorPtr dst)

Run processing on input and output tensors.

Parameters:

src

Input tensor

dst

Output tensor