hi_mpi_vpss_set_grp_fisheye_cfg

Applicability

Product

Supported

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Sets the Lens Map Function (LMF) parameters of the fisheye lens in a VPSS group.

Prototype

hi_s32 hi_mpi_vpss_set_grp_fisheye_cfg(hi_vpss_grp grp, const hi_fisheye_cfg *fisheye_cfg)

Parameters

Parameter

Input/Output

Description

grp

Input

VPSS group ID.

Value range: [256, 268)

fisheye_cfg

Input

Pointer to the LMF parameter structure of the fisheye lens.

Returns

Restrictions

  • A VPSS group must have been created. For details, see hi_mpi_vpss_create_grp.
  • The LMF parameters need to be converted based on the parameters recommended by the lens vendor before being configured. If the lens vendor does not provide the parameters, the LMF function needs to be disabled.
  • The correct LMF parameters must comply with the following rule: lmf_coef[i + 1] ≥ lmf_coef[i] + 5 && lmf_coef[i + 1] ≤ lmf_coef[i] + 31 && lmf_coef[57] < 1024 < lmf_coef[85] && lmf_coef[0] = 0. Otherwise, an error is reported. If the configured parameters are incorrect, exceptions such as no graph may occur.

See Also

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