# hi_stiching_ipm_param

#### 说明

定义畸变矫正参数的结构体。


#### 定义

```
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;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| src\_pic\_width | 输入图片宽。 4张输入图片的宽保持一致。 |
| src\_pic\_height | 输入图片高。 4张输入图片的高保持一致。 |
| dest\_pic\_width | 输出图片宽。 |
| dest\_pic\_height | 输出图片高。 |
| ipm\_table\_len | 数组长度，必须为dest\_pic\_width \* dest\_pic\_height |
| ipm\_table\_address | 畸变矫正结构体数组。 由用户提前申请内存存放数组中的数据，内存大小（单位为Byte） = sizeof(hi\_stiching\_ipm\_table) \* ipm\_table\_len，该内存大小可能比较大，如果直接使用C标准库中的malloc接口申请内存，会导致内存碎片化，大页个数减少，进而影响使用hi\_mpi\_dvpp\_malloc接口申请DVPP各功能的输入/输出内存。因此推荐直接使用hi\_mpi\_dvpp\_malloc接口申请存放ipm\_table\_address数组数据的内存。 |
