hi_mpi_sys_get_chn_csc_matrix

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Description

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

If the hi_mpi_sys_set_chn_csc_matrix API is not called to set the CSC matrix parameters, the default BT.601 wide CSC matrix parameter values 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

Module ID. Currently, only HI_ID_VDEC and HI_ID_VPC are supported.

chn

Input

Channel ID.

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

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

csc_matrix

Output

Pointer to the data standard of the CSC matrix.

csc_coefficient

Output

Pointer to the CSC matrix parameter value.

Returns