Function: dvpp_create_roi_config

C Prototype

acldvppRoiConfig *acldvppCreateRoiConfig(uint32_t left, uint32_t right, uint32_t top, uint32_t bottom)

Python Function

dvpp_roi_config = acl.media.dvpp_create_roi_config(left, right, top, bottom)

Function Usage

Creates data of the acldvppRoiConfig type as an ROI configuration.

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

Input Description

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

dvpp_roi_config: int, pointer address of the data of the acldvppRoiConfig type.

  • If a non-zero value is returned, the operation is successful.
  • If 0 is returned, the operation fails.