class dlstreamer::MemoryMapperVAAPIToOpenVINO#

Overview#

#include <vaapi_to_openvino.h>

class MemoryMapperVAAPIToOpenVINO: public dlstreamer::BaseMemoryMapper {
public:
    // construction

    MemoryMapperVAAPIToOpenVINO(
        const ContextPtr& input_context,
        const ContextPtr& output_context
    );

    // methods

    virtual FramePtr map(FramePtr src, AccessMode mode);
};

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 FramePtr map(FramePtr src, AccessMode mode)

Map frame into another context. The function returns mapped frame, so that the parent() on output frame returns original frame and context() on output frame returns input_context().

Parameters:

src

Frame to map

mode

Access mode - read or write or read+write