[MPlayer-dev-eng] [PATCH] dynamic font generation

Arpi arpi at thot.banki.hu
Thu Aug 15 22:47:58 CEST 2002


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:

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.


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list