[MPlayer-users] Re: color of DVD subtitles
Tobias Diedrich
ranma at gmx.at
Sat Dec 13 15:21:57 CET 2003
Andres Heinloo wrote:
> in all mplayer versions I've used, DVD subtitles are in greyscale. Eg.,
> yellow subtitles end up grey, which is sometimes very hard to read. If DVD
> subtitles cannot be rendered in color, would it be at least possible to
> change the color to white?
The Overlay code was not written to handle YV12 very well, which is the
colorspace you are using with DVDs. In YV12 you have three planes: y, u
and v. The latter two contain the color information, but are reduced in
size and this means you can't change the color of a single pixel, which
makes it complicated. Because of this for YV12 mplayer only sets the
Luminance (Y), so the subtitles are kinda gray with a bit of the
original color shining through.
--
/* Tobias */ int main(int a,char **b) /* PGP: http://9ac7e0bc.2ya.com */
{char i,j,t,*r=*++b;srand(getpid());for(;*r;){for(;*r&&!isalpha(*r);r++);for(i=
1;isalpha(r[i+1]);i++){j=rand()%i;t=r[i];r[i]=r[++j];r[j]=t;}r+=i+1;}puts(*b);}
np: hamasakiayumi: Best 07 - Trauma []
More information about the MPlayer-users
mailing list