---
title: 函数：set_aipp_ax_swap_switch
description: "| C函数原型 | aclError aclmdlSetAIPPAxSwapSwitch(aclmdlAIPP \\*aippParmsSet, int8\\_t axSwapSwitch) |"
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/aadgp/aclpythondevg_01_0163.html"
---

# 函数：set_aipp_ax_swap_switch

| C函数原型 | aclError aclmdlSetAIPPAxSwapSwitch(aclmdlAIPP \*aippParmsSet, int8\_t axSwapSwitch) |
| --- | --- |
| Python函数 | ret = acl.mdl.set\_aipp\_ax\_swap\_switch(aipp\_parms\_set, ax\_swap\_switch) |
| 函数功能 | 动态AIPP场景下，设置RGBA\->ARGB或者YUVA\->AYUV的交换开关，同步接口。 |
| 输入说明 | aipp\_parms\_set：int，动态AIPP参数对象的指针地址，需提前调用acl.mdl.create\_aipp接口创建aclmdlAIPP类型的数据。 ax\_swap\_switch：int，表示GBA\->ARGB或者YUVA\->AYUV的交换开关。取值范围： 0：不交换，默认为0。 1：交换。 |
| 返回值说明 | ret：int，错误码 返回0表示成功。 返回其它值表示失败。 |
| 约束说明 | 无 |
