SendData

Function Usage

Sends data to the specified input plugin (appsrc).

Prototype

APP_ERROR SendData(const std::string& elementName, std::vector<MxstMetadataInput>& metadataVec, MxstBufferInput& dataBuffer);

Parameter Description

Parameter

Input/Output

Description

elementName

Input

Name of input plugin appsrc

metadataVec

Input

List of sent protobuf data. For details, see MxstMetadataInput.

dataBuffer

Input

Data to be sent. The value of bufferInput.dataSize must be equal to the size of the memory to be sent and within the range of [1, 1073741824]. bufferInput.dataPtr needs to be deleted. For details about the data type, see MxstBufferInput.

Return Parameter Description

Data Structure

Description

APP_ERROR

Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file.