---
title: 函数：set_aipp_input_format
description: "| C函数原型 | aclError aclmdlSetAIPPInputFormat(aclmdlAIPP \\*aippParmsSet, AippInputFormat inputFormat) |"
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/aadgp/aclpythondevg_01_0160.html"
---

# 函数：set_aipp_input_format

| C函数原型 | aclError aclmdlSetAIPPInputFormat(aclmdlAIPP \*aippParmsSet, AippInputFormat inputFormat) |
| --- | --- |
| Python函数 | ret = acl.mdl.set\_aipp\_input\_format(aipp\_parms\_set, input\_format) |
| 函数功能 | 动态AIPP场景下，必须设置原始输入图像的格式，同步接口。 |
| 输入说明 | aipp\_parms\_set：int，动态AIPP参数对象的指针地址，需提前调用acl.mdl.create\_aipp接口创建aclmdlAIPP类型的数据。 input\_format：int，表示原始输入图像的格式。 取值范围如下： 1：ACL\_YUV420SP\_U8 2：ACL\_XRGB8888\_U8 3：ACL\_RGB888\_U8 4：ACL\_YUV400\_U8 |
| 返回值说明 | ret：int，错误码 返回0表示成功。 返回其它值表示失败。 |
| 约束说明 | 无 |
