---
title: acl.himpi.vdec_get_tmv_buf_size
description: "| c函数原型 | hi\_u32 hi\_vdec\_get\_tmv\_buf\_size(hi\_payload\_type type, hi\_u32 width, hi\_u32 height); |"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/aadgp/aclpythondevg_01_0486.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/aadgp/aclpythondevg_01_0486.html
indexId: 64adfdfbc196de96964fff881f53aa5287db51f3a86606330ab22a0e9b47e919108
---
# acl.himpi.vdec_get_tmv_buf_size

| c函数原型 | hi\_u32 hi\_vdec\_get\_tmv\_buf\_size(hi\_payload\_type type, hi\_u32 width, hi\_u32 height); |
| --- | --- |
| Python函数 | ret = acl.himpi.vdec\_get\_tmv\_buf\_size(type, width, height) |
| 函数功能 | 取解码图像需要的矢量预测缓冲区的大小。 |
| 输入说明 | type：解码视频类型。 width：解码图像宽。 height：解码图像高。 |
| 返回值说明 | 图像存储需要矢量预测缓冲区大小。 |
| 约束说明 | 提供给用户来计算矢量预测缓冲区大小，在创建通道的时候初始化对应的参数。 |
| 参考资源 | 接口调用流程及示例，参见VDEC视频解码。 |
