mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 01:52:19 +00:00
dec73f503f
With multiple rects touching each other without any gaps, the current scale method can cause gaps or overlaps between rects. To make sure that this does not happen, scale on the edges of the rects instead, and then calculate the width and height from the results. NB: while this is better than the status quo, it does not fix all scaling artifacts because of the following: - When two rects share a vertical edge but have different heights, misalignment will occur: after rounding rect heights to pixels, the height scale factor for the two rects will be slightly different. As a result, there will be misalignment between the scaled images. - With a GPU renderer, different bitmap subtitle parts are rendered as different textures. This means that the pixel contents of the parts have different boundary conditions from the whole combined image. As a result, there will still be small gaps when the subtitle is scaled up. The only way to properly address these points is to make sure that the parts are combined to a single image at the native resolution before being scaled. This can be partly achieved with --blend-subtitles=video. |
||
---|---|---|
.. | ||
ass_mp.c | ||
ass_mp.h | ||
dec_sub.c | ||
dec_sub.h | ||
draw_bmp.c | ||
draw_bmp.h | ||
filter_jsre.c | ||
filter_regex.c | ||
filter_sdh.c | ||
img_convert.c | ||
img_convert.h | ||
lavc_conv.c | ||
meson.build | ||
osd_font.otf | ||
osd_libass.c | ||
osd_state.h | ||
osd.c | ||
osd.h | ||
sd_ass.c | ||
sd_lavc.c | ||
sd.h |