mxpi_parallel2serial

Function

Outputs the input data of multiple ports in sequence through one port.

Constraints

None

Synchronous/Asynchronous (Status)

Both supported

Plugin Base Class (Factory)

mxpi_parallel2serial

Input/Output

  • Dynamic input: buffer (data type: MxpiBuffer), metadata
  • Static output: buffer (data type: MxpiBuffer), metadata

Property

For details, see Table 1.

Table 1 mxpi_parallel2serial plugin properties

Property Name

Description

Mandatory or Not

Modifiable or Not

dataSource

Index of the input data (generally the name of the upstream element). Multiple indexes can be configured and separated by commas (,).

No

Yes

removeParentData

Whether to remove the original buffer data. The default value is 0.

  • 0: retains the original buffer data.
  • 1: removes the original buffer data.

No

Yes

status

Serialization plugin working mode.
  • 0: asynchronous (default).

    In asynchronous mode, each buffer is directly sent after arrival.

  • 1: synchronous.

    In synchronous mode, input buffers are sent (in the port sequence) after all of them have arrived.

No

Yes

Example