acldvppCreateRoiConfig

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function

Creates data of the acldvppRoiConfig type as an ROI configuration.

To destroy data of the acldvppRoiConfig type, call acldvppDestroyRoiConfig.

Prototype

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

Parameters

Parameter

Input/Output

Description

left

Input

Left offset.

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

right

Input

Right offset.

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

top

Input

Top offset.

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

bottom

Input

Bottom offset.

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

Returns

  • Success: a pointer to data of the acldvppRoiConfig type
  • Failure: nullptr