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;
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. |
lut_table_len |
Size of the stitching table memory. |
lut |
Stitching table address. You need to allocate memory in advance to store the stitching table data. The memory size (in bytes) is the value of lut_table_len. 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 lut. |
mask_len |
Reserved. The value is fixed at 0. |
mask |
Reserved. This parameter is fixed at NULL. |
blend_table_len |
Memory size of the blend table. The value must be equal to dest_pic_width x dest_pic_height. |
blend_table |
Blend table address. The API internally merges the lut stitching results into one table based on this blend table. |
reserved |
Reserved. The value is fixed at 0. |