[MPlayer-dev-eng] [PATCH] display DVD subtitles
Felix Buenemann
atmosfear at users.sourceforge.net
Wed Nov 21 01:05:31 CET 2001
On Wednesday, 21. November 2001 00:31, you wrote:
> > about alpha/colors:
>
> [...]
>
> > 0 = fully transparent subpic
> > 1 = (near) fully opaque subpic
> > ...
> > 255 = (near) fully transparent subpic
>
> [...]
>
> > also an important limitation: color+alpha must be less or equal to 255
> > (because there is no >255 range checking and clipping)
>
> OK, this explains all the strange things I was experiencing... With
> the following patch subtitles are now stable and readable on all the
> DVD's I have. I hope the color picking heuristic is good enough for
> most person.
it's bad for me, with the matrix dvd I have I get withe outline sub with
tranparent text.
I also did some simple heuristics like the following:
alpha0: area around sub/background: always 0 -> transparent
alpha1: subtitle: always 1 -> opaque
alpha2: dunno what used for: always 1 -> opaque
alpha2: subtitle outline: always 127 -> 50% transparent
color[x] 0 or 15: 0 -> transparent
else 195 -> nearly opaque
see attached patch against current cvs.
Please test if it's correct for you in all cases.
>
> Kim Minh.
--
Best Regards,
Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spudecmy.diff
Type: text/x-diff
Size: 1558 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20011121/3f38494f/attachment.diff>
More information about the MPlayer-dev-eng
mailing list