hi_mpi_sys_get_chn_csc_matrix

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

☓

Function

Obtains the CSC matrix parameters of a channel after the channel is created.

If hi_mpi_sys_set_chn_csc_matrix has not been called to set the CSC matrix parameters, the default CSC matrix parameters following the BT.601 Wide standard are returned.

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)

Parameters

Parameter

Input/Output

Description

mode

Input

mode: module ID, either HI_ID_VDEC or HI_ID_VPC.

chn

Input

Channel ID.

When mode is set to HI_ID_VDEC, for details about the channel ID range, see the value range of chn in hi_mpi_vdec_create_chn.

When mode is set to HI_ID_VPC, for details about the channel ID range, see the value range of chn in hi_mpi_vpc_create_chn.

csc_matrix

Output

Pointer to the data standard of the CSC matrix.

csc_coefficient

Output

Pointer to the CSC matrix parameter value.

Returns