hi_mpi_vi_set_pipe_vc_number

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 VC ID for a physical VI pipe to connect to the front-end sensor.

Prototype

hi_s32 hi_mpi_vi_set_pipe_vc_number(hi_vi_pipe vi_pipe, hi_u32 vc_number)

Parameters

Parameter

Input/Output

Description

vi_pipe

Input

Physical pipe ID.

Value range: [0, 4)

vc_number

Input

VC ID.

Value range: [0, 4)

Returns

Restrictions

  • This API must be called after a pipe is created by calling hi_mpi_vi_create_pipe and before hi_mpi_vi_start_pipe is called.
  • The VC 1 and VC 2 are output by some sensors in the 2-to-1 WDR scenario. If the VC IDs are not specified separately by calling this API, the VC IDs do not match the default VC 0 and 1 in the system. As a result, data fails to be obtained.
  • Virtual pipes are not supported.