[MPlayer-dev-eng] [PATCH] (not for CVS submission) opaque subtitles
D Richard Felker III
dalias at aerifal.cx
Tue Jan 28 15:58:21 CET 2003
On Tue, Jan 28, 2003 at 10:14:15AM +0100, Pierre Lombard wrote:
> Hi,
>
> Here are 2 dirty hacks to have opaque gray subtitles when watching sthg
> with vo xv and encoding (in YV12 color space) with subtitles.
>
> They set the U+V channels to 128 if the alpha channel is below a
> threshold.
The problem is that U/V planes are normally sampled at half
resolution, so 4 Y pixels correspond to 1 U and V pixel. The correct
way to handle OSD is to render half-size elements for U/V as well and
display them separately. Unfortunately you also need to handle the
cases where you start at a halfpixel boundary...
In any case, your patch might be desirable in the mean time. Anyone
else have comments??
Rich
More information about the MPlayer-dev-eng
mailing list