From 729505d31a6ddd5c2dccd0a3d309e9ca6641126a Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 15 Aug 2002 22:45:34 +0000 Subject: skip black in outline (white skip code is #if 0 as there is no speed difference) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7019 b3059339-0415-0410-9bf9-f77b7e298cf2 --- TOOLS/subfont-c/subfont.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'TOOLS') diff --git a/TOOLS/subfont-c/subfont.c b/TOOLS/subfont-c/subfont.c index 5b7e131ab0..9439c9ae61 100644 --- a/TOOLS/subfont-c/subfont.c +++ b/TOOLS/subfont-c/subfont.c @@ -508,6 +508,38 @@ void outline( int mwidth) { int x, y; +#if 1 + for (y = 0; y0 && y>0 && x+1=width ) ? r+width -x : 2*r+1; + const int y2=(y+r>=height) ? r+height-y : 2*r+1; + int my; + + for(my= y1; my>8; + if(dstp[mx] < tmp) dstp[mx]= tmp; + } + } + } + } + s+= width; + } +#else for (y = 0; y=192) printf("%d\n",s[0]); @@ -535,6 +567,7 @@ void outline( *t = 255; } } +#endif } -- cgit v1.2.3