hi_tde_blend_cmd

Description

Blending command options.

Prototype

typedef enum {
    HI_TDE_BLEND_CMD_NONE = 0x0,
    HI_TDE_BLEND_CMD_CLEAR,
    HI_TDE_BLEND_CMD_SRC,
    HI_TDE_BLEND_CMD_SRCOVER,
    HI_TDE_BLEND_CMD_DSTOVER,
    HI_TDE_BLEND_CMD_SRCIN,
    HI_TDE_BLEND_CMD_DSTIN,
    HI_TDE_BLEND_CMD_SRCOUT,
    HI_TDE_BLEND_CMD_DSTOUT,
    HI_TDE_BLEND_CMD_SRCATOP,
    HI_TDE_BLEND_CMD_DSTATOP,
    HI_TDE_BLEND_CMD_ADD,
    HI_TDE_BLEND_CMD_XOR,
    HI_TDE_BLEND_CMD_DST,
    HI_TDE_BLEND_CMD_CONFIG,
    HI_TDE_BLEND_CMD_MAX
} hi_tde_blend_cmd;

Members

The description contains the following definitions:

ff: mixing coefficient of the foreground image, ranging from [0, 1].

bf: background image mixing coefficient, ranging from [0, 1].

fa: transparency of the foreground image, ranging from [0, 1].

ba: transparency of the background image, ranging from [0, 1].

Member

Description

HI_TDE_BLEND_CMD_NONE

ff is valued at fa and bf is valued at 1.0 – fa.

HI_TDE_BLEND_CMD_CLEAR

ff is valued at 0.0 and fd is valued at 0.0.

HI_TDE_BLEND_CMD_SRC

ff is valued at 1.0 and fd is valued at 0.0.

HI_TDE_BLEND_CMD_SRCOVER

ff is valued at 1.0 and bf is valued at 1.0 – fa.

HI_TDE_BLEND_CMD_DSTOVER

ff is valued at 1.0 – ba and bf is valued at 1.0.

HI_TDE_BLEND_CMD_SRCIN

ff is valued at ba and bf is valued at 0.0.

HI_TDE_BLEND_CMD_DSTIN

ff is valued at 0.0 and bf is valued at fa.

HI_TDE_BLEND_CMD_SRCOUT

ff is valued at 1.0 – ba and bf is valued at 0.0.

HI_TDE_BLEND_CMD_DSTOUT

ff is valued at 0.0 and bf is valued at 1.0 – fa.

HI_TDE_BLEND_CMD_SRCATOP

ff is valued at ba and bf is valued at 1.0 – fa.

HI_TDE_BLEND_CMD_DSTATOP

ff is valued at 1.0 - ba and bf is valued at fa.

HI_TDE_BLEND_CMD_ADD

ff is valued at 1.0 and bf is valued at 1.0.

HI_TDE_BLEND_CMD_XOR

ff is valued at 1.0 – ba and bf is valued at 1.0 – fa.

HI_TDE_BLEND_CMD_DST

ff is valued at 0.0 and bf is valued at 1.0.

HI_TDE_BLEND_CMD_CONFIG

User-defined parameter rule.

HI_TDE_BLEND_CMD_MAX

Invalid blending option.