[MPlayer-dev-eng] Colored subtitles
Jindrich Makovicka
makovick at kmlinux.fjfi.cvut.cz
Tue Nov 5 19:21:19 CET 2002
Hello,
here is a patch for 24-bit color subtitles. Current version is broken
but I am sending it to allow coordination with the color support for spudec.
The subtitles are first rendered in 24-bit RGB+A into obj->rgb_buffer &
obj->alpha_buffer and then converted from RGB to destination colorspace
into obj->dest_buffer using vo_convert_osd_format(). Spudec currently
uses some other way of buffering but IMO it'll be reasonable to make it
use the buffering code from sub.c too.
Stuff that (probably) works: xv (YV12) x11 (tested with 32bit), sdl (32bit)
Stuff that surely doesn't work: spudec, aalib, anything yuy2 & uyvy
Interface changes: vo_draw_text and vo_remove_text now have one more
argument for desired image format, vo_draw_alpha_yv12 has additional
args for more layers.
--
Jindrich Makovicka
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hippy_sub2.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021105/069760d2/attachment.asc>
More information about the MPlayer-dev-eng
mailing list