Function: set_aipp_src_image_size
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
Sets the source image size (height and width), required in the dynamic AIPP scenario.
Prototype
- C Prototype
1aclError aclmdlSetAIPPSrcImageSize(aclmdlAIPP *aippParmsSet, int32_t srcImageSizeW, int32_t srcImageSizeH)
- Python Function
1ret = acl.mdl.set_aipp_src_image_size(aipp_parms_set, src_image_size_w, src_image_size_h)
Parameter Description
|
Parameter |
Description |
|---|---|
|
aipp_parms_set |
Int, dynamic AIPP configuration object. The aclmdlAIPP data must be created by the acl.mdl.create_aipp call in advance. |
|
src_image_size_w |
Int, source image width. For the YUV420SP_U8 format, the value must be an even number. Value range: [2, 4096]. |
|
src_image_size_h |
Int, source image height. For the YUV420SP_U8 format, the value must be an even number. Value range: [1, 4096]. |
Return Value Description
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code.
|