[MPlayer-dev-eng] [PATCH] dynamic font generation
Arpi
arpi at thot.banki.hu
Fri Aug 16 18:14:01 CEST 2002
Hi,
> > ups, hard to believe... and the output raw files are bit equal! :)
> > anyway your code seems to ignore the 'base' parameter
> yes, otherwise we would need a division in the innermost loop (or 255 outline
> tables) actually gcc can optimize the division away but it must still handle
> negative numbers so it cant replace it by a shift, hmm we could cast it to
> unsigned ...
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.
anyway it's now 3 times faster than blur, so time to check how to speedup
blur now ;)
> imho no sense, base is a constant and i cant imagine many reasons why it
> should ever change
i thought it's a commandline parameter but now checked and you're right it's
constant...
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