GetProtobuf

Function Usage

Obtains the protobuf result of the output element on the stream and send it to appsink. appsink obtains the data in the queue in blocking mode. If the queue is empty, the data is blocked. Multi-thread concurrency is not supported.

This API must be used together with SendProtobuf. Otherwise, data stacking may occur.

Prototype

1
std::vector<MxstProtobufOut> MxStreamManager::GetProtobuf(const std::string& streamName, int outPluginId, const std::vector<std::string>& keyVec);

Parameters

Parameter

Input/Output

Description

streamName

Input

Stream name.

outPluginId

Input

ID of the object output plugin, that is, the ID of the appsrc element

keyVec

Input

Key of the protobuf to be obtained. The corresponding protobuf result is obtained based on the key. The memory is managed by the smart pointer and does not need to be released.

Response Parameters

Data Structure

Description

std::vector<MxstProtobufOut>

For details about the output data list of the inference service, see MxstProtobufOut.