hi_mpi_vpss_set_chn_fisheye

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 fisheye attributes of a physical VPSS channel.

Prototype

hi_s32 hi_mpi_vpss_set_chn_fisheye(hi_vpss_grp grp, hi_vpss_chn chn, const hi_fisheye_correction_attr *correction_attr)

Parameters

Parameter

Input/Output

Description

grp

Input

VPSS group ID.

Value range: [0, 264)

chn

Input

VPSS channel ID.

Value range: [0, 2)

correction_attr

Input

Pointer to the fisheye attribute structure of a VPSS physical channel.

Returns

Restrictions

  • Before calling this API to configure the fisheye attributes, you must call hi_mpi_vpss_set_chn_attr to configure the attributes of the corresponding physical channel.
  • If fisheye correction needs to be enabled for a physical channel, you are advised to configure the fisheye attributes before enabling the channel.
  • When fisheye attributes are dynamically changed, the size of the output picture after fisheye correction must be less than the size configured before the channel is enabled. If the size is not configured, it must be less than the width and height of the corresponding channel.
  • After fisheye correction is enabled for a physical channel, the crop attribute, width, and height of the channel cannot be dynamically changed.
  • The non-correction region of the output image is random data, which may cause image abnormality.
  • When the channel output format is VIDEO_FORMAT_TILE_16x8, fisheye correction is not supported.
  • If the LMF parameter function is enabled in the hi_fisheye_attr attribute of this API, the hi_mpi_vpss_set_grp_fisheye_cfg of the VPSS must be called to set the LMF parameters. Otherwise, an error is reported during fisheye processing because the configured LMF parameters cannot be obtained.

See Also

For the API call sequence, see Video Data Obtaining and Processing (Camera Scenario).