mpv/sub
Uoti Urpala 9bb03b7db4 subs: libass: use a single persistent renderer for subtitles
To draw libass subtitles, the code used ASS_Renderer objects created
in vf_vo (VO rendering) or vf_ass. They were destroyed and recreated
together with the video filter  chain. Change the code to use a single
persistent renderer instance stored in the main osd_state struct.
Because libass seems to misbehave if fonts are changed while a
renderer exists (even if ass_set_fonts() is called on the renderer
afterwards), the renderer is recreated after adding embedded fonts.

The known benefits are simpler code and avoiding delays when switching
between timeline parts from different files (libass fontconfig
initialization, needed when creating a new renderer, can take a long
time in some cases; switching between files rebuilds the video filter
chain, and this required recreating the renderers). On the other hand,
I'm not sure whether this could cause inefficient bitmap caching in
libass; explicitly resetting the renderer in some cases could be
beneficial. The new code does not keep the distinction of separate
renderers for vsfilter munged aspect vs normal; this means that
changing subtitle tracks can lose cache for the previous track.

The new code always sets some libass parameters on each rendering
call, which were previously only set if they had potentially changed.
This should be harmless as libass itself has checks to see if the
values differ from previous ones.

Conflicts:
	command.c
	libmpcodecs/vf_ass.c
	libmpcodecs/vf_vo.c
	mplayer.c
	sub/ass_mp.c
2012-09-18 21:04:46 +02:00
..
ass_mp.c subs: libass: use a single persistent renderer for subtitles 2012-09-18 21:04:46 +02:00
ass_mp.h subs: libass: use a single persistent renderer for subtitles 2012-09-18 21:04:46 +02:00
dec_sub.c sd_lavc: use subtitle framework for former av_sub.c code 2012-09-18 21:04:46 +02:00
dec_sub.h subs: libass: use a single persistent renderer for subtitles 2012-09-18 21:04:46 +02:00
find_sub.c
find_subfiles.c sub: silence output of subtitle search message 2012-07-30 01:45:07 +02:00
find_subfiles.h
osd_dummy.c Remove teletext support 2012-08-03 00:12:46 +02:00
osd_font.pfb osd: osd_font.h -> osd_font.pfb 2012-07-28 23:36:08 +02:00
osd_libass.c osd_libass: fix displaying empty text, fix API usage 2012-08-21 18:58:15 +02:00
sd.h sd_lavc: use subtitle framework for former av_sub.c code 2012-09-18 21:04:46 +02:00
sd_ass.c subs: libass: use a single persistent renderer for subtitles 2012-09-18 21:04:46 +02:00
sd_lavc.c sd_lavc: use subtitle framework for former av_sub.c code 2012-09-18 21:04:46 +02:00
spudec.c Adjust ffmpeg/libav #includes to work with recent upstream changes 2012-08-21 18:22:00 +02:00
spudec.h VO: remove old VO glue 2012-08-07 01:29:56 +02:00
sub.c core: manage tracks in the frontend 2012-09-18 21:04:45 +02:00
sub.h subs: libass: use a single persistent renderer for subtitles 2012-09-18 21:04:46 +02:00
subassconvert.c subassconvert: order colour names alphabetically / better match W3 list 2012-08-03 03:47:09 +02:00
subassconvert.h
subreader.c sub: simplify code by always defining sub_cp 2012-08-03 06:53:10 +02:00
subreader.h Remove dead code 2012-08-01 17:07:35 +02:00
vobsub.c Remove dead code 2012-08-01 17:07:35 +02:00
vobsub.h Remove dead code 2012-08-01 17:07:35 +02:00