# acldvppGetBorderConfig系列接口

#### 产品支持情况

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


#### 功能说明

获取边界填充配置参数。


#### 函数原型

```
double acldvppGetBorderConfigValue(const acldvppBorderConfig *borderConfig, uint32_t index)
acldvppBorderType acldvppGetBorderConfigBorderType(const acldvppBorderConfig *borderConfig)
uint32_t acldvppGetBorderConfigTop(const acldvppBorderConfig *borderConfig)
uint32_t acldvppGetBorderConfigBottom(const acldvppBorderConfig *borderConfig)
uint32_t acldvppGetBorderConfigLeft(const acldvppBorderConfig *borderConfig)
uint32_t acldvppGetBorderConfigRight(const acldvppBorderConfig *borderConfig)
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| borderConfig | 输入 | 边界填充配置数据的指针。 需先调用acldvppCreateBorderConfig接口创建acldvppBorderConfig类型的数据，调用acldvppSetBorderConfig系列接口设置边界填充数据。 |
| index | 输入 | 表示颜色分量数组的下标。 0表示R或Y分量，1表示G或U分量，2表示B或V分量，3是预留值。 |


#### 返回值说明

| 参数名 | 说明 |
| --- | --- |
| value | 表示对应颜色分量的值。 |
| borderType | 填充枚举类型。类型定义请参见acldvppBorderType。 |
| top | 图像上方填充的像素数。 |
| bottom | 图像下方填充的像素数。 |
| left | 图像左方填充的像素数。 |
| right | 图像右方填充的像素数。 |
