Macros
Defines
Graphics » HAL GFX » GFX BLENDER
Collaboration diagram for Defines:

## Macros
#define | HAL_GFX_BF_ZERO (0x0U)
| 0 More...
#define | HAL_GFX_BF_ONE (0x1U)
| 1 More...
#define | HAL_GFX_BF_SRCCOLOR (0x2U)
| Sc. More...
#define | HAL_GFX_BF_INVSRCCOLOR (0x3U)
| (1-Sc) More...
#define | HAL_GFX_BF_SRCALPHA (0x4U)
| Sa. More...
#define | HAL_GFX_BF_INVSRCALPHA (0x5U)
| (1-Sa) More...
#define | HAL_GFX_BF_DESTALPHA (0x6U)
| Da. More...
#define | HAL_GFX_BF_INVDESTALPHA (0x7U)
| (1-Da) More...
#define | HAL_GFX_BF_DESTCOLOR (0x8U)
| Dc. More...
#define | HAL_GFX_BF_INVDESTCOLOR (0x9U)
| (1-Dc) More...
#define | HAL_GFX_BF_CONSTCOLOR (0xaU)
| Cc. More...
#define | HAL_GFX_BF_CONSTALPHA (0xbU)
| Ca. More...
#define | HAL_GFX_BL_SIMPLE ( (uint32_t)HAL_GFX_BF_SRCALPHA | ((uint32_t)HAL_GFX_BF_INVSRCALPHA <<8) )
| Sa * Sa + Da * (1 - Sa) More...
#define | HAL_GFX_BL_CLEAR ( (uint32_t)HAL_GFX_BF_ZERO /*| ((uint32_t)HAL_GFX_BF_ZERO <<8)*/)
| 0 More...
#define | HAL_GFX_BL_SRC ( (uint32_t)HAL_GFX_BF_ONE /*| ((uint32_t)HAL_GFX_BF_ZERO <<8)*/)
| Sa. More...
#define | HAL_GFX_BL_SRC_OVER ( (uint32_t)HAL_GFX_BF_ONE | ((uint32_t)HAL_GFX_BF_INVSRCALPHA <<8) )
| Sa + Da * (1 - Sa) More...
#define | HAL_GFX_BL_DST_OVER ( (uint32_t)HAL_GFX_BF_INVDESTALPHA | ((uint32_t)HAL_GFX_BF_ONE <<8) )
| Sa * (1 - Da) + Da. More...
#define | HAL_GFX_BL_SRC_IN ( (uint32_t)HAL_GFX_BF_DESTALPHA /*| ((uint32_t)HAL_GFX_BF_ZERO <<8)*/)
| Sa * Da. More...
#define | HAL_GFX_BL_DST_IN (/*(uint32_t)HAL_GFX_BF_ZERO |*/ ((uint32_t)HAL_GFX_BF_SRCALPHA <<8) )
| Da * Sa. More...
#define | HAL_GFX_BL_SRC_OUT ( (uint32_t)HAL_GFX_BF_INVDESTALPHA/*| ((uint32_t)HAL_GFX_BF_ZERO <<8)*/ )
| Sa * (1 - Da) More...
#define | HAL_GFX_BL_DST_OUT (/*(uint32_t)HAL_GFX_BF_ZERO |*/ ((uint32_t)HAL_GFX_BF_INVSRCALPHA <<8) )
| Da * (1 - Sa) More...
#define | HAL_GFX_BL_SRC_ATOP ( (uint32_t)HAL_GFX_BF_DESTALPHA | ((uint32_t)HAL_GFX_BF_INVSRCALPHA <<8) )
| Sa * Da + Da * (1 - Sa) More...
#define | HAL_GFX_BL_DST_ATOP ( (uint32_t)HAL_GFX_BF_INVDESTALPHA | ((uint32_t)HAL_GFX_BF_SRCALPHA <<8) )
| Sa * (1 - Da) + Da * Sa. More...
#define | HAL_GFX_BL_ADD ( (uint32_t)HAL_GFX_BF_ONE | ((uint32_t)HAL_GFX_BF_ONE <<8) )
| Sa + Da. More...
#define | HAL_GFX_BL_XOR ( (uint32_t)HAL_GFX_BF_INVDESTALPHA | ((uint32_t)HAL_GFX_BF_INVSRCALPHA <<8) )
| Sa * (1 - Da) + Da * (1 - Sa) More...
#define | HAL_GFX_BLOP_NONE (0U)
| No extra blending operation. More...
#define | HAL_GFX_BLOP_STENCIL_TXTY (0x00800000U)
| Use TEX3 as mask. More...
#define | HAL_GFX_BLOP_STENCIL_XY (0x00400000U)
| Use TEX3 as mask. More...
#define | HAL_GFX_BLOP_NO_USE_ROPBL (0x01000000U)
| Don't use Rop Blender even if present. More...
#define | HAL_GFX_BLOP_DST_CKEY_NEG (0x02000000U)
| Apply Inverse Destination Color Keying - draw only when dst color doesn't match colorkey. More...
#define | HAL_GFX_BLOP_SRC_PREMULT (0x04000000U)
| Premultiply Source Color with Source Alpha (cannot be used with HAL_GFX_BLOP_MODULATE_RGB) More...
#define | HAL_GFX_BLOP_MODULATE_A (0x08000000U)
| Modulate by Constant Alpha value. More...
#define | HAL_GFX_BLOP_FORCE_A (0x10000000U)
| Force Constant Alpha value. More...
#define | HAL_GFX_BLOP_MODULATE_RGB (0x20000000U)
| Modulate by Constant Color (RGB) values. More...
#define | HAL_GFX_BLOP_SRC_CKEY (0x40000000U)
| Apply Source Color Keying - draw only when src color doesn't match colorkey. More...
#define | HAL_GFX_BLOP_DST_CKEY (0x80000000U)
| Apply Destination Color Keying - draw only when dst color matches colorkey. More...
#define | HAL_GFX_BLOP_MASK (0xffc00000U)
| blending operation mask More...

## Detailed Description

## Macro Definition Documentation

## ◆ HAL_GFX_BF_CONSTALPHA

#define HAL_GFX_BF_CONSTALPHA (0xbU)

Ca.

Definition at line 77 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BF_CONSTCOLOR

#define HAL_GFX_BF_CONSTCOLOR (0xaU)

Cc.

Definition at line 76 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BF_DESTALPHA

#define HAL_GFX_BF_DESTALPHA (0x6U)

Da.

Definition at line 72 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BF_DESTCOLOR

#define HAL_GFX_BF_DESTCOLOR (0x8U)

Dc.

Definition at line 74 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BF_INVDESTALPHA

#define HAL_GFX_BF_INVDESTALPHA (0x7U)

(1-Da)

Definition at line 73 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BF_INVDESTCOLOR

#define HAL_GFX_BF_INVDESTCOLOR (0x9U)

(1-Dc)

Definition at line 75 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BF_INVSRCALPHA

#define HAL_GFX_BF_INVSRCALPHA (0x5U)

(1-Sa)

Definition at line 71 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BF_INVSRCCOLOR

#define HAL_GFX_BF_INVSRCCOLOR (0x3U)

(1-Sc)

Definition at line 69 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BF_ONE

#define HAL_GFX_BF_ONE (0x1U)

1

Definition at line 67 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BF_SRCALPHA

#define HAL_GFX_BF_SRCALPHA (0x4U)

Sa.

Definition at line 70 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BF_SRCCOLOR

#define HAL_GFX_BF_SRCCOLOR (0x2U)

Sc.

Definition at line 68 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BF_ZERO

#define HAL_GFX_BF_ZERO (0x0U)

0

Definition at line 66 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BL_ADD

#define HAL_GFX_BL_ADD ( (uint32_t)HAL_GFX_BF_ONE | ((uint32_t)HAL_GFX_BF_ONE <<8) )

Sa + Da.

Definition at line 91 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BL_CLEAR

#define HAL_GFX_BL_CLEAR ( (uint32_t)HAL_GFX_BF_ZERO /*| ((uint32_t)HAL_GFX_BF_ZERO <<8)*/)

0

Definition at line 81 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BL_DST_ATOP

#define HAL_GFX_BL_DST_ATOP ( (uint32_t)HAL_GFX_BF_INVDESTALPHA | ((uint32_t)HAL_GFX_BF_SRCALPHA <<8) )

Sa * (1 - Da) + Da * Sa.

Definition at line 90 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BL_DST_IN

#define HAL_GFX_BL_DST_IN (/*(uint32_t)HAL_GFX_BF_ZERO |*/ ((uint32_t)HAL_GFX_BF_SRCALPHA <<8) )

Da * Sa.

Definition at line 86 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BL_DST_OUT

#define HAL_GFX_BL_DST_OUT (/*(uint32_t)HAL_GFX_BF_ZERO |*/ ((uint32_t)HAL_GFX_BF_INVSRCALPHA <<8) )

Da * (1 - Sa)

Definition at line 88 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BL_DST_OVER

#define HAL_GFX_BL_DST_OVER ( (uint32_t)HAL_GFX_BF_INVDESTALPHA | ((uint32_t)HAL_GFX_BF_ONE <<8) )

Sa * (1 - Da) + Da.

Definition at line 84 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BL_SIMPLE

#define HAL_GFX_BL_SIMPLE ( (uint32_t)HAL_GFX_BF_SRCALPHA | ((uint32_t)HAL_GFX_BF_INVSRCALPHA <<8) )

Sa * Sa + Da * (1 - Sa)

Definition at line 80 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BL_SRC

#define HAL_GFX_BL_SRC ( (uint32_t)HAL_GFX_BF_ONE /*| ((uint32_t)HAL_GFX_BF_ZERO <<8)*/)

Sa.

Definition at line 82 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BL_SRC_ATOP

#define HAL_GFX_BL_SRC_ATOP ( (uint32_t)HAL_GFX_BF_DESTALPHA | ((uint32_t)HAL_GFX_BF_INVSRCALPHA <<8) )

Sa * Da + Da * (1 - Sa)

Definition at line 89 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BL_SRC_IN

#define HAL_GFX_BL_SRC_IN ( (uint32_t)HAL_GFX_BF_DESTALPHA /*| ((uint32_t)HAL_GFX_BF_ZERO <<8)*/)

Sa * Da.

Definition at line 85 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BL_SRC_OUT

#define HAL_GFX_BL_SRC_OUT ( (uint32_t)HAL_GFX_BF_INVDESTALPHA/*| ((uint32_t)HAL_GFX_BF_ZERO <<8)*/ )

Sa * (1 - Da)

Definition at line 87 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BL_SRC_OVER

#define HAL_GFX_BL_SRC_OVER ( (uint32_t)HAL_GFX_BF_ONE | ((uint32_t)HAL_GFX_BF_INVSRCALPHA <<8) )

Sa + Da * (1 - Sa)

Definition at line 83 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BL_XOR

#define HAL_GFX_BL_XOR ( (uint32_t)HAL_GFX_BF_INVDESTALPHA | ((uint32_t)HAL_GFX_BF_INVSRCALPHA <<8) )

Sa * (1 - Da) + Da * (1 - Sa)

Definition at line 92 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BLOP_DST_CKEY

#define HAL_GFX_BLOP_DST_CKEY (0x80000000U)

Apply Destination Color Keying - draw only when dst color matches colorkey.

Definition at line 105 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BLOP_DST_CKEY_NEG

#define HAL_GFX_BLOP_DST_CKEY_NEG (0x02000000U)

Apply Inverse Destination Color Keying - draw only when dst color doesn't match colorkey.

Definition at line 99 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BLOP_FORCE_A

#define HAL_GFX_BLOP_FORCE_A (0x10000000U)

Force Constant Alpha value.

Definition at line 102 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BLOP_MASK

#define HAL_GFX_BLOP_MASK (0xffc00000U)

blending operation mask

Definition at line 106 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BLOP_MODULATE_A

#define HAL_GFX_BLOP_MODULATE_A (0x08000000U)

Modulate by Constant Alpha value.

Definition at line 101 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BLOP_MODULATE_RGB

#define HAL_GFX_BLOP_MODULATE_RGB (0x20000000U)

Modulate by Constant Color (RGB) values.

Definition at line 103 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BLOP_NO_USE_ROPBL

#define HAL_GFX_BLOP_NO_USE_ROPBL (0x01000000U)

Don't use Rop Blender even if present.

Definition at line 98 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BLOP_NONE

#define HAL_GFX_BLOP_NONE (0U)

No extra blending operation.

Definition at line 95 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BLOP_SRC_CKEY

#define HAL_GFX_BLOP_SRC_CKEY (0x40000000U)

Apply Source Color Keying - draw only when src color doesn't match colorkey.

Definition at line 104 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BLOP_SRC_PREMULT

#define HAL_GFX_BLOP_SRC_PREMULT (0x04000000U)

Premultiply Source Color with Source Alpha (cannot be used with HAL_GFX_BLOP_MODULATE_RGB)

Definition at line 100 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BLOP_STENCIL_TXTY

#define HAL_GFX_BLOP_STENCIL_TXTY (0x00800000U)

Use TEX3 as mask.

Definition at line 96 of file hal_gfx_blender.h.

## ◆ HAL_GFX_BLOP_STENCIL_XY

#define HAL_GFX_BLOP_STENCIL_XY (0x00400000U)

Use TEX3 as mask.

Definition at line 97 of file hal_gfx_blender.h.