xbmc/xbmc — pull request #2112 by white-tentacle (2013-01-24 14:12:04+00:00)
Title: Issue #13812 - performance of styled subtitles

This patch tries to address issue #13812 (performance of styled subs
with raspberry pi) via optional style overriding. Libass offers this
feature (used for example in vlc), via the ass_set_style_overrides
API.

The patch does the following :
- add a setting in advancedsettings.xml file with the
following structure :

- add the corresponding string container in AdvancedSettings class
(values are converted to « name=value » format during parsing, which
is better than storing a map because it is what libass expects)
- calls ass_set_style_overrides at libass initialization with
the given parameters

Tests on raspberry pi 512 have shown that disabling effects such as
shadow and blur actually do suppress lags.