SendMultiDataWithUniqueId
Function Usage
Sends data to multiple specified input plugins (appsrc0, appsrc1, ...).
Prototype
APP_ERROR SendMultiDataWithUniqueId(std::vector<int> inPluginIdVec, std::vector<MxstDataInput>& dataInputVec, uint64_t& uniqueId);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
inPluginIdVec |
Input |
ID of the object input plugin, that is, the ID of the appsrc element. (The appsrc number indicates the sequence number of the appsrc element.) |
dataInputVec |
Input |
Data to be sent. The value of dataBuffer.dataSize must be equal to the size of the memory to be sent and within the range of [1, 1073741824]. dataBuffer.dataPtr needs to be deleted. |
uniqueId |
Output |
ID returned after data is sent. The corresponding result is obtained based on the ID. |
Return Parameter Description
Data Structure |
Description |
|---|---|
APP_ERROR |
Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file. |
Parent topic: Stream