hi_roundview_stitching_param

Description

Defines the surround-view stitching parameters.

Prototype

typedef struct  {
    hi_stiching_ipm_param imp_conf;
    hi_stitching_gain_param gain_conf;
    hi_u32 reserved[7];
    hi_u32 stitch_table_type;
} hi_roundview_stitching_param;

Members

Member

Description

imp_conf

Distortion correction parameters.

gain_conf

Gain compensation parameters.

If gain compensation is not required, set the gain_type member in this data structure to GAIN_NONE.

reserved

Reserved. To ensure compatibility in later versions, use the memset struct for resetting and initialization. Do not explicitly access the reserved field in the code.

stitch_table_type

Stitching table type.

The options are as follows:

  • 0: hi_stiching_ipm_table type.

    The structure of stitching tables of the hi_stiching_ipm_table type is open to users. You can call hi_mpi_vpc_set_roundview_stitching_param to set the parameters of a stitching table of the hi_stiching_ipm_table type. However, DVPP will convert the stitching table into a DVPP internal stitching table, which may affect the performance.

  • 1: DVPP internal stitching table.

    The structure of DVPP internal stitching tables is not open to users, you need to obtain the DVPP internal stitching table first (call hi_mpi_vpc_set_roundview_stitching_param to set the stitching table of the hi_stiching_ipm_table type, and then call hi_mpi_vpc_get_roundview_stitching_param to obtain the DVPP internal stitching table). Then, call hi_mpi_vpc_set_roundview_stitching_param to set the DVPP internal stitching table. This method does not involve stiching table conversion and therefore has better performance.

    Note: For the same channel, hi_mpi_vpc_set_roundview_stitching_param can be called only once to set the surround-view stitching parameters.