hi_mpi_vpss_set_chn_fisheye
The
The
Description
Sets the fisheye attributes of a physical VPSS channel.
Restrictions
- A VPSS group must have been created. For details, see hi_mpi_vpss_create_grp.
- Before calling this API to configure the fisheye attributes, 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 LMF is enabled in hi_fisheye_attr of this API, the LMF parameters must be configured by calling hi_mpi_vpss_set_grp_fisheye_cfg of the VPSS. Otherwise, an error occurs during fisheye processing because no configured LMF parameters can be obtained.
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
- 0: success
- Other values: failure. For details, see VPSS Return Codes.
Parent topic: VPSS