hi_mpi_vi_set_chn_dis_attr
The
The
Description
Sets the DIS attributes of a VI channel.
Restrictions
- This API can be called only after a VI pipe is created by calling hi_mpi_vi_create_pipe.
- DIS attributes can be set after the VI channel is enabled by calling hi_mpi_vi_enable_chn and the DIS function is configured by calling hi_mpi_vi_set_chn_dis_config.
- If you call this API to enable the DIS function, do not call hi_mpi_vi_set_pipe_pre_crop to enable the channel cropping function. To use the cropped image for the DIS, you are advised to crop the image at the front end of the MIPI or pipe.
- Before modifying the DIS configuration or channel attributes, disable the DIS function.
Prototype
hi_s32 hi_mpi_vi_set_chn_dis_attr(hi_vi_pipe vi_pipe, hi_vi_chn vi_chn, const hi_dis_attr *dis_attr)
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_attr |
Input |
Pointer to the DIS attribute structure. |
Returns
- 0: success
- Other values: failure. For details, see VI Return Codes.
Parent topic: VI