Function: set_aipp_ax_swap_switch

C Prototype

aclError aclmdlSetAIPPAxSwapSwitch(aclmdlAIPP *aippParmsSet, int8_t axSwapSwitch)

Python Function

ret = acl.mdl.set_aipp_ax_swap_switch(aipp_parms_set, ax_swap_switch)

Function Usage

Sets the RGBA-to-ARGB or YUVA-to-AYUV swap switch in dynamic AIPP scenarios.

Input 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->ARGB or YUVA->AYUV switch.

Values:

  • 0 (default): disabled
  • 1: enabled

Return Value

ret: int, error code.

Restrictions

None