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 during initialization to enable the function.
Prototype
virtual APP_ERROR MxPluginBase::RunProcess(std::vector<MxpiBuffer*>& mxpiBuffer);
Parameter Description
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. |
Return Parameter Description
Data Structure |
Description |
|---|---|
APP_ERROR |
Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file. |