[MPlayer-dev-eng] [PATCH] dynamic font generation
Michael Niedermayer
michaelni at gmx.at
Fri Aug 16 00:32:16 CEST 2002
Hi
On Thursday 15 August 2002 22:47, Arpi wrote:
> Hi,
>
> > we could develop very fast outlining routine, and then use swscaler's
> > blur.
>
> arial.ttf 38pt latin-2 blur=3 outline=2.5:
>
> charset: 5873 us
> render: 18381 us
> outline: 278076 us
> gauss: 67838 us
>
> real 0m0.378s
> user 0m0.370s
> sys 0m0.000s
>
> using Michael's ideas:
> skipping color=255 (black) pixels in outline algo:
black is 255?
>
> charset: 5296 us
> render: 18373 us
> outline: 228103 us
> gauss: 68316 us
>
> skipping the division at the end fo outlien pixel calcutaion if max==0:
>
> charset: 6065 us
> render: 18391 us
> outline: 233063 us
> gauss: 68407 us
>
> so we could speed up a bit but not too much.
>
> we need a very fast algo to detect if we're close to a non-white pixel, so
> we could skip the big white areas.
./subfont --blur 3 --outline 2.5 iso8859-2 38pt /c/windows/fonts/arial.ttf
255 skip:
charset: 24857 us
render: 60615 us
outline: 506763 us
gauss: 195062 us
black skip:
./subfont --blur 3 --outline 2.5 iso8859-2 38pt /c/windows/fonts/arial.ttf
charset: 17092 us
render: 61736 us
outline: 79030 us
gauss: 194719 us
[...]
Michael
More information about the MPlayer-dev-eng
mailing list