[MPlayer-users] color of subtitles

Jindrich Makovicka makovick at kmlinux.fjfi.cvut.cz
Fri Nov 1 21:31:02 CET 2002


Arpi wrote:

>hey, it don't know even if it would have teh height.
>
>*FORGET* that U and V planes are beginning right after teh Y one...
>it isn't always true, or even more valid: it's rare that true!
>(yes it's true for Xv, and maybe for directfb, but false for sure in
>mga/xmga, vidix, and some which uses stride!=width or planes needs to be
>aligned)
>so, you actually want the pointers to all 3 planes (from the caller!)
>insted of the Y only. only teh caller func knows where the planes begin.
>  
>
ok, got it :) i crufted few pieces of code so now I have hardcoded 
yellow subtitles in YV12. Just to attract some flam^H^H^H^Hcomments, 
here is a patch (rather a sketch of one). Packed formats should be easy 
as they won't involve additional changes in the code outside of osd.

In addition to three source pointers & strides there are args specifying 
x0 mod 2 & y0 mod 2 which I needed for proper chroma/luma alignment.

Regards,

-- 
Jindrich Makovicka

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: yellow.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20021101/32982fa3/attachment.txt>


More information about the MPlayer-users mailing list