函数:dvpp_set_border_config_value
产品支持情况
产品  | 
是否支持  | 
|---|---|
√  | 
|
√  | 
|
x  | 
|
√  | 
|
√  | 
|
x  | 
使用说明
C函数原型  | 
aclError acldvppSetBorderConfigValue(acldvppBorderConfig *borderConfig, uint32_t index, double value);  | 
|---|---|
Python函数  | 
ret = acl.media.dvpp_set_border_config_value(border_config, index, value)  | 
函数功能  | 
设置边界填充配置参数:颜色分量对应像素值。  | 
输入说明  | 
border_config:int,表示边界填充配置数据的指针地址。需提前调用acl.media.dvpp_create_border_config接口创建acldvppBorderConfig类型的数据。 index:int,表示颜色分量数组的下标。0表示R或Y分量,1表示G或U分量,2表示B或V分量,3为预留值。 value:float,指定填充的各颜色分量的像素值。仅当“border_type”(填充枚举类型,具体请参见函数:dvpp_set_border_config_border_type)设置为“BORDER_CONSTANT”时,该参数有效。当前支持用户手动按顺序存放R、G、B分量或Y、U、V分量的值。若输入输出都是YUV格式,填充YUV分量的值,反之,填充的是RGB分量的值。  | 
返回值说明  | 
ret:int,错误码。 
  | 
约束说明  | 
无  |