aboutsummaryrefslogtreecommitdiffstats
path: root/src/osdtools.h
diff options
context:
space:
mode:
authorvektor <devnull@localhost>2003-04-23 12:26:44 +0000
committervektor <devnull@localhost>2003-04-23 12:26:44 +0000
commit83250a47ec0fcd99c150aebb093a1ebe18fb2e01 (patch)
treeace785d05158777d45c0b9c040b80f6e91280d1b /src/osdtools.h
parent55074030f497c85bd4be1c98c2f8dc63a55330c6 (diff)
* osdtools.h osdtools.c: Split string rendering from font code so we can
reuse font objects across strings. This theoretically speeds things up, and it does make it a little more clean. * console.c vbiscreen.c tvtimeosd.c: Updated clients to the new API.
Diffstat (limited to 'src/osdtools.h')
-rw-r--r--src/osdtools.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/osdtools.h b/src/osdtools.h
index ba6095f..9583483 100644
--- a/src/osdtools.h
+++ b/src/osdtools.h
@@ -26,6 +26,7 @@
*/
typedef struct osd_string_s osd_string_t;
+typedef struct osd_font_s osd_font_t;
typedef struct osd_databars_s osd_databars_t;
typedef struct osd_graphic_s osd_graphic_t;
typedef struct osd_shape_s osd_shape_t;
@@ -45,9 +46,12 @@ typedef enum OSD_Shapes_e {
* Eventually I'll just take one parameter: pixel aspect, which would
* make more sense.
*/
-osd_string_t *osd_string_new( const char *fontfile, int fontsize,
- int video_width, int video_height,
- double video_aspect );
+osd_font_t *osd_font_new( const char *fontfile, int fontsize,
+ int video_width, int video_height,
+ double video_aspect );
+void osd_font_delete( osd_font_t *font );
+
+osd_string_t *osd_string_new( osd_font_t *font, int video_width );
void osd_string_delete( osd_string_t *osds );
void osd_string_show_text( osd_string_t *osds, const char *text, int timeout );
int osd_string_visible( osd_string_t *osds );

Privacy Policy