GetResult

Function Usage

Obtains the result of the output element (appsink) on the stream. The blocking mode is used. Multi-thread concurrency is not supported.

Prototype and Parameter Description

MxstDataOutput* GetResult(const std::string& streamName, int outPluginId,const uint32_t& msTimeOut = DELAY_TIME);

Parameter

Input/Output

Description

streamName

Input

Stream name

outPluginId

Input

ID of the output plugin on the stream, that is, the ID of the appsink element

msTimeOut

Input

Maximum waiting time, in milliseconds. The default value is 3000 ms (3s).

MxstBufferAndMetadataOutput GetResult(const std::string& streamName, const std::string& elementName,const std::vector<std::string>& dataSourceVec, const uint32_t& msTimeOut = DELAY_TIME);

Parameter

Input/Output

Description

streamName

Input

Stream name

elementName

Input

Name of the output element on the stream

dataSourceVec

Input

Data source corresponding to the metadata, which is used to obtain the specified metadata

msTimeOut

Input

Maximum waiting time, in milliseconds. The default value is 3000 ms (3s).

Return Parameter Description

Data Structure

Description

MxstDataOutput

Output data of the inference service (see MxstDataOutput). The memory needs to be deleted.

MxstBufferAndMetadataOutput

Obtained buffer and metadata