hi_remap_lut

Description

Defines the information about the pixel position remapping LUT.

Prototype

hi_remap_lut = {"src_pic_width": src_pic_width,
                "src_pic_height": src_pic_height,
                "dest_pic_width": dest_pic_width,
                "dest_pic_height": dest_pic_height,
                "lut": lut,
                "lut_size": lut_size,
                "reserved": reserved}

Members

Atlas 200I/500 A2 inference products: The resolution of the input and output images ranges from 10 x 6 to 4096 x 8192.

Atlas A2 training products/Atlas A2 inference products: The resolution of the input and output images ranges from 10 x 6 to 4096 x 8192.

Atlas A3 training products/Atlas A3 inference products: The resolution of the input and output images ranges from 10 x 6 to 4096 x 8192.

Member

Description

src_pic_width

Int, width of the input image.

src_pic_height

Int, height of the input image.

dest_pic_width

Int, width of the output image.

dest_pic_height

Int, height of the output image.

lut_size

Int, memory size of the pixel position remapping LUT, in bytes.

You can call vpc_get_lut_mem_size to obtain the memory size.

lut

Int, memory address of the pixel position remapping LUT.

Atlas 200I/500 A2 inference products: You must call acl.himpi.dvpp_malloc to allocate memory in advance.

Atlas A2 training products/Atlas A2 inference products: You must call acl.himpi.dvpp_malloc to allocate memory in advance.

Atlas A3 training products/Atlas A3 inference products: You must call acl.himpi.dvpp_malloc to allocate memory in advance.

reserved

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