[vlc-devel] [PATCH] Quartz subtitle renderer

Bernie Purcell b.purcell at adbglobal.com
Fri Mar 30 08:55:17 CEST 2007

Warning: the patch below adds a new file: modules/misc/quartztext.c that
may need to be svn 'add'ed to repository.

The module itself should be pretty straightforward, but a few things to
1) I've set the module's score to be higher than freetype because I
can't get into the preferences pane on OS X any more to configure it
there - this was the only way I could test it. Whether or not you leave
it at the score it's at is up to you I guess.
2) it doesn't rely on the last patch I submitted, but without it the
only subtitle type that can render styled subtitles is a USF stream
muxed into a mkv container.
3) If you find the rendered text excessively yucky you can try changing
the 2nd argument to CGContextSetLineWidth at line 814 to set the
thickness of the outline. I found this made noticeable differences to
the text output, but it varied so much with the font chosen that I
couldn't come up with a systematic way of setting it appropriately for a
random font. It should probably be a configuration parameter - as I
can't get the preferences working though I had no opportunity to play
around with that prospect though.

Hope somebody likes. :-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: quartz.svn-diff
Type: text/x-patch
Size: 37644 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070330/39c0a042/attachment.bin>

More information about the vlc-devel mailing list