RunProcess

Function Usage

This function is a general step before the process function is called. It checks whether the buffer transmitted by the upstream system contains error information and whether the metadata exists. If the error information exists or the metadata does not exist, skip the process function of the plugin and transparently transmit the upstream buffers to the downstream plugin. Currently, you need to set the class members doPreErrorCheck_ and doPreMetaDataCheck_ to true when Init is called to enable the function.

Prototype

1
virtual APP_ERROR MxPluginBase::RunProcess(std::vector<MxpiBuffer*>& mxpiBuffer);

Parameters

Parameter

Description

mxpiBuffer

Data transferred by the previous plugin. The member data under this data structure is input by the upstream plugin. Do not manually set the memory data.

Response Parameters

Data Structure

Description

APP_ERROR

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