sys_get_chn_csc_matrix

Applicable Products

Product

Supported (√/x)

Ascend 950PR&950DT products

√

Atlas A3 products

√

Atlas A2 products

√

Atlas training products

x

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Description

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)
    

Parameters

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 Values

Return Value

Description

csc_matrix

Int, CSC matrix data standard. For details, see hi_csc_matrix.

csc_coefficient

Dict, CSC matrix parameter value. For details, see hi_csc_coefficient.

ret

Int, error code.

Constraints