hi_mpi_vpss_get_chn_fd

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

The Atlas Training Series Product does not support this API.

Description

Obtains the device file handle corresponding to a VPSS channel.

Prototype

hi_s32 hi_mpi_vpss_get_chn_fd(hi_vpss_grp grp, hi_vpss_chn chn);

Parameters

Parameter

Input/Output

Description

grp

Input

VPSS group ID.

The value range is [0, 264). If the 3DNR function is enabled by setting the hi_vpss_grp_attr.nr_en parameter of the hi_mpi_vpss_create_grp API, the value range of the VPSS group ID is [256, 268).

chn

Input

VPSS channel ID.

Value range: [0, 2)

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.