hi_mpi_vi_set_dev_bind_pipe

Applicability

Product

Supported

Atlas A3 training products / Atlas A3 inference products

x

Atlas A2 training products / Atlas A2 inference products

x

Atlas 200I/500 A2 inference products

Atlas inference products

x

Atlas training products

x

Description

Sets the binding relationship between VI devices and physical pipes in one-to-many mode.

Prototype

hi_s32 hi_mpi_vi_set_dev_bind_pipe(hi_vi_dev vi_dev, const hi_vi_dev_bind_pipe *dev_bind_pipe)

Parameters

Parameter

Input/Output

Description

vi_dev

Input

VI device ID.

Value range: [0, 4)

dev_bind_pipe

Input

Physical VI pipe ID.

Value range: [0, 4)

In WDR mode, pipe 0 and pipe 1 must be in the same group, and pipe 2 and pipe 3 must be in the same group. That is, the num parameter in the hi_vi_dev_bind_pipe structure is set to 2, and the elements in the pipe_id array in the hi_vi_dev_bind_pipe structure are set to 0 and 1 or 2 and 3.

Returns

Restrictions

  • This API can be called to bind a physical pipe only after a VI device is used by calling hi_mpi_vi_enable_dev and before a pipe is created by calling hi_mpi_vi_create_pipe.
  • A pipe that has been created cannot be bound.
  • You are advised to bind the VI device with high bandwidth to pipe 0 or pipe 1.

See Also

For the API call sequence, see Video Data Obtaining.