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.
1 | virtual APP_ERROR MxPluginBase::Init(std::map<std::string, std::shared_ptr<void>>& configParamMap) = 0; |
Parameter |
Description |
|---|---|
configParamMap |
Configuration parameter. After streaming, the parameters in the configuration file are transferred through this variable. |
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |