vpc_get_lut_mem_size

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas training product

x

Atlas inference product

x

Atlas 200I/500 A2 inference product

Description

Obtain the memory size required by the pixel position remapping LUT based on the width and height of the output image.

Prototype

  • C Prototype
    1
    hi_s32 hi_mpi_vpc_get_lut_mem_size(hi_u32 width, hi_u32 height, hi_u32 *lut_size)
    
  • Python Function
    1
    lut_size, ret = acl.himpi.vpc_get_lut_mem_size(width, height)
    

Parameters

Parameter

Description

width

Int, output image width.

height

Int, output image height.

Return Value

Return Value

Description

lut_size

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

ret

Int, error code.
  • 0 indicates success.
  • Other values indicate failure. For details, see VPC Return Codes.

Restrictions

When this API is called, the value of width x height ranges from 10 x 6 to 4096 x 8192.