![]() |
MHEG5
22.11.0
|
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"
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. | |
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 |
general OSD functionality
Copy the image to the screen buffer.
S_SURFACE* | surf pointer to S_SURFACE object |
S_REGION* | overlap region to display |
int | x left coord (in screen resolution) |
int | y top coord (in screen resolution) |
void MG_FreeData | ( | void * | data | ) |
void MG_OSDclear | ( | void | ) |
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 | ) |
Display video window.
int | boxX1 X position on screen int boxY1 Y position on screen int boxWidth Window width int boxHeight Window height |
void MG_OSDerase | ( | S_REGION | rgn, |
OSDColor | colour | ||
) |
Display video window.
Erase an area of the OSD to the desktop colour.
rgn | Region to erase |
colour | Desktop colour |
void MG_OSDMhegInit | ( | U16BIT | inWidth, |
U16BIT | inHeight, | ||
E_ASPECT_RATIO | sar | ||
) |
Initialise the on screen display Initialise the font and fill in font info.
sizeX | width in pixels of the screen |
sizeY | height in pixels of the screen |
sar | scene aspect ratio |
void MG_Terminate | ( | void | ) |
Free all OSD resources.
None |
S_MGContext mg_ctxt |