hi_mpi_vi_set_chn_dis_config
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
☓ |
☓ |
|
☓ |
|
√ |
|
☓ |
|
☓ |
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
- 0: success
- Other values: failure. For details, see VI Return Codes.
Restrictions
- Before calling this API, you must call the hi_mpi_vi_create_pipe API to create a pipe.
- 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.
Parent topic: VI