Function: dvpp_create_resize_config

Applicability

Product

Supported

Atlas 350 Accelerator Card

x

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas training product

Atlas inference product

Atlas 200I/500 A2 inference product

Description

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 product, the high-order filtering algorithm developed by Huawei is used by default.

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

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

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

For the Atlas A3 training product/Atlas A3 inference product, 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()
    

Parameters

None

Return Value

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.