sys_get_chn_csc_matrix

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas training products

x

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

Obtains the CSC matrix parameters of a channel.

Prototype

  • C Prototype
    1
    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
    1
    csc_matrix, csc_coefficient, ret = acl.himpi.sys_get_chn_csc_matrix(mode, chn)
    

Parameter Description

Parameter

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 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 vpc_create_chn for the channel ID range.

Return Value Description

Return Value

Description

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.

ret

Int, error code.

Restrictions