[vlc-devel] [PATCH] MKV USF subtitles support

Bernie Purcell b.purcell at adbglobal.com
Mon Mar 12 00:53:24 CET 2007

Got a bit tired of not having Matroska USF support. :-)
The patch below adds the following:

* Decodes USF streams muxed within the Matroska container format. USF was 
created especially for the Matroska container.
* Adds additional routines to the Freetype module's text rendering engine 
to support subtitles whose font, style, size and colour is allowed to 
change partway through the subtitle, ie. HTML version of the subtitle. 
Sytles now supported are bold and italics (supported by fontconfig) and 
underline which is manually calculated. This code has only tested on the 
linux version.
* Code added to subpictures to choose HTML rendering over Text rendering 
if rendering module supports HTML and if a HTML version of the subtitle 
* Additional fields added to subpicture_region_t filter_t to permit the 
additional information to be carried without interfering with the existing 
plain text version of the subtitle.
* Code added to configure.ac to detect presence of fontconfig - which is 
required by the new rendering functions. Absence of fontconfig causes the 
plain text rendering code to be used.

At present only USF is rendered using the new rendering functions. This 
minimises its impact on existing modules. It is, however, not difficult to 
extend part of this functionality to SSA subtitles, for example, in order 
to more greatly support the style information.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070312/c47bddc1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: usf.svn-diff
Type: application/octet-stream
Size: 61095 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070312/c47bddc1/attachment.obj>

More information about the vlc-devel mailing list