hi_mpi_vi_set_chn_dis_config
The
The
Description
Configures the digital image stabilization (DIS) function of a VI channel.
Restrictions
- This API can be called only after a VI pipe is created by calling hi_mpi_vi_create_pipe.
- When you call this API to set hi_dis_config.scale to HI_TRUE and call hi_mpi_vi_set_chn_dis_attr to enable the DIS function, crop_ratio in the DIS configuration information can be dynamically modified when the DIS function is enabled. To modify the DIS configuration parameters in other cases, disable the DIS function by calling hi_mpi_vi_set_chn_dis_attr before modification as the parameters cannot be dynamically modified.
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
- 0: success
- Other values: failure. For details, see VI Return Codes.
Parent topic: VI