mpv/sub
wm4 17f5019b46 sub: always go through sub.c for OSD rendering
Before this commit, vf_vo.c and vf_ass.c were manually calling the
subtitle decoder to retrieve images to render. In particular, this
circumvented the sub-bitmap conversion & caching layer in sub.c.

Change this so that subtitle decoding isn't special anymore, and draws
all subtitles with the normal OSD drawing API.

This is also a step towards removing the need for vf_ass auto-insertion.
In fact, if auto-insertion would be disabled now, VOs with "old" OSD
rendering could still render ASS subtitles in monochrome, because
there is still ASS -> old-OSD bitmap conversion in the sub.c mechanism.

The code is written with the assumption that the subtitle rendering
filter (vf_ass) can render all subtitle formats. Since vf_ass knows the
ASS format only, rendering image subs (i.e. RGBA subs) with it simply
fails. This means that with vo_xv (vf_ass auto-inserted), image subs
wouldn't be rendered. Use a dumb hack to disable rendering subs with a
filter, if we detect that the subs are not in ASS format. (Trying to
render the subs first would probably result in purging the conversion
cache on every frame.)
2012-10-16 07:26:31 +02:00
..
ass_mp.c sub: remove logic for disabling hinting on scaled EOSD 2012-10-16 07:26:31 +02:00
ass_mp.h sub: remove logic for disabling hinting on scaled EOSD 2012-10-16 07:26:31 +02:00
dec_sub.c sub: make it easier to set DVD sub decoding with sd_lavc 2012-10-16 07:26:31 +02:00
dec_sub.h sub: always go through sub.c for OSD rendering 2012-10-16 07:26:31 +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 subs: options: add -sub-paths 2011-04-20 04:22:52 +03:00
img_convert.c sub: allow converting DVD subs to RGBA 2012-10-16 07:26:30 +02:00
img_convert.h sub: allow converting DVD subs to RGBA 2012-10-16 07:26:30 +02:00
osd_dummy.c sub: allow rendering OSD in ASS image format directly, simplify 2012-10-16 07:26:30 +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: set RTL base direction to neutral 2012-10-16 07:26:31 +02:00
sd.h subs: always use sub decoder framework for libass rendering 2012-09-18 21:04:46 +02:00
sd_ass.c sub: remove logic for disabling hinting on scaled EOSD 2012-10-16 07:26:31 +02:00
sd_lavc.c sub: make it easier to set DVD sub decoding with sd_lavc 2012-10-16 07:26:31 +02:00
spudec.c sub: allow rendering OSD in ASS image format directly, simplify 2012-10-16 07:26:30 +02:00
spudec.h sub: allow rendering OSD in ASS image format directly, simplify 2012-10-16 07:26:30 +02:00
sub.c sub: always go through sub.c for OSD rendering 2012-10-16 07:26:31 +02:00
sub.h sub: always go through sub.c for OSD rendering 2012-10-16 07:26:31 +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