hi_mpi_sys_get_chn_csc_matrix
The
The
Description
Obtains the CSC matrix parameters of a channel.
Restrictions
- Ensure that a channel has been 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 |
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 parameters. |
Returns
- 0: success
- Other values: failure. For details, see Common Return Codes.