36 #define DEFAULTTEXTCOLOR        "\xff\xff\xff\x00", 4 
   37 #define TRANSPARENTCOLOR        "\xff\xff\xff\xff", 4 
   38 #define BLACKCOLOR              "\x00\x00\x00\x00", 4 
   39 #define DEFAULTSLIDERCOLOR      "\xff\xff\xff\x00", 4 
   40 #define DEFAULTBUTTONCOLOR      "\x50\x50\x50\x00", 4 
   41 #define DEFAULTHIGHLIGHTCOLOR   "\xff\xff\xff\x00", 4 
   42 #define DEFAULTDESKTOPCOLOUR    "\x00\x00\x00\x00", 4 
   47 #define RGB(r, g, b)        (0xff000000 | ((r) << 16) | ((g) << 8) | (b)) 
   48 #define RGBT(r, g, b, t)    ((((t) ^ 0xff) << 24) | ((r) << 16) | ((g) << 8) | (b)) 
   54 #define GetRValue(osdcolour)        (((osdcolour) >> 16) & 0xff) 
   55 #define GetGValue(osdcolour)        (((osdcolour) >> 8) & 0xff) 
   56 #define GetBValue(osdcolour)        ((osdcolour) & 0xff) 
   57 #define GetTValue(osdcolour)        (((osdcolour) >> 24) ^ 0xff) 
   58 #define GetAValue(osdcolour)        ((osdcolour) >> 24) 
   60 #define GetYValue(red, green, blue) ((U8BIT) (((77 * red + 150 * green + 29 * blue) / 256))) 
   61 #define GetCBValue(red, green, blue) ((U8BIT)((-44 * red - 87 * green + 131 * blue) / 256 + 128)) 
   62 #define GetCRValue(red, green, blue) ((U8BIT)((131 * red - 110 * green - 21 * blue) / 256 + 128)) 
   63 #define GetMixValue(transparency)     ((255 - transparency) / (255 / 63)) 
   66 #define DESKTOP_COLOUR      (RGBT(0, 0, 0, 0)) 
   69 #define FULLY_TRANSPARENT   (RGBT(0, 0, 0, 255)) 
Definition: tmcolor.h:108
Definition: tmcolor.h:103
Definition: tmcolor.h:114
Definition: tmcolor.h:100
E_MHEG_COLOURS
Definition: tmcolor.h:74
U32BIT OSDColor
Definition: osdtypes.h:41
Definition: tmcolor.h:105
Definition: tmcolor.h:111
uint8_t U8BIT
Definition: techtype.h:93
OSDColor OSDgetColour(const char *colour, int len)
Converts an MHEG5 colour value to an OSDColor type. 
Definition: tmcolor.c:53
U8BIT transparancy
Definition: tmcolor.h:121
Definition: tmcolor.h:109
U8BIT blue
Definition: tmcolor.h:124
Definition: tmcolor.h:101
Definition: tmcolor.h:107
int len
Definition: mh5gate.c:66
MHEG5String OSDsetColour(OSDColor colour)
Converts an OSDColor type into an MHEG5 colour value For UK1 profile only RGBTCOLOR is defined...
Definition: tmcolor.c:210
Definition: tmcolor.h:104
Definition: tmcolor.h:106
Definition: tmcolor.h:110
Definition: tmcolor.h:112
Definition: tmcolor.h:116
Definition: tmcolor.h:115
Definition: tmcolor.h:119
U8BIT green
Definition: tmcolor.h:123
Definition: tmcolor.h:113
Definition: tmcolor.h:102
U8BIT red
Definition: tmcolor.h:122