1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-17 20:34:58 +00:00
mpv/sub
wm4 bcc3d72995 sd_lavc: strictly letter-box PGS subtitles
Getting subtitle scaling and positioning right even if there are video
filters, which completely change the image (like cropping), doesn't seem
to have a single, correct solution. To some degree, the results are
arbitrary, so we may as well do what is most useful to the user.

In this case, if the PGS resolution aspect ratio and the video output
aspect ratio mismatch, letter-box it, instead of stretching the subs
over the video frame. (This will require additional fixes, should it
turn out that there are PGS subtitles which are stretched by design.)

Fixes #1205.
2014-10-21 11:37:32 +02:00
..
ass_mp.c sub: adjustments to --ass-style-override option 2014-10-17 02:06:08 +02:00
ass_mp.h sub: fix undefined behavior in ASS color calculation 2014-05-10 10:44:16 +02:00
dec_sub.c demux: gracefully handle packet allocation failures 2014-09-16 18:11:00 +02:00
dec_sub.h sub: uglify sub decoder with locking 2014-01-17 23:21:17 +01:00
draw_bmp.c video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
draw_bmp.h
find_subfiles.c build: include <strings.h> for strcasecmp() 2014-07-10 08:29:32 +02:00
find_subfiles.h vo: dropping subtitle files on the VO window adds them as subtitle files 2014-01-04 01:27:29 +01:00
img_convert.c img_convert: sanitizer: avoid invalid left-shifts 2014-09-14 21:10:09 +02:00
img_convert.h
osd_dummy.c Add some missing "const"s 2014-10-10 13:44:08 +02:00
osd_font.otf osd+osc: Add left-arrow to osd-font 2014-08-21 18:45:41 +02:00
osd_libass.c Add some missing "const"s 2014-10-10 13:44:08 +02:00
osd_state.h video/out: change aspects of OSD handling 2014-06-15 20:53:15 +02:00
osd.c sd_lavc: strictly letter-box PGS subtitles 2014-10-21 11:37:32 +02:00
osd.h Add some missing "const"s 2014-10-10 13:44:08 +02:00
sd_ass.c sub: add option to workaround broken mkv files 2014-08-14 23:59:35 +02:00
sd_lavc_conv.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
sd_lavc.c sd_lavc: strictly letter-box PGS subtitles 2014-10-21 11:37:32 +02:00
sd_lavf_srt.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
sd_microdvd.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
sd_movtext.c
sd_srt.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
sd.h demux_libass: change how external ASS subtitles are loaded 2014-03-15 22:17:51 +01:00