GenerateStaticOutputPortsInfo
Function Usage
Generates static output port information, including the number of ports and port format. When an element is created, the static port is automatically created and the port must be connected. Otherwise, the stream fails to be created.
Prototype
static void GenerateStaticOutputPortsInfo(const std::vector<std::vector<std::string>>& portsDesc, MxpiPortInfo& inputPortInfo);
Parameter Description
Parameter |
Description |
|---|---|
portsDesc |
Port description. For example, in {{"metadata/object","metadata/class"}, {"metadata/attribute"}} indicates that two output ports are registered. The first port supports the object and class formats, and the second port supports the attribute format. |
inputPortInfo |
Output parameter, which contains the output port information. |
Parent topic: MxPluginBase