Function: dvpp_create_resize_config

Applicable Products

Product

Supported (√/x)

Ascend 950PR&950DT products

x

Atlas A3 products

√

Atlas A2 products

√

Atlas training products

√

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Description

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

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

Atlas training products use the proprietary high-order filtering algorithm by default.

Atlas inference products use the conventional bilinear algorithm by default.

Atlas A2 products use the conventional bilinear algorithm by default.

Atlas 200I/500 A2 inference products use the conventional bilinear algorithm by default.

Atlas A3 products use the conventional bilinear algorithm by default.

Prototype

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

Parameters

None

Return Values

Return Value

Description

dvpp_resize_config

Int, pointer address of acldvppResizeConfig type data.

  • Non-zero: success
  • 0: failure