acldvppSetRoiConfig Series

Description

Sets an ROI configuration. This API is synchronous.

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. For a paste ROI, the left offset must be rounded up to the nearest multiple of 16.

  • Must be an even number on the Ascend 310 AI Processor.
  • Must be an even number on the Ascend 910 AI Processor.
  • Can be an odd or even number on the Ascend 310P AI Processor.

right

Input

Right offset.

  • Must be an odd number on the Ascend 310 AI Processor.
  • Must be an odd number on the Ascend 910 AI Processor.
  • Can be an odd or even number on the Ascend 310P AI Processor.

top

Input

Top offset.

  • Must be an even number on the Ascend 310 AI Processor.
  • Must be an even number on the Ascend 910 AI Processor.
  • Can be an odd or even number on the Ascend 310P AI Processor.

bottom

Input

Bottom offset.

  • Must be an odd number on the Ascend 310 AI Processor.
  • Must be an odd number on the Ascend 910 AI Processor.
  • Can be an odd or even number on the Ascend 310P AI Processor.

Returns

0 on success; else, failure.