hi_tde_blend_mode
Description
Blend command options.
Prototype
typedef enum {
HI_TDE_BLEND_ZERO = 0x0,
HI_TDE_BLEND_ONE,
HI_TDE_BLEND_SRC2COLOR,
HI_TDE_BLEND_INVSRC2COLOR,
HI_TDE_BLEND_SRC2ALPHA,
HI_TDE_BLEND_INVSRC2ALPHA,
HI_TDE_BLEND_SRC1COLOR,
HI_TDE_BLEND_INVSRC1COLOR,
HI_TDE_BLEND_SRC1ALPHA,
HI_TDE_BLEND_INVSRC1ALPHA,
HI_TDE_BLEND_SRC2ALPHASAT,
HI_TDE_BLEND_MAX
} hi_tde_blend_mode;
Members
The description contains the following definitions:
ff: blend factor of the foreground image, ranging from [0, 1].
bf: background image blend factor, 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_ZERO |
The blend factor is 0. |
HI_TDE_BLEND_ONE |
The blend factor is 1. |
HI_TDE_BLEND_SRC2COLOR |
The blend factor is fc. |
HI_TDE_BLEND_INVSRC2COLOR |
The blend factor is 1-fc. |
HI_TDE_BLEND_SRC2ALPHA |
The blend factor is fa. |
HI_TDE_BLEND_INVSRC2ALPHA |
The blend factor is 1- fa. |
HI_TDE_BLEND_SRC1COLOR |
The blend factor is bc. |
HI_TDE_BLEND_INVSRC1COLOR |
The blend factor is 1-bc. |
HI_TDE_BLEND_SRC1ALPHA |
The blend factor is ba. |
HI_TDE_BLEND_INVSRC1ALPHA |
The blend factor is 1-ba. |
HI_TDE_BLEND_SRC2ALPHASAT |
The blend factor is min(1 – ba, fa) + 1. |
HI_TDE_BLEND_MAX |
Invalid alpha blend mode. |