[MPlayer-cvslog] r23029 - trunk/libass/ass_render.c

eugeni subversion at mplayerhq.hu
Sat Apr 21 00:49:48 CEST 2007


Author: eugeni
Date: Sat Apr 21 00:49:48 2007
New Revision: 23029

Modified:
   trunk/libass/ass_render.c

Log:
Disable caching of rotated glyphs.

The following commits will add perspective distortion to the glyphs rotated
with \frx and \fry. Somewhere along the way correct caching of such glyphs
will become impossible, but in the end everything will be fine.


Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	(original)
+++ trunk/libass/ass_render.c	Sat Apr 21 00:49:48 2007
@@ -405,6 +405,9 @@ static ass_image_t* render_text(text_inf
 				FT_Done_Glyph(text_info->glyphs[i].outline_glyph);
 
 			// cache
+			if (text_info->glyphs[i].hash_key.frx == 0 &&
+			    text_info->glyphs[i].hash_key.fry == 0 &&
+			    text_info->glyphs[i].hash_key.frz == 0) {
 			hash_val.bbox_scaled = text_info->glyphs[i].bbox;
 			hash_val.bm_o = text_info->glyphs[i].bm_o;
 			hash_val.bm = text_info->glyphs[i].bm;
@@ -412,6 +415,7 @@ static ass_image_t* render_text(text_inf
 			hash_val.advance.x = text_info->glyphs[i].advance.x;
 			hash_val.advance.y = text_info->glyphs[i].advance.y;
 			cache_add_glyph(&(text_info->glyphs[i].hash_key), &hash_val);
+			}
 
 		}
 	}



More information about the MPlayer-cvslog mailing list