Description
Creates data of the acldvppRoiConfig type as an ROI configuration. This API is synchronous.
To destroy data of the acldvppRoiConfig type, call acldvppDestroyRoiConfig.
Prototype
acldvppRoiConfig *acldvppCreateRoiConfig(
uint32_t left,
uint32_t right,
uint32_t top,
uint32_t bottom)
Parameters
Parameter |
Input/Output |
Description |
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
- Success: a pointer to data of the acldvppRoiConfig type
- Failure: nullptr