class dlstreamer::MemoryMapperGSTToDMA#
Overview#
#include <gst_to_dma.h> class MemoryMapperGSTToDMA: public dlstreamer::BaseMemoryMapper { public: // methods virtual TensorPtr map(TensorPtr src, AccessMode mode); BaseMemoryMapper( const ContextPtr& input_context, const ContextPtr& output_context ); };
Inherited Members#
public: // methods virtual TensorPtr map(TensorPtr src, AccessMode mode = AccessMode::ReadWrite) = 0; virtual FramePtr map(FramePtr src, AccessMode mode = AccessMode::ReadWrite) = 0; virtual ContextPtr input_context() const = 0; virtual ContextPtr output_context() const = 0; virtual TensorPtr map(TensorPtr src, AccessMode mode); virtual FramePtr map(FramePtr src, AccessMode mode); virtual ContextPtr input_context() const; virtual ContextPtr output_context() const; TensorPtr map(TensorPtr src, AccessMode mode = AccessMode::ReadWrite); FramePtr map(FramePtr src, AccessMode mode = AccessMode::ReadWrite);
Detailed Documentation#
Methods#
virtual TensorPtr map(TensorPtr src, AccessMode mode)
Map tensor into another context. The function returns mapped tensor, so that the parent() on output tensor returns original tensor and context() on output tensor returns input_context().
Parameters:
src |
Tensor to map |
mode |
Access mode - read or write or read+write |