Function: dvpp_set_roi_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

Sets an ROI configuration.

Prototype

  • C Prototype
    1
    aclError acldvppSetRoiConfig(acldvppRoiConfig *config, uint32_t left, uint32_t right, uint32_t top, uint32_t bottom)
    
  • Python Function
    1
    ret = acl.media.dvpp_set_roi_config(roi_config, left, right, top, bottom)
    

Parameter Description

Parameter

Description

roi_config

Int, pointer address of the location data of a specified ROI. Call acl.media.dvpp_create_roi_config in advance to create data.

left

Int, left offset.

  • Must be an even number on the 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 the 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 the Atlas A2 training products/Atlas A2 inference products (no alignment requirement).
  • Can be an odd or even number on the Atlas A3 training products/Atlas A3 inference products (no alignment requirement).

right

Int, right offset.

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

top

Int, top offset.

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

bottom

Int, bottom offset.

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

Return Value Description

Return Value

Description

ret

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