]> granicus.if.org Git - libass/commit
Add a mechanism for selective style overrides
authorwm4 <wm4@nowhere>
Wed, 4 Jun 2014 22:55:13 +0000 (00:55 +0200)
committerwm4 <wm4@nowhere>
Wed, 4 Jun 2014 23:15:14 +0000 (01:15 +0200)
commitdcecb9cba3ab2e9c1d082c9860aecb9e437e40f6
treec366e02227a4814504f7911d0f6e2d48f5ec0ff4
parent4a4e464d1dadce90bc91dce5448890e987019d89
Add a mechanism for selective style overrides

This adds 2 new API functions:

  ass_set_selective_style_override()
  ass_set_selective_style_override_enabled()

They can be used to force dialog text to use a specific ASS_Style. It
uses a fuzzy heuristic for that, and the quality of results may vary.
It does style overriding selectively and tries not to override things
that need explicit styling. The heuristic for that isn't set in stone
either, and can change with future libass versions.

Closes libass#88.
libass/ass.h
libass/ass_parse.c
libass/ass_parse.h
libass/ass_render.c
libass/ass_render.h
libass/ass_render_api.c
libass/libass.sym