1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 16:33:02 +00:00
mpv/sub
wm4 56058a95e5 sub: fix --sub-gauss
Implement it directly in sd_lavc.c as well. Blurring requires extending
the size of the sub-images by the blur radius. Since we now want
sub_bitmaps to be packed into a single image, and we don't want to
repack for blurring, we add some extra padding to each sub-bitmap in the
initial packing, and then extend their size later. This relies on the
previous bitmap_packer commit, which always adds the padding in all
cases.

Since blurring is now done on parts of a large bitmap, the data pointers
can become unaligned, depending on their position. To avoid shitty
libswscale printing a dumb warning, allocate an extra image, so that the
blurring pass is done on two newly allocated images. (I don't find this
feature important enough to waste more time on it.)

The previous refactor accidentally broke this feature due to a logic bug
in osd.c. It didn't matter before it happened to break, and doesn't
matter now since the code paths are different.
2016-06-17 23:14:26 +02:00
..
ass_mp.c osd: add italic font for osd 2016-04-08 10:58:06 +02:00
ass_mp.h osd: refactor how mp_ass_render_frame() is called 2016-03-08 21:59:55 +01:00
dec_sub.c sub: force segment switch if video is already ahead 2016-03-25 17:40:44 +01:00
dec_sub.h sub: make preloading more robust 2016-03-06 15:17:59 +01:00
draw_bmp.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
draw_bmp.h
img_convert.c sub: fix --sub-gauss 2016-06-17 23:14:26 +02:00
img_convert.h sub: fix --sub-gauss 2016-06-17 23:14:26 +02:00
lavc_conv.c sub: interpret "text" subtitles as srt 2016-04-06 12:36:13 +02:00
osd_dummy.c osd: make osd_ass_0/1 defines 2016-05-03 22:29:12 +02:00
osd_font.otf
osd_libass.c osd: make osd_ass_0/1 defines 2016-05-03 22:29:12 +02:00
osd_state.h osd: cleanup: make OSDTYPE_ constants private to OSD code 2016-03-08 22:01:57 +01:00
osd.c sub: fix --sub-gauss 2016-06-17 23:14:26 +02:00
osd.h sub: move paletted image handling completely to sd_lavc.c 2016-06-17 23:13:14 +02:00
sd_ass.c ass_process_chunk: Use llrint, not lrint 2016-05-10 00:41:57 +02:00
sd_lavc.c sub: fix --sub-gauss 2016-06-17 23:14:26 +02:00
sd.h sub: make preloading more robust 2016-03-06 15:17:59 +01:00