hi_stiching_ipm_param

Description

Defines the distortion correction parameters.

Prototype

typedef struct {
    hi_u32 src_pic_width;
    hi_u32 src_pic_height;
    hi_u32 dest_pic_width;
    hi_u32 dest_pic_height;
    hi_u32 ipm_table_len;
    hi_stiching_ipm_table *ipm_table_address;
} hi_stiching_ipm_param;

Members

Member

Description

src_pic_width

Width of the input image.

The widths of the four input images must be the same.

src_pic_height

Height of the input image.

The heights of the four input images must be the same.

dest_pic_width

Width of the output image.

dest_pic_height

Height of the output image.

ipm_table_len

Array length. Must be (dest_pic_width x dest_pic_height).

ipm_table_address

Distortion correction structure array.

The user allocates memory in advance to store the array data. Memory size (unit: byte) = sizeof(hi_stiching_ipm_table) x ipm_table_len. The memory size may be large. If malloc in the C standard library is used, the allocated memory would be fragmented and the number of huge pages decreases. This further affects the use of hi_mpi_dvpp_malloc to allocate the input/output memory for each DVPP function. Therefore, you are advised to use hi_mpi_dvpp_malloc to allocate memory for storing the ipm_table_address array data.