subs, vo_vdpau: support RGBA color for PGS subtitles
commitff4bdb178a98a20ee670dc80f360b1dd85784fae
authorUoti Urpala <uau@mplayer2.org>
Fri, 31 Aug 2012 12:42:30 +0000 (31 15:42 +0300)
committerUoti Urpala <uau@mplayer2.org>
Thu, 6 Sep 2012 16:04:45 +0000 (6 19:04 +0300)
tree0d70eb81989a7927d2b75f382b5519c6e5d5a908
parent674a1625f99ab6e8db988430e9285b3dac2ff5d1
subs, vo_vdpau: support RGBA color for PGS subtitles

Support passing bitmap subtitles to VOs in full RGBA color, and
implement this for libavcodec-decoded subtitle formats on decoding
side and vo_vdpau on display side. Currently this is enabled for PGS
(blu-ray) and DVB subtitles.

VDPAU seems to have sampling issues similar to known GL ones when
drawing a sub-rectangle from a larger texture with scaling, where
adjacent pixels outside the specified source rectangle affect the
result. As the bitmap subtitles may be scaled, add padding support to
the bitmap packer code.

In principle, this could be used for colored DVD subtitles too.
However, the libavcodec DVD decoder lacks parts of the resolution and
palette handling that are present in spudec.c.
libmpcodecs/vf_ass.c
libmpcodecs/vf_vo.c
libmpcodecs/vfcap.h
libvo/bitmap_packer.c
libvo/bitmap_packer.h
libvo/vo_gl.c
libvo/vo_vdpau.c
sub/dec_sub.c
sub/dec_sub.h
sub/sd_ass.c
sub/sd_lavc.c