]> git.sesse.net Git - vlc/commit
Add support for rendering EIA-608 captions with a black background
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Wed, 2 Jan 2013 16:45:11 +0000 (11:45 -0500)
committerRafaël Carré <funman@videolan.org>
Thu, 10 Jan 2013 20:58:13 +0000 (21:58 +0100)
commit46d2b129d19229a0926bcde0730d97ce8397e0bc
treeee7a3089c82128862a18e038ae827c35d8d068f1
parent3d29910e66214abb38d72a5d8172c4402144eb0d
Add support for rendering EIA-608 captions with a black background

Place a black background behind caption text.  We cannot use the
existing "background" feature for subdecoders because it fills the
entire subpicture block, and in the case of the EIA-608 decoder
would result in a large square (since we send all lines to
the subpicture decoder even if they are blank).  This approach
allows for rendering of the background even in such cases, while
preserving proper layout of the captions.

Signed-off-by: Rafaël Carré <funman@videolan.org>
include/vlc_subpicture.h
modules/codec/cc.c
modules/codec/substext.h
modules/text_renderer/freetype.c