[MPlayer-dev-eng] Re: [MPlayer-users] color of subtitles
Jindrich Makovicka
makovick at kmlinux.fjfi.cvut.cz
Sat Nov 2 19:42:45 CET 2002
Michael Niedermayer wrote:
>IMHO using a palete for color subs is a bad idea
>1. it cant be done in MMX
>2. no true-color pixmaps :((
>
you mean fonts as 24-bit pixmaps? isn't it overkill?
>i would suggest the following approch for color subs:
>1. generate pictures of all chars & colors in RGB32
>2. convert these to the same colorspace as the output buffer
>
maybe it would be enough to do these two in draw_alpha_buf
>3. simply render them (the nice sideeffect is that all formats except
>RGB15/16) can be handled by the same osd render function, so there is less
>code to optimize and its simpler & faster IMHO
>
>
what do you mean by "simply" ? in yv12 and yuy2 you still have to deal
with the chroma subsampling (it can't be done sooner because chroma
depends on the x&y position).
--
Jindrich Makovicka
More information about the MPlayer-dev-eng
mailing list