hi_mpi_vi_set_pipe_vc_number
The
The
Description
Sets the VC ID for a physical VI pipe to connect to the front-end sensor.
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.
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
- 0: success
- Other values: failure. For details, see VI Return Codes.
Parent topic: VI