[MPlayer-dev-eng] [PATCH] dynamic font generation
Michael Niedermayer
michaelni at gmx.at
Fri Aug 16 01:53:20 CEST 2002
Hi
On Friday 16 August 2002 01:27, Arpi wrote:
> Hi,
>
> > > using Michael's ideas:
> > > skipping color=255 (black) pixels in outline algo:
> >
> > black is 255?
>
> hmm
> actually 0 is black and 255 is white if you view the .raw file with xnview
> or other app
> but in mplayer the alpha value 0 means full transparency and 255 means full
> opacity of the font bitmap, and for outline the 255 means the black and 0
> the transparent.
oops ur right ...
> yes i know it's messy... what is not? :)
>
> > outline: 506763 us
>
> ...
>
> > outline: 79030 us
>
> 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 ...
> but it can be applie
> dto the matrix or later to the alpha image. or just forget it, it has no
> much sense.
imho no sense, base is a constant and i cant imagine many reasons why it
should ever change
[...]
Michael
More information about the MPlayer-dev-eng
mailing list