0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/sub
wm4 74e7a1e937 osd: use libass for OSD rendering
The OSD will now be rendered with libass. The old rendering code, which
used freetype/fontconfig and did text layout manually, is disabled. To
re-enable the old code, use the --disable-libass-osd configure switch.

Some switches do nothing with the new code enabled, such as -subalign,
-sub-bg-alpha, -sub-bg-color, and many more. (The reason is mostly that
the code for rendering unstyled subtitles with libass doesn't make any
attempts to support them. Some of them could be supported in theory.)

Teletext rendering is not implemented in the new OSD rendering code. I
don't have any teletext sources for testing, and since teletext is
being phased out world-wide, the need for this is questionable.

Note that rendering is extremely inefficient, mostly because the libass
output is blended with the extremely strange mplayer OSD format. This
could be improved at a later point.

Remove most OSD rendering from vo_aa.c, because that was extremely
hacky, can't be made work with osd_libass, and didn't work anyway in
my tests.

Internally, some cleanup is done. Subtitle and OSD related variable
declarations were literally all over the place. Move them to sub.h and
sub.c, which were hoarding most of these declarations already. Make the
player core in mplayer.c free of concerns like bitmap font loading.

The old OSD rendering code has been moved to osd_ft.c. The font_load.c
and font_load_ft.c are only needed and compiled if the old OSD
rendering code is configured.
2012-07-28 23:36:07 +02:00
..
ass_mp.c osd: use libass for OSD rendering 2012-07-28 23:36:07 +02:00
ass_mp.h options: move libass-related options to struct 2011-09-03 14:26:14 +03:00
av_sub.c Update Libav API uses 2012-02-01 22:46:27 +02:00
av_sub.h
dec_sub.c
dec_sub.h
find_sub.c
find_subfiles.c windows support: unicode filenames 2012-03-09 20:48:54 +02:00
find_subfiles.h subs: options: add -sub-paths 2011-04-20 04:22:52 +03:00
font_load_ft.c osd: use libass for OSD rendering 2012-07-28 23:36:07 +02:00
font_load.c windows support: unicode filenames 2012-03-09 20:48:54 +02:00
font_load.h osd: use libass for OSD rendering 2012-07-28 23:36:07 +02:00
osd_font.h osd: use libass for OSD rendering 2012-07-28 23:36:07 +02:00
osd_ft.c osd: use libass for OSD rendering 2012-07-28 23:36:07 +02:00
osd_libass.c osd: use libass for OSD rendering 2012-07-28 23:36:07 +02:00
sd_ass.c sd_ass.c: set event->Style to fix --ass-styles 2011-09-23 13:57:11 +03:00
sd.h
spudec.c build: switch to libavutil bswap.h and intreadwrite.h 2012-02-01 22:46:27 +02:00
spudec.h
sub_cc.c osd: use libass for OSD rendering 2012-07-28 23:36:07 +02:00
sub_cc.h
sub.c osd: use libass for OSD rendering 2012-07-28 23:36:07 +02:00
sub.h osd: use libass for OSD rendering 2012-07-28 23:36:07 +02:00
subassconvert.c subassconvert: make subrip attribute parsing more robust 2012-04-17 02:43:15 +03:00
subassconvert.h
subreader.c osd: use libass for OSD rendering 2012-07-28 23:36:07 +02:00
subreader.h find_subfiles: move sub_filenames() here 2011-04-20 04:22:52 +03:00
unrar_exec.c
unrar_exec.h
vobsub.c cleanup: Silence compilation warnings on MinGW-w64 2012-03-01 00:22:30 +02:00
vobsub.h options: change -alang and -slang to use string list type 2011-04-20 04:22:42 +03:00