GenerateStaticPortsInfo
Function Usage
Generates static port information. The port can be an input or output port.
Prototype
1 | static void MxPluginBase::GenerateStaticPortsInfo(PortDirection direction, const std::vector<std::vector<std::string>>& portsDesc, MxpiPortInfo& portInfo); |
Parameters
Parameter |
Description |
|---|---|
direction |
Declaration of an input or output port. For details, see PortDirection. |
portsDesc |
Port description. The size range of the vector container is [1, 1024]. |
portInfo |
Port information. For details, see MxpiPortInfo. The value range of portInfo.portNum is [0, 1024]. |
Parent topic: MxPluginBase