Function: set_aipp_src_image_size

Applicability

Product

Supported (√/x)

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas training products

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

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

Prototype

  • C Prototype
    1
    aclError aclmdlSetAIPPSrcImageSize(aclmdlAIPP *aippParmsSet, int32_t srcImageSizeW, int32_t srcImageSizeH)
    
  • Python Function
    1
    ret = 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.