---
title: hi_mpi_mfusion_set_attr
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0439.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0439.html
indexId: 433ead3f222b8cdcc62888a684e2946153ca65debafb6773dcc4534dffa0fc0265
---
# hi_mpi_mfusion_set_attr

#### 产品支持情况

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


#### 功能说明

设置motionfusion属性。

调用本接口前，必须调用hi_mpi_sys_init进行系统初始化。


#### 函数原型

```
hi_s32
hi_mpi_mfusion_set_attr(const
hi_u32
fusion_id, const
hi_mfusion_attr
*mfusion_attr)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| fusion\_id | 输入 | fusion设备ID号。 取值范围：0 （目前fusion\_id仅有0有效）。 |
| mfusion\_attr | 输入 | motionfusion属性指针。 |


#### 返回值说明

- 0：成功
- 非0：失败，参见  ISP返回码
