[MPlayer-dev-eng] [PATCH 2/2] av_sub: support multiple rectangles.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Apr 22 20:11:47 CEST 2012


On Sun, Apr 22, 2012 at 07:50:17PM +0200, Nicolas George wrote:
> >			and I would have preferred to see an
> > implementation that just uses multiple subtitle processors...
> > Have you though about that way of doing it? I suspect it would be
> > more complex and problematic to support an arbitrary number of subs,
> > still I quite liked that idea...
> 
> I am still considering implementing colored overlays for EOSD (currently, it
> is only single color + alpha mask). If this is done, sending the rectangles
> to EOSD instead of OSD would be very simple, and we would gain color at the
> same time.

I don't quite follow the argument. Since all we need is single color +
alpha for this, colored overlays should not be a prerequisite.
However the spu code has a lot more scaling modes, EOSD wasn't really
intended for anything other than text subs rendered at the ideal
resolution.
There is also the point that it wouldn't allow rendering multiple DVD
subtitles together, which I was hoping for as a side effect.
But maybe it's better to just fully go with EOSD.

> If you are interested, I can write my thoughts about the way to do it (the
> main problem is scaling) here.

Just push it through the SPU scaling code? :-P
Or what is the problem with scaling?
But I don't think I'll have the time to read a more involved technical
description.


More information about the MPlayer-dev-eng mailing list