mirror of https://github.com/mpv-player/mpv
f3871193fc
Both converters can output \pos and deal with font sizes, so they assume a specific script resolution (PlayResX/PlayResY). The implicit assumption was that a specific resolution was guaranteed. The MP_ASS_FONT_PLAYRESY constant is connected to this. Better make it explicit, so that the implicit dependency on MP_ASS_FONT_PLAYRESY is removed. (Unfortunately, libavcodec sub converters still don't set PlayResX/PlayResY explicitly, so the value set by that constant can't be declared as arbitrary yet.) PlayResY=288 is most likely the SSA natural script resolution (or something like this?), as well as the libass and VSFilter default. PlayResX=384 is the fallback value set by libass if PlayResY is set to 288, and PlayResX is unset. |
||
---|---|---|
.. | ||
ass_mp.c | ||
ass_mp.h | ||
dec_sub.c | ||
dec_sub.h | ||
draw_bmp.c | ||
draw_bmp.h | ||
find_subfiles.c | ||
find_subfiles.h | ||
img_convert.c | ||
img_convert.h | ||
osd_dummy.c | ||
osd_font.otf | ||
osd_libass.c | ||
sd.h | ||
sd_ass.c | ||
sd_lavc.c | ||
sd_lavc_conv.c | ||
sd_microdvd.c | ||
sd_movtext.c | ||
sd_spu.c | ||
sd_srt.c | ||
spudec.c | ||
spudec.h | ||
sub.c | ||
sub.h | ||
subreader.c | ||
subreader.h |