MHEG  17.9.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Pages
Macros | Typedefs
osd_utils.h File Reference

OSD utility functions. More...

#include <techtype.h>

Go to the source code of this file.

Macros

#define GetRValue(osdcolour)   (((osdcolour) >> 16) & 0xff)
 
#define GetGValue(osdcolour)   (((osdcolour) >> 8) & 0xff)
 
#define GetBValue(osdcolour)   ((osdcolour) & 0xff)
 
#define GetTValue(osdcolour)   (((osdcolour) >> 24) ^ 0xff)
 
#define GetAValue(osdcolour)   ((osdcolour) >> 24)
 
#define RGB(r, g, b)   (0xff000000 | ((r) << 16) | ((g) << 8) | (b))
 
#define RGBT(r, g, b, t)   ((((t) ^ 0xff) << 24) | ((r) << 16) | ((g) << 8) | (b))
 
#define RGBA(r, g, b, a)   (((a) << 24) | ((r) << 16) | ((g) << 8) | (b))
 
#define MakeHD2Color(osdcol)
 

Typedefs

typedef U16BIT HD2Color
 

Detailed Description

OSD utility functions.

Date
11th December 2006
Author
Gary Pearman

Macro Definition Documentation

#define MakeHD2Color (   osdcol)
Value:
(((osdcol >> 16) & 0xf000) | ((osdcol >> 12) & 0x0f00) \
| ((osdcol >> 8) & 0x00f0) | ((osdcol >> 4) & 0x000f))