hi_remap_lut

Description

Defines the information about the pixel position remapping LUT.

Prototype

 typedef struct {
    hi_u32 src_pic_width;
    hi_u32 src_pic_height;
    hi_u32 dest_pic_width;
    hi_u32 dest_pic_height;
    hi_void *lut;
    hi_u32 lut_size;
    hi_u64 reserved;
} hi_remap_lut;

Members

The resolution of the input and output images ranges from 10 x 6 to 4096 x 8192.

Member

Description

src_pic_width

Input image width.

src_pic_height

Input image height.

dest_pic_width

Output image width.

dest_pic_height

Output image height.

lut_size

Memory size of the pixel position remapping LUT, in bytes.

You can call the hi_mpi_vpc_get_lut_mem_size interface to obtain the memory size.

lut

Pointer to the memory address of the pixel position remapping LUT.

The memory needs to be allocated by calling the hi_mpi_dvpp_malloc API in advance.

reserved

Reserved. To ensure compatibility in later versions, use the memset struct for resetting and initialization. Do not explicitly access the reserved field in the code.