SendProtobuf
Function Usage
Sends protobuf data to the input element of a specified stream to the native appsrc plugin. Multi-thread concurrency is not supported. For details, see SendProtobuf-GetProtobuf Sample Code.
Prototype and Parameter Description
APP_ERROR SendProtobuf(const std::string& streamName, int inPluginId,
std::vector<MxstProtobufIn>& protoVec);
Parameter |
Input/Output |
Description |
|---|---|---|
streamName |
Input |
Stream name |
inPluginId |
Input |
ID of the object input plugin, that is, the ID of the appsrc element |
protoVec |
Input |
For details about the list of sent protobuf data, see MxstProtobufIn. |
APP_ERROR MxStreamManager::SendProtobuf(const std::string& streamName,
const std::string& elementName, std::vector<MxstProtobufIn>& protoVec);
Parameter |
Input/Output |
Description |
|---|---|---|
streamName |
Input |
Stream name |
elementName |
Input |
Name of the input plugin. Only appsrc can be used as the input plugin. |
protoVec |
Input |
For details about the list of sent protobuf data, see MxstProtobufIn. |
Return Parameter Description
Data Structure |
Description |
|---|---|
APP_ERROR |
Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file. |