Function: dvpp_set_roi_config_right

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

Sets the location of an ROI: right offset.

Prototype

  • C Prototype
    1
    aclError acldvppSetRoiConfigRight (acldvppRoiConfig *config, uint32_t right)
    
  • Python Function
    1
    ret = acl.media.dvpp_set_roi_config_right (roi_config, right)
    

Parameters

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.

right

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).

Return Values

Return Value

Description

ret

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