hi_remap_lut

Function

Defines the information about the pixel position remapping LUT.

Definition

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;

For details about the basic data types hi_u32, hi_void, and hi_u64, see Basic Data Types.

Members

The resolution of the input and output images ranges from 10 × 6 to 4096 × 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

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

You can obtain the buffer size by calling hi_mpi_vpc_get_lut_mem_size.

lut

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

You must call hi_mpi_dvpp_malloc in advance to allocate the buffer.

reserved

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