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

Jindrich Makovicka makovick at kmlinux.fjfi.cvut.cz
Thu Aug 15 19:01:35 CEST 2002


> hmm. there is already such code hacked by me, it's in libvo/ttf_load.c
> afair it works but configuration was not implemented and has some unfinished
> parts.

oops, didn't noticed this, but it probably wouldn't save much time

> yea, but think of chinese etc. they have very large fontsets with few thousand 
> chars, it's where it matters.

Well, I actually sent a wrong version which was "pessimized" and 
performed even worse than the original :(
Regarding the font generation, most cpu-hungry is the outliner, because 
its complexity is O(thickness^2*fontwidth*fontheight),
gaussian is O(radius*fontwidth*fontheight), font rendering is the 
easiest thing. With fontwidth I mean character width*count of course.

Anyway, scanning the subtitles for all characters is maybe worth the 
effort, especially for chinese at al.

Playing with the fonts & osd, I also tried to implement a simple OSD 
buffering. There was a discussion on this some time ago, because of the 
ugly alpha overlapping effects when using thick outlines.

-- 
Jindrich Makovicka

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: buffering2.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020815/b0e07698/attachment.asc>


More information about the MPlayer-dev-eng mailing list