hi_mpi_vi_set_chn_dis_attr
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
☓ |
☓ |
|
☓ |
|
√ |
|
☓ |
|
☓ |
Function Description
Sets the DIS attributes of a VI channel.
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.
Restrictions
- Before calling this API, you must call the hi_mpi_vi_create_pipe API to create a pipe.
- The DIS attributes can be set only after the VI channel is enabled by calling the hi_mpi_vi_enable_chn interface and the DIS configuration is set by calling the hi_mpi_vi_set_chn_dis_config interface.
- If this API is called to enable the DIS function, the hi_mpi_vi_set_pipe_pre_crop API cannot be called to enable the channel cropping function. If the cropped image needs to be used for 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.
Parent topic: VI