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

eugeni subversion at mplayerhq.hu
Mon Nov 13 17:49:33 CET 2006


Author: eugeni
Date: Mon Nov 13 17:49:32 2006
New Revision: 20891

Modified:
   trunk/libass/ass_render.c

Log:
Support \t with acceleration.


Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	(original)
+++ trunk/libass/ass_render.c	Mon Nov 13 17:49:32 2006
@@ -906,12 +906,14 @@
 		t1 = v1;
 		t2 = v2;
 		delta_t = v2 - v1;
+		if (v3 < 0.)
+			v3 = 0.;
 		t = frame_context.time - render_context.event->Start; // FIXME: move to render_context
 		if (t < t1)
 			k = 0.;
 		else if (t > t2)
 			k = 1.;
-		else k = ((double)(t - t1)) / delta_t;
+		else k = pow(((double)(t - t1)) / delta_t, v3);
 		while (*p == '\\')
 			p = parse_tag(p, k); // maybe k*pwr ? no, specs forbid nested \t's 
 		skip_all(')'); // FIXME: better skip(')'), but much more tags support required



More information about the MPlayer-cvslog mailing list