From 7eaba4c13d27f941c84ad944b67b0502149c4a96 Mon Sep 17 00:00:00 2001 From: arpi Date: Fri, 16 Aug 2002 16:06:02 +0000 Subject: more (~40%) speedup :) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7022 b3059339-0415-0410-9bf9-f77b7e298cf2 --- TOOLS/subfont-c/subfont.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'TOOLS') diff --git a/TOOLS/subfont-c/subfont.c b/TOOLS/subfont-c/subfont.c index 9439c9ae61..7f549533cd 100644 --- a/TOOLS/subfont-c/subfont.c +++ b/TOOLS/subfont-c/subfont.c @@ -524,16 +524,20 @@ void outline( const int y1=(y=width ) ? r+width -x : 2*r+1; const int y2=(y+r>=height) ? r+height-y : 2*r+1; + register unsigned char *dstp= t + (y1+y-r)* width + x-r; + register int *mp = m + y1 *mwidth; int my; for(my= y1; my>8; if(dstp[mx] < tmp) dstp[mx]= tmp; } + dstp+=width; + mp+=mwidth; } } } -- cgit v1.2.3