acl.himpi.sys_set_chn_csc_matrix
C Prototype |
hi_s32 hi_mpi_sys_set_chn_csc_matrix(hi_mod_id mode, hi_s32 chn, hi_csc_matrix csc_matrix, hi_csc_coefficient *csc_coefficient); |
|---|---|
Python Function |
ret = acl.himpi.sys_set_chn_csc_matrix(mode, chn, csc_matrix, csc_coefficient) |
Function Usage |
Sets the CSC parameters after the corresponding image or video processing channel is created if the CSC parameters need to be adjusted in the conversion between YUV and RGB before images or videos are processed. The Atlas 200/300/500 Inference Product does not support this API in the current version. The Atlas Training Series Product does not support this API in the current version. |
Input Description |
mode: int, module ID, either HI_ID_VDEC or HI_ID_VPC. chn: int, channel ID.
csc_matrix: int, data standard of the CSC matrix. For details, see hi_csc_matrix. csc_coefficient: dict, CSC matrix parameter value dictionary. For details, see hi_csc_coefficient. Use csc_coefficient to set the CSC matrix parameters when csc_matrix is set to HI_CSC_MATRIX_USER. Otherwise, pass a random value to this parameter. |
Return Value |
ret: int, error code.
|
Restrictions |
|