hi_mpi_vi_set_dev_bind_pipe

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

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

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.

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