hi_mpi_vi_set_chn_dis_config

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

Configures the digital image stabilization (DIS) function of a VI channel.

Prototype

hi_s32 hi_mpi_vi_set_chn_dis_config(hi_vi_pipe vi_pipe, hi_vi_chn vi_chn, const hi_dis_config *dis_config)

Parameters

Parameter

Input/Output

Description

vi_pipe

Input

Pipe ID.

Value range: [0, 12)

vi_chn

Input

VI channel ID.

Value range: [0, 1)

dis_config

Input

Pointer to the DIS configuration information structure.

Returns

Restrictions

  • When this API is called to set hi_dis_config.scale to HI_TRUE and the DIS function is enabled by calling the hi_mpi_vi_set_chn_dis_attr API, the crop_ratio parameter in the DIS configuration information can be dynamically modified when the DIS function is enabled. To modify the DIS configuration parameters in other cases, you must call the hi_mpi_vi_set_chn_dis_attr API to disable the DIS function before modifying the parameters. The parameters cannot be dynamically modified.