acldvppSetRoiConfig Series

Description

Sets an ROI configuration.

Prototype

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

aclError acldvppSetRoiConfigLeft(acldvppRoiConfig *config, uint32_t left)

aclError acldvppSetRoiConfigRight(acldvppRoiConfig *config, uint32_t right)

aclError acldvppSetRoiConfigTop(acldvppRoiConfig *config, uint32_t top)

aclError acldvppSetRoiConfigBottom(acldvppRoiConfig *config, uint32_t bottom)

Parameters

Parameter

Input/Output

Description

config

Output

Pointer to the ROI configuration.

Call acldvppCreateRoiConfig to create data of the acldvppRoiConfig type in advance.

left

Input

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

Input

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

Input

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

Input

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.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.