---
title: aclmdlSetAIPPAxSwapSwitch
description: "动态AIPP场景下，设置RGBA->ARGB或者YUVA->AYUV的交换开关，同步接口。"
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/aadgc/aclcppdevg_03_1716.html"
---

# aclmdlSetAIPPAxSwapSwitch

#### 函数功能

动态AIPP场景下，设置RGBA->ARGB或者YUVA->AYUV的交换开关，同步接口。


#### 函数原型

aclError aclmdlSetAIPPAxSwapSwitch(aclmdlAIPP *aippParmsSet, int8_t axSwapSwitch)


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| aippParmsSet | 输出 | 动态AIPP参数对象的指针。 需提前调用aclmdlCreateAIPP接口创建aclmdlAIPP类型的数据。 |
| axSwapSwitch | 输入 | 表示RGBA\->ARGB或者YUVA\->AYUV的交换开关，取值范围： 0：不交换 1：交换 |


#### 返回值说明

返回0表示成功，返回其它值表示失败。
