[MPlayer-dev-eng] [PATCH] SSA/ASS subtitles support

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Thu Apr 20 01:08:18 CEST 2006


Hi,
On Thu, Apr 20, 2006 at 02:37:53AM +0400, Evgeniy Stepanov wrote:
> Libass generates series of small bitmaps and passes them to vf_ass. vf_ass 
> keeps this bitmaps and blends them into every frame passing through it. Did I 
> get it right this time ? :)

Yes, that is it - more or less like the corrent subtitle code works.

> This is surely possible. ass_draw_bitmap needs only a bitmap (single alpha 
> plane), a color, and a point where to put it. Clipping code can be moved to, 
> say, render_text. All the data needed by (libass minus ass_draw_bitmap) is 
> kept in libass' static vars, and is accessible from anywhere.

I think this should make it rather simple to implement it in the vos or
wherever. Of course, this is just a theory, you probably know best if
it's worth the effort and likely to work well enough.
Btw. from your description of ass_draw_bitmap it sounds like the vo_gl
OSD code already has all the necessary abilities (only the glColor4ub
call needs to be moved so that each OSD part can be coloured
independantly), so in case you implement it like this I'll try my best
to make it work with vo_gl.

Greetings,
Reimar Döffinger




More information about the MPlayer-dev-eng mailing list