hi_mpi_vpss_set_grp_fisheye_cfg
Applicability
|
Product |
Supported |
|---|---|
|
|
☓ |
|
|
☓ |
|
|
√ |
|
|
☓ |
|
|
☓ |
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
- 0: success
- Other values: failure. For details, see VPSS Return Codes.
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.
Parent topic: VPSS