Function: set_aipp_src_image_size

C Prototype

aclError aclmdlSetAIPPSrcImageSize(aclmdlAIPP *aippParmsSet, int32_t srcImageSizeW, int32_t srcImageSizeH)

Python Function

ret = acl.mdl.set_aipp_src_image_size(aipp_parms_set, src_image_size_w, src_image_size_h)

Function Usage

Sets the source image size (height and width), required in the dynamic AIPP scenario.

Input Description

aipp_parms_set: int, dynamic AIPP configuration object. The aclmdlAIPP data must be created by calling acl.mdl.create_aipp 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

ret: int, error code.

Restrictions

None