---
title: hi_mpi_vpc_get_lut_mem_size
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/dvpp/aclcppdevg_03_0662.html
sourcePath: /source/zh/canncommercial/900/API/dvpp/aclcppdevg_03_0662.html
indexId: d5b5f6636ba23e0f06843435ffb5a035082e7679396be027c8aa57d3c86b48ea62
---
# hi_mpi_vpc_get_lut_mem_size

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |
| Atlas 推理系列产品 | ☓ |
| Atlas 训练系列产品 | ☓ |


#### 功能说明

根据输出图片宽高信息获取像素位置重映射表所需的内存大小。同步接口。


#### 函数原型

```
hi_s32
hi_mpi_vpc_get_lut_mem_size(
hi_u32
width,
hi_u32
height,
hi_u32
*lut_size)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| width | 输入 | 输出图像宽度。 |
| height | 输入 | 输出图像高度。 |
| lut\_size | 输出 | 像素位置重映射表的内存大小，单位Byte。 |


#### 返回值说明

- 0：成功
- 非0：失败，  VPC图像处理返回码


#### 约束说明

调用本接口时，width * height的取值范围为：[10*6, 4096*8192]。
