Function: dvpp_set_border_config_value

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

x

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas training products

x

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Description

Sets the border configuration parameter: pixel value corresponding to the color component.

Prototype

  • C Prototype
    1
    aclError acldvppSetBorderConfigValue(acldvppBorderConfig *borderConfig, uint32_t index, double value);
    
  • Python Function
    1
    ret = acl.media.dvpp_set_border_config_value(border_config, index, value)
    

Parameters

Parameter

Description

border_config

Int, pointer address of the border making configuration data. Call acl.media.dvpp_create_border_config to create data of the acldvppBorderConfig type in advance.

index

Int, element index of the color component array. The value 0 indicates the R or Y component, the value 1 indicates the G or U component, the value 2 indicates the B or V component, and the value 3 is reserved.

value

Float, specifying the pixel value of each color component to be filled. This parameter is valid only when border_type (enumerated type. For details, see Function: dvpp_set_border_config_border_type) is set to BORDER_CONSTANT. You can set the values of the RGB or YUV components in sequence. If both the input and output are in YUV format, the YUV component values are used. Otherwise, the RGB component values are used.

Return Value

Return Value

Description

ret

Int, error code. 0 on success; else, failure.