Function: dvpp_set_resize_config_interpolation
Applicable Products
Product |
Supported (√/x) |
|---|---|
x |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Sets the image resizing algorithm.
Prototype
- C Prototype
1aclError acldvppSetResizeConfigInterpolation(acldvppResizeConfig *resizeConfig, uint32_t interpolation)
- Python Function
1ret = acl.media.dvpp_set_resize_config_interpolation(dvpp_resize_config, interpolation)
Parameters
Parameter |
Description |
|---|---|
dvpp_resize_config |
Int, pointer address of the resizing configuration data to be set. Call acl.media.dvpp_create_resize_config to create data of the acldvppResizeConfig type in advance. |
interpolation |
Int, resizing algorithm. You are advised to use the same resizing algorithm as that in model training.
|
Return Values
Return Value |
Description |
|---|---|
ret |
Int, error code: 0 on success; else, failure. |