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, a stream fails to be created.
Prototype
1 | static void MxPluginBase::GenerateStaticOutputPortsInfo(const std::vector<std::vector<std::string>>& portsDesc, MxpiPortInfo& outputPortInfo); |
Parameters
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. |
outputPortInfo |
Output parameter, which contains the output port information. |
Parent topic: MxPluginBase