Function: set_aipp_ax_swap_switch

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 RGBA-to-ARGB or YUVA-to-AYUV swap switch in dynamic AIPP scenarios.

Prototype

  • C Prototype
    1
    aclError aclmdlSetAIPPAxSwapSwitch(aclmdlAIPP *aippParmsSet, int8_t axSwapSwitch)
    
  • Python Function
    1
    ret = acl.mdl.set_aipp_ax_swap_switch(aipp_parms_set, ax_swap_switch)
    

Parameter Description

Parameter

Description

aipp_parms_set

Int, pointer address of the dynamic AIPP parameter object.

acl.mdl.create_aipp needs to be called in advance to create data of the aclmdlAIPP type.

ax_swap_switch

Int, RGBA to ARGB or YUVA to AYUV switch.

Value range:

  • 0 (default): disabled
  • 1: enabled

Return Value Description

Return Value

Description

ret

Int, error code.