# acldvppSetBorderConfig系列接口

#### 产品支持情况

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


#### 功能说明

设置边界填充配置参数。


#### 函数原型

```
aclError acldvppSetBorderConfigValue(acldvppBorderConfig *borderConfig, uint32_t index, double value)
aclError acldvppSetBorderConfigBorderType(acldvppBorderConfig *borderConfig, acldvppBorderType borderType)
aclError acldvppSetBorderConfigTop(acldvppBorderConfig *borderConfig, uint32_t top)
aclError acldvppSetBorderConfigBottom(acldvppBorderConfig *borderConfig, uint32_t bottom)
aclError acldvppSetBorderConfigLeft(acldvppBorderConfig *borderConfig, uint32_t left)
aclError acldvppSetBorderConfigRight(acldvppBorderConfig *borderConfig, uint32_t right)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| borderConfig | 输出 | 边界填充配置数据的指针。 需提前调用acldvppCreateBorderConfig接口创建acldvppBorderConfig类型的数据。 |
| index | 输入 | 表示颜色分量数组的下标。 0表示R或Y分量，1表示G或U分量，2表示B或V分量，3是预留值。 |
| value | 输入 | 指定填充的各颜色分量的像素值。 仅当borderType设置为BORDER\_CONSTANT时，该参数有效。 当前支持用户手动按顺序存放R、G、B分量或Y、U、V分量的值。若输入输出都是YUV格式，填充YUV分量的值；反之，填充的是RGB分量的值。 |
| borderType | 输入 | 填充枚举类型。类型定义请参见acldvppBorderType。 |
| top | 输入 | 图像上方填充的像素数。 |
| bottom | 输入 | 图像下方填充的像素数。 |
| left | 输入 | 图像左方填充的像素数。 |
| right | 输入 | 图像右方填充的像素数。 |


#### 返回值说明

返回0表示成功，返回其他值表示失败，请参见aclError。
