![]() |
MHEG5
18.9.0
MHEG5 Documentation
|
general OSD functionality More...
#include "mh5profile.h"
#include "stb_osd.h"
#include "dvb_video.h"
#include "decoder.h"
#include "osd_utils.h"
#include "glue_memory.h"
#include "glue_debug.h"
#include "mg_api.h"
#include "mg_osd.h"
#include "mg_fontapi.h"
Go to the source code of this file.
Macros | |
#define | MAGIC_SURF 0x5e4f |
#define | DESKTOP_COLOUR 0xff000000 |
#define | TOTAL_TRANSPARENCY 0x00000000 |
#define | SD_BlendColour(pxl, clr, prv, swtch) |
#define | C2L_ALPHA_CHNNL 0xf000 |
#define | C4L_ALPHA_CHNNL 0xff000000 |
Functions | |
BOOLEAN | MG_IsHdSupported (void) |
void | MG_OSDInit (U16BIT inWidth, U16BIT inHeight, U16BIT outWidth, U16BIT outHeight) |
void | MG_OSDMhegInit (U16BIT inWidth, U16BIT inHeight, E_ASPECT_RATIO sar) |
Initialise the on screen display Initialise the font and fill in font info. More... | |
E_MhegErr | MG_Initialise (U16BIT screenWidth, U16BIT screenHeight, U8BIT colourDepth) |
Initialise OSD, font, and font fill information. Should only be called at start up. More... | |
void | MG_Terminate (void) |
Free all OSD resources. More... | |
void | MG_OSDdisplayRectangle (S_REGION *overlap, int x, int y, int width, int height, int line_width, OSDColor lineColour, OSDColor fillColour) |
Draw rectangle. More... | |
void | MG_OSDdisplayVideo (S_REGION rgn) |
Display video window. More... | |
void | MG_OSDerase (S_REGION rgn, OSDColor colour) |
Display video window. More... | |
void | MG_OSDclear (void) |
Clear entire OSD to colour. More... | |
void | MG_DisplayImage (S_SURFACE *surf, S_REGION *overlap, S32BIT x, S32BIT y) |
Copy the image to the screen buffer. More... | |
void | MG_OSDdisplayImage (void *data, S_REGION *overlap, int x, int y) |
void | MG_FreeData (void *data) |
free surface buffer More... | |
Variables | |
S_MGContext | mg_ctxt |
void MG_FreeData | ( | void * | data | ) |
void MG_OSDclear | ( | void | ) |
void MG_OSDdisplayImage | ( | void * | data, |
S_REGION * | overlap, | ||
int | x, | ||
int | y | ||
) |
void MG_OSDdisplayRectangle | ( | S_REGION * | overlap, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
int | line_width, | ||
OSDColor | lineColour, | ||
OSDColor | fillColour | ||
) |
Draw rectangle.
int | x Box X position on screen (unused by dvp) int y Box Y position on screen (unused by dvp) int width Box width on screen (unused by dvp) int height Box width on screen (unused by dvp) int lineWidth Line width int lineStyle Line style OSDColor lineColour Line colour OSDColor fillColour Rectangle fill colour |
void MG_OSDdisplayVideo | ( | S_REGION | rgn | ) |
void MG_OSDMhegInit | ( | U16BIT | inWidth, |
U16BIT | inHeight, | ||
E_ASPECT_RATIO | sar | ||
) |
void MG_Terminate | ( | void | ) |
S_MGContext mg_ctxt |