Function: dvpp_create_roi_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 acldvppRoiConfig type as an ROI configuration.

To destroy data of the acldvppRoiConfig type, see acl.media.dvpp.destroy_roi_config.

Prototype

  • C Prototype
    1
    acldvppRoiConfig *acldvppCreateRoiConfig(uint32_t left, uint32_t right, uint32_t top, uint32_t bottom)
    
  • Python Function
    1
    dvpp_roi_config = acl.media.dvpp_create_roi_config(left, right, top, bottom)
    

Parameters

Parameter

Description

left

Int, right offset.

  • Must be an even number on Atlas training products. If used to describe the paste ROI, the left offset must be rounded up to the nearest multiple of 16.
  • Can be an odd or even number on Atlas inference products. If used to describe the paste ROI, the left offset must be rounded up to the nearest multiple of 16.
  • Can be an odd or even number on Atlas A2 products (no alignment requirement).
  • Can be an odd or even number on Atlas A3 products (no alignment requirement).

right

Int, right offset.

  • Must be an odd number on Atlas training products.
  • Can be an odd or even number on Atlas inference products.
  • Can be an odd or even number on Atlas A2 products.
  • Can be an odd or even number on Atlas A3 products.

top

Int, top offset.

  • Must be an even number on Atlas training products.
  • Can be an odd or even number on Atlas inference products.
  • Can be an odd or even number on Atlas A2 products.
  • Can be an odd or even number on Atlas A3 products.

bottom

Int, bottom offset.

  • Must be an odd number on Atlas training products.
  • Can be an odd or even number on Atlas inference products.
  • Can be an odd or even number on Atlas A2 products.
  • Can be an odd or even number on Atlas A3 products.

Return Values

Return Value

Description

dvpp_roi_config

Int, pointer address of the data of the acldvppRoiConfig type.

  • Non-zero: success
  • 0: failure