[MPlayer-dev-eng] Re: [MPlayer-users] color of subtitles

Jindrich Makovicka makovick at kmlinux.fjfi.cvut.cz
Sat Nov 2 21:22:48 CET 2002


>
>
>> ?!
>> if u have a font in YV12 and render it into an YV12 buffer then the 
>> operation is identical to 3 gray font + gray buffers, except that the 
>> u & v buffers are 1/4 the size for YUY2 font & YUY2 buffer its just 1 
>> buffer with 2 bytes per pixel
>>  
>>
> The main issue I encountered was that without a proper y/u/v alignment 
> the osd looks ugly. Before putting the buffer on the screen, you don't 
> know how they'll be aligned, it depends on the x and y position mod 2. 
> (see the patch and the xmod & ymod params, there's also some kind of 
> antialiasing of u & v).

or perhaps just put the osd elements on the even pixel positions only, 
this would simplify things, and would be almost unnoticeable.

-- 
Jindrich Makovicka





More information about the MPlayer-dev-eng mailing list