mpv/sub
wm4 130866e269 sd_lavc: don't stretch DVD subtitles to video aspect
I'm not sure what's correct: stretching the DVD subtitles from storage
aspect ratio to video display aspect ratio, or displaying subtitles
using 1:1 PAR. Until now, DVD subtitles (as well as all other bitmap
subtitles) were always stretched to the video. There are good arguments
why this would be the correct behavior: DVDs were made for playback on
TV, which display anamorphic video by adjusting the horizontal refresh
rate, and thus wouldn't even be capable of DVD subtitles with square PAR
(other than resampling the subtitles additionally).

However, I haven't seen a sample yet where subtitles do _not_ look
stretched using this method. Rendering them at 1:1 PAR looks better.
Technically, we render them at display PAR (and not 1:1 PAR). Do this in
a way so that the subtitle area is always inside of the video frame if
display and video aspect ratios mismatch.

For DVB subtitles, the old method looks more correct, so this is special
cased to DVD subtitles.

I might revert this commit if it turns out that it's an disimprovement.
2013-07-16 23:04:21 +02:00
..
ass_mp.c sub: add demux_libass wrapper, drop old hacks 2013-06-25 00:11:56 +02:00
ass_mp.h sub: add demux_libass wrapper, drop old hacks 2013-06-25 00:11:56 +02:00
dec_sub.c demux: remove facility for partial packet reads 2013-07-11 19:10:33 +02:00
dec_sub.h sd_add: add terrible hack for (xy-)vsfilter compatibility 2013-07-15 02:01:37 +02:00
draw_bmp.c sub: don't crash on GBRP video 2013-03-28 21:46:17 +01:00
draw_bmp.h vo_xv, vo_x11: simplify OSD redrawing 2013-01-13 20:04:12 +01:00
find_subfiles.c sub: remove some global variables 2013-05-30 22:44:18 +02:00
find_subfiles.h sub: remove vobsub reader in favor of ffmpeg vobsub demuxer 2012-12-11 00:37:54 +01:00
img_convert.c img_convert: use multiple bounding boxes for ASS->RGBA 2013-01-13 20:04:16 +01:00
img_convert.h img_convert: add sub_bitmap bounding box functions 2013-01-13 20:04:16 +01:00
osd_dummy.c sub: allow rendering OSD in ASS image format directly, simplify 2012-10-16 07:26:30 +02:00
osd_font.otf osd: convert OSD font to OpenType 2013-04-27 18:03:19 +02:00
osd_libass.c Cleanup some include statements 2013-07-12 22:16:26 +02:00
sd.h dec_sub: introduce sub_control(), use it for sub_step 2013-06-29 22:58:14 +02:00
sd_ass.c sd_ass: fix font aspect ratio with non-ASS subs 2013-07-16 23:03:59 +02:00
sd_lavc.c sd_lavc: don't stretch DVD subtitles to video aspect 2013-07-16 23:04:21 +02:00
sd_lavc_conv.c sd_ass: handle libavformat ASS comment packets as well 2013-06-23 22:34:00 +02:00
sd_lavf_srt.c sub: add hack for Libav SRT demuxer 2013-06-25 00:11:57 +02:00
sd_microdvd.c sd_srt, sd_microdvd: set ASS script resolution 2013-06-03 23:00:39 +02:00
sd_movtext.c sd_ass: disable special handling of subtitles with duration 0 2013-06-25 00:11:54 +02:00
sd_spu.c sub: add name field to all sub decoders 2013-06-03 22:40:32 +02:00
sd_srt.c sd_srt: handle '<font color="##FFA500">' 2013-06-18 02:19:15 +02:00
spudec.c spudec: restore --sub-forced-only support 2013-05-30 22:40:32 +02:00
spudec.h sub: add sd_spu.c to wrap spudec, cleanup mplayer.c 2013-05-30 22:40:32 +02:00
sub.c sub: Do not use deprecated “Sans” fontconfig alias 2013-07-08 18:02:46 +02:00
sub.h sub: update subtitle time offset even if paused 2013-06-29 22:58:14 +02:00