changeset 21455:dd49d3712e6f

Rename: ass_process_font -> ass_add_font.
author eugeni
date Sun, 03 Dec 2006 17:35:40 +0000
parents f91f04764311
children c056d0f91a73
files libass/ass.c libass/ass.h libmpdemux/demux_mkv.c
diffstat 3 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass.c	Sun Dec 03 16:41:55 2006 +0000
+++ b/libass/ass.c	Sun Dec 03 17:35:40 2006 +0000
@@ -570,7 +570,7 @@
 	assert(dsize <= size / 4 * 3 + 2);
 	
 	if (track->library->extract_fonts)
-		ass_process_font(track->library, track->parser_priv->fontname, (char*)buf, dsize);
+		ass_add_font(track->library, track->parser_priv->fontname, (char*)buf, dsize);
 
 error_decode_font:
 	if (buf) free(buf);
@@ -1083,12 +1083,12 @@
 }
 
 /**
- * \brief Process embedded matroska font. Saves it to ~/.mplayer/fonts.
+ * \brief Add a memory font.
  * \param name attachment name
  * \param data binary font data
  * \param data_size data size
 */ 
-void ass_process_font(ass_library_t* library, const char* name, char* data, int data_size)
+void ass_add_font(ass_library_t* library, const char* name, char* data, int data_size)
 {
 	char buf[1000];
 	FILE* fp = 0;
--- a/libass/ass.h	Sun Dec 03 16:41:55 2006 +0000
+++ b/libass/ass.h	Sun Dec 03 17:35:40 2006 +0000
@@ -177,12 +177,12 @@
 int ass_read_styles(ass_track_t* track, char* fname, char* codepage);
 
 /**
- * \brief Process embedded matroska font. Saves it to ~/.mplayer/fonts.
+ * \brief Add a memory font.
  * \param name attachment name
  * \param data binary font data
  * \param data_size data size
 */
-void ass_process_font(ass_library_t* library, const char* name, char* data, int data_size);
+void ass_add_font(ass_library_t* library, const char* name, char* data, int data_size);
 
 /**
  * \brief Calculates timeshift from now to the start of some other subtitle event, depending on movement parameter
--- a/libmpdemux/demux_mkv.c	Sun Dec 03 16:41:55 2006 +0000
+++ b/libmpdemux/demux_mkv.c	Sun Dec 03 17:35:40 2006 +0000
@@ -1619,7 +1619,7 @@
               if (extract_embedded_fonts && name && data && data_size &&
                   mime && (strcmp(mime, "application/x-truetype-font") == 0 ||
                   strcmp(mime, "application/x-font") == 0))
-                ass_process_font(ass_library, name, data, data_size);
+                ass_add_font(ass_library, name, data, data_size);
 #endif
               break;
             }