hi_mpi_vi_get_chn_fd

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Description

Obtains the file descriptor of a VI channel.

Prototype

hi_s32 hi_mpi_vi_get_chn_fd(hi_vi_pipe vi_pipe, hi_vi_chn vi_chn)

Parameters

Parameter

Input/Output

Description

vi_pipe

Input

Pipe ID.

Value range: [0, 12)

vi_chn

Input

VI channel ID.

Value range: [0, 1)

Returns

If the value is greater than or equal to 0, the API is successfully called and the corresponding handle is returned. Otherwise, the API fails to be called.

See Also

For details about the API call sequence, see Video Data Obtaining.