Function: dvpp_create_resize_config

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas training products

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

Creates data of the acldvppResizeConfig type as an image resizing configuration.

To destroy data of the acldvppResizeConfig type, call acl.media.dvpp_destroy_resize_config.

For the Atlas training products, the high-order filtering algorithm developed by Huawei is used by default.

For the Atlas inference products, the conventional bilinear algorithm is used by default.

For the Atlas A2 training products/Atlas A2 inference products, the conventional bilinear algorithm is used by default.

For the Atlas 200I/500 A2 inference products, the conventional bilinear algorithm is used by default.

For the Atlas A3 training products/Atlas A3 inference products, the conventional bilinear algorithm is used by default.

Prototype

  • C Prototype
    1
    acldvppResizeConfig *acldvppCreateResizeConfig()
    
  • Python Function
    1
    dvpp_resize_config = acl.media.dvpp_create_resize_config()
    

Parameter Description

None.

Return Value Description

Return Value

Description

dvpp_resize_config

Int, pointer address of acldvppResizeConfig type data.

  • If a non-zero value is returned, the operation is successful.
  • If 0 is returned, the operation fails.