SendPacket

Function Usage

Template function, which sends data to the input element (appsrc) on the specified stream. When the memory is insufficient, an exception is thrown in the function. Multi-thread concurrency is not supported.

Currently, the following data can be input:

  • Packet<MxstDataInput>
  • Packet<MxVisionList>
  • Packet<MxTensorPackageList>
  • Packet<MxObjectList>
  • Packet<MxClassList>
  • Packet<MxImageMaskList>
  • Packet<MxPoseList>
  • Packet<MxTextObjectList>
  • Packet<MxTextsInfoList>

Prototype

1
2
template <class T>
APP_ERROR MxStreamManager::SendPacket(Packet<T>& packet, const std::string& streamName, const std::string& elementName)

Parameters

Parameter

Input/Output

Description

packet

Input

Packet data

streamName

Input

Stream name

elementName

Input

Element name

Response Parameters

Data Structure

Description

APP_ERROR

For details about the returned error codes, see APP_ERROR Description.