SendData
Function Usage
Data transmission method. This method can be called in Process to send data to the next plugin.
Prototype
1 | APP_ERROR MxPluginBase::SendData(int index, MxpiBuffer& mxpiBuffer); |
Parameters
Parameter |
Description |
|---|---|
index |
Number of the output port. |
mxpiBuffer |
Data sent to the next plugin. The member data (for example, GstBuffer) under this data structure must be properly configured. Do not manually configure the memory data. |
mxpiBuffer must use the heap memory, which must be allocated by the new operator. Otherwise, the application will crash. This API frees the heap memory of mxpiBuffer. You do not need to deallocate the memory after this API is returned. Otherwise, the application will crash.
Response Parameters
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |
Parent topic: MxPluginBase