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

Arpi arpi at thot.banki.hu
Fri Aug 16 18:36:51 CEST 2002


Hi,

> hmm... tables.. great idea!
> an average user won't use bigger outline than 2-3 pixels, it means in
> average 5x5==25 pixels per matrix. so precalculating that matrix for 256
> possible value of 'src' will be ~6kb, fit into the cache and saves us from
> doing 
>           const int tmp= (src*mp[mx] + 128)>>8;
> instead we could do
> 	  const int tmp= mp[mx];
> 
> anyway i don't know if it will speed up at all.

yes it works, 25% more speedup :)

charset:    5294 us
render:    18457 us
outline:   15983 us
gauss:     68565 us

real    0m0.116s
user    0m0.110s
sys     0m0.000s


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