hi_mpi_vi_set_chn_dis_attr

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

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

Restrictions

  • 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.