hi_mpi_vi_set_chn_dis_attr

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

x

Atlas A2 training products/Atlas A2 inference products

x

Atlas 200I/500 A2 inference products

Atlas inference products

x

Atlas training products

x

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

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