class dlstreamer::TransformInplace#

Overview#

Abstract interface for in-place transform elements. Transform element doesn’t allocate new frames/tensors, it modified input frames/tensors. More…

#include <transform.h>

class TransformInplace: public dlstreamer::Element {
public:
    // methods

    virtual void set_info(const FrameInfo& info) = 0;
    virtual bool process(TensorPtr src) = 0;
    virtual bool process(FramePtr src) = 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 in-place transform elements. Transform element doesn’t allocate new frames/tensors, it modified input frames/tensors.

Methods#

virtual void set_info(const FrameInfo& info) = 0

The function notifies element about frame information.

Parameters:

info

Frame information

virtual bool process(TensorPtr src) = 0

Process tensor.

Parameters:

src

Tensor

virtual bool process(FramePtr src) = 0

Process frame.

Parameters:

src

Frame