Init

Function Usage

Plugin initialization method. This method needs to be rewritten for custom plugins to allocate resources in this method. It is used together with DeInit.

If the initialization fails, do not call subsequent member functions.

Prototype

1
virtual APP_ERROR MxPluginBase::Init(std::map<std::string, std::shared_ptr<void>>& configParamMap) = 0;

Parameters

Parameter

Description

configParamMap

Configuration parameter. After streaming, the parameters in the configuration file are transferred through this variable.

Response Parameters

Data Structure

Description

APP_ERROR

For details about the returned error codes, see APP_ERROR Description.