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;
union{
hi_u32 ipm_table_len;
hi_u32 lut_table_len;
}
union{
hi_stiching_ipm_table *ipm_table_address;
void *lut_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 or lut_table_len |
|
ipm_table_address or lut_table_address |
The memory size may be large. If a memory allocation API in the C standard library is directly used to allocate memory, the memory will be fragmented and the number of huge pages will be reduced. As a result, the input/output memory of each DVPP function cannot be allocated by calling hi_mpi_dvpp_malloc. Therefore, you are advised to call hi_mpi_dvpp_malloc to allocate memory for storing data of ipm_table_address or lut_table_address. |