![]() |
MHEG5
22.11.0
|
MHEG-5 Glue: Dynamic line-art related functions. More...
#include "osd_utils.h"#include "glue_memory.h"#include "glue_debug.h"#include "mg_osd.h"#include "mg_api.h"Classes | |
| struct | _DLA_Info |
Typedefs | |
| typedef struct _DLA_Info | DLA_Info |
Functions | |
| void | OSDclearDynamicLineart (void *data) |
| On screen display - clear dynamic line art. More... | |
| void * | OSDinitDynamicLineart (int x, int y, int w, int h, int line_width, int bordered, OSDColor line_colour, OSDColor fill_colour) |
| On screen display - initialise dynamic line art. More... | |
| void | OSDfreeDynamicLineart (void *data) |
| On screen display - free resources dla. More... | |
| void | OSDdrawArc (void *data, int x, int y, int w, int h, int start_angle, int arc_angle, int line_width, OSDColor line_colour) |
| Add a draw arc action to the action list. More... | |
| void | OSDdrawEllipse (void *data, int x, int y, int w, int h, int line_width, OSDColor line_colour, OSDColor fill_colour) |
| Add a draw ellipse action to the action list. More... | |
| void | OSDdrawSector (void *data, int x, int y, int w, int h, int start_angle, int arc_angle, int line_width, OSDColor line_colour, OSDColor fill_colour) |
| Add a draw sector action to the action list. More... | |
| void | OSDdrawDrawLine (void *data, int x1, int y1, int x2, int y2, int line_width, OSDColor line_colour) |
| Add a line draw action to the list. More... | |
| void | OSDdrawPolygonStart (void *data) |
| Initialise a new draw polygon to add to the action list. More... | |
| void | OSDdrawPolygonAdd (void *data, int x, int y) |
| Add co-ordinates that describe a polygon to draw to the action list. More... | |
| void | OSDdrawPolygon (void *data, int line_width, OSDColor line_colour, OSDColor fill_colour, int filled) |
| Add a draw polygon instruction to the action list. More... | |
| void | OSDdrawRectangle (void *data, int x1, int y1, int x2, int y2, int line_width, OSDColor line_colour, OSDColor fill_colour) |
| Add a draw rectangle action to the action list. More... | |
| void | MG_OSDdisplayDynamicLineart (void *data, S_REGION *overlap, int x, int y) |
| Display dynamic lineart. More... | |
MHEG-5 Glue: Dynamic line-art related functions.
| #define HD_SCALEUP_RECT | ( | dli, | |
| x, | |||
| y, | |||
| w, | |||
| h, | |||
| lw | |||
| ) |
| #define HD_SCALEUP_REGN | ( | dli, | |
| l, | |||
| t, | |||
| r, | |||
| b | |||
| ) |
| #define LOCK_BUFFER | ( | di, | |
| c_sz | |||
| ) |
| #define UNLOCK_BUFFER | ( | di | ) |
| void MG_OSDdisplayDynamicLineart | ( | void * | data, |
| S_REGION * | overlap, | ||
| int | x, | ||
| int | y | ||
| ) |
| void OSDclearDynamicLineart | ( | void * | data | ) |
On screen display - clear dynamic line art.
| void | * data Dynamic line-art object. |
| void OSDdrawArc | ( | void * | data, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| int | start_angle, | ||
| int | arc_angle, | ||
| int | line_width, | ||
| OSDColor | line_colour | ||
| ) |
Add a draw arc action to the action list.
| void | * data Action list int x Top left x-coord of object int y Top left y-coord of object int w Width of object int h Height of object int start_angle The initial angle of the ellipse int arc_angle The extent of the arc int line_width Width of the line used to draw the arc OSDColor line_colour The line drawing colour |
| void OSDdrawDrawLine | ( | void * | data, |
| int | x1, | ||
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| int | line_width, | ||
| OSDColor | line_colour | ||
| ) |
Add a line draw action to the list.
Add a draw line action to the action list.
| void | * data Pointer to action list x1 int Line start x position y1 int Line start y position x2 int Line end x position y2 int Line end y position line_width int Line pixel width line_colour OSDColour Line colour |
| void OSDdrawEllipse | ( | void * | data, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| int | line_width, | ||
| OSDColor | line_colour, | ||
| OSDColor | fill_colour | ||
| ) |
Add a draw ellipse action to the action list.
| void | * data Action list to be added to int x Top left x-coord of object int y Top left y-coord of object int w Width of object int h Height of object int line_width Width of the line used to draw the arc OSDColor line_colour The line drawing colour OSDColor fill_colour The fill colour of the ellipse |
| void OSDdrawPolygon | ( | void * | data, |
| int | line_width, | ||
| OSDColor | line_colour, | ||
| OSDColor | fill_colour, | ||
| int | filled | ||
| ) |
Add a draw polygon instruction to the action list.
| void | * data Action list to be added to int line_width Width of the draw line OSDColor line_colour Colour of the line OSDColor fill_colour Polygon fill colour int filled Fill polygon |
| void OSDdrawPolygonAdd | ( | void * | data, |
| int | x, | ||
| int | y | ||
| ) |
Add co-ordinates that describe a polygon to draw to the action list.
| void | * data Pointer to action list int x Top left x co-ord of object int y Top left y co-ord of object |
| void OSDdrawPolygonStart | ( | void * | data | ) |
Initialise a new draw polygon to add to the action list.
| void | * data Pointer to action list |
| void OSDdrawRectangle | ( | void * | data, |
| int | x1, | ||
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| int | line_width, | ||
| OSDColor | line_colour, | ||
| OSDColor | fill_colour | ||
| ) |
Add a draw rectangle action to the action list.
| void | * data Action list to be added to int x1 1st pixel x co-ord int y1 1st pixel y co-ord int x2 2nd pixel x co-ord int y2 2nd pixel y co-ord int line_width Width of the line used to draw the arc int line_colour The line drawing colour int fill_colour The fill colour of the ellipse |
| void OSDdrawSector | ( | void * | data, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| int | start_angle, | ||
| int | arc_angle, | ||
| int | line_width, | ||
| OSDColor | line_colour, | ||
| OSDColor | fill_colour | ||
| ) |
Add a draw sector action to the action list.
| void | * data Action list to be added to. int x Top left x-coord of object. int y Top left y-coord of object. int w Width of object. int h Height of object. int start_angle The initial angle of the ellipse int arc_angle The extent of the arc int line_width Width of the line used to draw the arc OSDColor line_colour The line drawing colour OSDColor fill_colour The fill colour of the ellipse |
| void OSDfreeDynamicLineart | ( | void * | data | ) |
| void* OSDinitDynamicLineart | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| int | line_width, | ||
| int | bordered, | ||
| OSDColor | line_colour, | ||
| OSDColor | fill_colour | ||
| ) |
On screen display - initialise dynamic line art.
| int | w Width of object int h Height of object int line_width Width of the line used to draw the arc int bordered A boolean, cuningly disguised as an int. OSDColor line_colour The line drawing colour OSDColor fill_colour The fill colour of the ellipse |
1.8.11