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

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

表示拼接表内存大小,参数值必须等于ALIGN_UP (dest_pic_width * 12, 128) * dest_pic_height。其中,ALIGN_UP (dest_pic_width * 12, 128),表示dest_pic_width * 12按128字节对齐之后的值。

lut

表示拼接表地址。

由用户提前申请内存存放拼接表数据,内存大小(单位为Byte)为lut_table_len参数值。

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

mask_len

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

mask

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

blend_table_len

表示融合表内存大小。参数值必须等于dest_pic_width * dest_pic_height。

blend_table

表示融合表地址。

接口内部根据该融合表将lut拼接输出的结果融合成一张表。

reserved

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