• Hugo Beauzée-Luyssen's avatar
    Subtitle renderers: Merge RenderText & RenderHTML · f2e43bd7
    Hugo Beauzée-Luyssen authored
    The current workflow is often parsing a subtitle format, then convert it
    in a common HTML and then push it to the renderer as HTML. The renderer
    will reparse the HTML and try to render it. Of course, that means that
    only one renderer can do that correctly, and so we bloat the freetype
    renderer as much as we can.
    It also means that we have 2 render callbacks for subtitles, one for
    normal text and one for styled text, and we sometimes reparse the HTML
    to remove the tags, for the first.
    
    We now only use a text_segment, with new segments at every style change;
    an unique render function and the renderer can decide to honor or not
    the style.
    
    It's a big commit, so regressions can arise, but it was tested for most
    common cases.
    f2e43bd7
Name
Last commit
Last update
autotools Loading commit data...
bin Loading commit data...
compat Loading commit data...
contrib Loading commit data...
doc Loading commit data...
extras Loading commit data...
include Loading commit data...
lib Loading commit data...
m4 Loading commit data...
modules Loading commit data...
po Loading commit data...
share Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
THANKS Loading commit data...
bootstrap Loading commit data...
configure.ac Loading commit data...
make-alias Loading commit data...