acl.himpi.sys_get_chn_csc_matrix

C Prototype

hi_s32 hi_mpi_sys_get_chn_csc_matrix(hi_mod_id mode, hi_s32 chn, hi_csc_matrix *csc_matrix, hi_csc_coefficient *csc_coefficient);

Python Function

csc_matrix, csc_coefficient, ret = acl.himpi.sys_get_chn_csc_matrix(mode, chn)

Function Usage

Obtain the CSC matrix parameters of a channel.

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

The Atlas Training Series Product does not support this API.

Input Description

mode: int, module ID, either HI_ID_VDEC or HI_ID_VPC.

chn: int, channel ID.
  • When mode is set to HI_ID_VDEC, check the value range of the chn parameter in acl.himpi.vdec_create_chn for the channel ID range.
  • When mode is set to HI_ID_VPC, check the value range of the chn parameter in acl.himpi.vpc_create_chn for the channel ID range.

Return Value

ret: int, error code.

csc_matrix: int, data standard of the CSC matrix. For details, see hi_csc_matrix.

csc_coefficient: dict, CSC matrix parameter value. For details, see hi_csc_coefficient.

Restrictions