[MPlayer-dev-eng] Re: [MPlayer-users] color of subtitles
陆然
hephooey at fastmail.fm
Sun Nov 3 03:21:36 CET 2002
Hi,
I think things are kind of hard for spu/vob subtitles, let me explain:
spu/vob subtitles are not text sub, they stored as image but without color
info, when displaying it read the palette(16 or 4 colors) from IFO/vobsub's
.idx file. then you read each line of subtitle from VOB/vobsusb's .sub file
then decide color for echo pixel.
I think the difficult thing is that spu/vob subtitles usually need to be
scaled to fit the movie size, then it will use all colors mixed by the
palette. So the palette index idea is hard to use, I think Michael's suggest
is better, I can generate the color subs in RGB24(seems vob/spu subs use
RGB24 palette) directly and then use swscale to display them in different
color spaces.
waiting for you new patch, then i can write the func for spu/vob subtitles.
--
Best Regard,
LR
More information about the MPlayer-dev-eng
mailing list