[MPlayer-users] color of subtitles

Jindrich Makovicka makovick at kmlinux.fjfi.cvut.cz
Fri Nov 1 19:16:03 CET 2002


Arpi wrote:

>[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
>Hi,
>
>  
>
>>>The problem is that this will require changes in the subtitle renderer,
>>>which is heavily MMX-optimized. It actually doesn't matter if the fonts are
>>>rendered using freetype or not.
>>> 
>>>
>>>      
>>>
>>I had a look at osd_template.c and the drawing functions don't even know 
>>the vertical dimension of the image so currently it's impossible to make 
>>them modify the chroma planes. So the color subtitles will require 
>>changing every vo_* file to pass the image height too. Or can somebody 
>>(Arpi, Michael) correct me?
>>    
>>
>why do you need _height_ ?
>
>you actually want 3 planes instead of only one...
>so you're right it requires API and vo_* driver modifications.
>
>at least for planar YUV modes. for rgb, or packed yuv it can be done now
>  
>
yes, but without the height, yv12 renderer (which is uset in most cases) 
simply doesn't know where the second and third planes begin.

-- 
Jindrich Makovicka





More information about the MPlayer-users mailing list