[MPlayer-cvslog] r21337 - in trunk/libass: ass_cache.h ass_font.c ass_font.h

eugeni subversion at mplayerhq.hu
Mon Nov 27 18:50:05 CET 2006


Author: eugeni
Date: Mon Nov 27 18:50:05 2006
New Revision: 21337

Modified:
   trunk/libass/ass_cache.h
   trunk/libass/ass_font.c
   trunk/libass/ass_font.h

Log:
Move ass_font_desc_t and ass_font_t declarations to ass_font.h.


Modified: trunk/libass/ass_cache.h
==============================================================================
--- trunk/libass/ass_cache.h	(original)
+++ trunk/libass/ass_cache.h	Mon Nov 27 18:50:05 2006
@@ -26,23 +26,6 @@
 #include FT_STROKER_H
 #include FT_GLYPH_H
 
-// font cache
-typedef struct ass_font_desc_s {
-	char* family;
-	unsigned bold;
-	unsigned italic;
-} ass_font_desc_t;
-
-typedef struct ass_font_s {
-	ass_font_desc_t desc;
-	char* path;
-	int index;
-	FT_Face face;
-	FT_Matrix m; // current transformation
-	FT_Vector v; // current shift
-	int size;
-} ass_font_t;
-
 void ass_font_cache_init(void);
 ass_font_t* ass_font_cache_find(ass_font_desc_t* desc);
 void ass_font_cache_add(ass_font_t* font);

Modified: trunk/libass/ass_font.c
==============================================================================
--- trunk/libass/ass_font.c	(original)
+++ trunk/libass/ass_font.c	Mon Nov 27 18:50:05 2006
@@ -27,6 +27,8 @@
 #include FT_GLYPH_H
 
 #include "ass_font.h"
+#include "ass_bitmap.h"
+#include "ass_cache.h"
 #include "ass_fontconfig.h"
 #include "mputils.h"
 

Modified: trunk/libass/ass_font.h
==============================================================================
--- trunk/libass/ass_font.h	(original)
+++ trunk/libass/ass_font.h	Mon Nov 27 18:50:05 2006
@@ -26,8 +26,21 @@
 #include FT_STROKER_H
 #include FT_GLYPH_H
 
-#include "ass_bitmap.h"
-#include "ass_cache.h"
+typedef struct ass_font_desc_s {
+	char* family;
+	unsigned bold;
+	unsigned italic;
+} ass_font_desc_t;
+
+typedef struct ass_font_s {
+	ass_font_desc_t desc;
+	char* path;
+	int index;
+	FT_Face face;
+	FT_Matrix m; // current transformation
+	FT_Vector v; // current shift
+	int size;
+} ass_font_t;
 
 ass_font_t* ass_font_new(FT_Library ftlibrary, void* fc_priv, ass_font_desc_t* desc);
 void ass_font_set_transform(ass_font_t* font, FT_Matrix* m, FT_Vector* v);



More information about the MPlayer-cvslog mailing list