42 #define GetRValue(osdcolour) (((osdcolour) >> 16) & 0xff)
43 #define GetGValue(osdcolour) (((osdcolour) >> 8) & 0xff)
44 #define GetBValue(osdcolour) ((osdcolour) & 0xff)
45 #define GetTValue(osdcolour) (((osdcolour) >> 24) ^ 0xff)
46 #define GetAValue(osdcolour) ((osdcolour) >> 24)
52 #define RGB(r, g, b) (0xff000000 | ((r) << 16) | ((g) << 8) | (b))
53 #define RGBT(r, g, b, t) ((((t) ^ 0xff) << 24) | ((r) << 16) | ((g) << 8) | (b))
54 #define RGBA(r, g, b, a) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b))
56 #define MakeHD2Color(osdcol) (((osdcol >> 16) & 0xf000) | ((osdcol >> 12) & 0x0f00) \
57 | ((osdcol >> 8) & 0x00f0) | ((osdcol >> 4) & 0x000f))
75 #ifndef PALETTE_OFFSET
76 #define PALETTE_OFFSET 0
78 #define OFFSET_TRANS (PALETTE_OFFSET + 0)
79 #define OFFSET_OPAQUE (PALETTE_OFFSET + 49)
115 void OSD_BlendPixels(
U8BIT *pixel,
U8BIT colour);
126 #define OSD_IsColourOpaque(colour) (colour >= OFFSET_OPAQUE)
U32BIT OSDColor
Definition: osdtypes.h:41
uint8_t U8BIT
Definition: techtype.h:93
uint16_t U16BIT
Definition: techtype.h:95
System Wide Global Technical Data Type Definitions.
U16BIT HD2Color
Definition: osd_utils.h:70