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

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

For the 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.

For the 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 obtain the memory size by calling vpc_get_lut_mem_size.

lut

Int, memory address of the pixel position remapping LUT.

For the Atlas 200I/500 A2 inference products, you must call acl.himpi.dvpp_malloc in advance to allocate the memory.

For the Atlas A2 training products/Atlas A2 inference products, you must call acl.himpi.dvpp_malloc in advance to allocate the memory.

For the Atlas A3 training products/Atlas A3 inference products, you must call acl.himpi.dvpp_malloc in advance to allocate the memory.

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.