昇腾社区首页
中文
注册
开发者
下载

hi_stitching_lut_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 lut_table_len;
    void *lut;
    hi_u32 mask_len;
    hi_u8 *mask;
    hi_u32 blend_table_len;
    hi_u8 *blend_table;
    hi_u32 reserved[8];
} hi_stitching_lut_param; 

成员名称

描述

src_pic_width

输入图片宽。

4张输入图片的宽保持一致。

src_pic_height

输入图片高。

4张输入图片的高保持一致。

dest_pic_width

输出图片宽。

dest_pic_height

输出图片高。

lut_table_len

表示lut表内存大小。

lut

此处的内存大小可能比较大,如果直接使用C标准库中的malloc接口申请内存,会导致内存碎片化,大页个数减少,进而影响使用hi_mpi_dvpp_malloc接口申请DVPP各功能的输入/输出内存。因此推荐直接使用hi_mpi_dvpp_malloc接口申请存放lut的内存。

mask_len

mask

blend_table_len

表示融合表内存大小。

  • 环视拼接:blend_table_len参数值 = dest_pic_height * dest_pic_width。
  • 环视拼接+透明底盘:blend_table_len参数值 = dest_pic_height * dest_pic_width *(1+1/4+1/16+1/64+1/256+1/1024),共计六张blend表,每张表为前一张经过高斯金字塔下采样后得到,宽高均为前一张的1/2。

blend_table

表示融合表地址。

reserved

预留参数。当前固定配置为0。