Function: dvpp_set_roi_config

C Prototype

aclError acldvppSetRoiConfig(acldvppRoiConfig *config, uint32_t left, uint32_t right, uint32_t top, uint32_t bottom)

Python Function

ret = acl.media.dvpp_set_roi_config(roi_config, left, right, top, bottom)

Function Usage

Sets an ROI configuration.

Input Description

roi_config: int, pointer address of the location data of a specified region. Call acl.media.dvpp_create_roi_config in advance to create data.

left: int, left offset.

  • Must be an even number on the Atlas 200/300/500 Inference Product. If used to describe the paste ROI, the left offset must be rounded up to the nearest multiple of 16.
  • Must be an even number on the Atlas Training Series Product. If used to describe the paste ROI, the left offset must be rounded up to the nearest multiple of 16.

right: int, right offset.

  • Must be an odd number on the Atlas 200/300/500 Inference Product.
  • Must be an odd number on the Atlas Training Series Product.

top: int, top offset.

  • Must be an even number on the Atlas 200/300/500 Inference Product.
  • Must be an even number on the Atlas Training Series Product.

bottom: int, bottom offset.

  • Must be an odd number on the Atlas 200/300/500 Inference Product.
  • Must be an odd number on the Atlas Training Series Product.

Return Value

ret: int, error code.