1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-06 23:21:54 +00:00
mpv/sub
wm4 27c5550de2 sd_lavc: implement --sub-pos for bitmap subtitles
Simple enough to do. May have mixed results. Typically, bitmap subtitles
will have a tight bounding box around the rendered text. But if for
example there is text on the top and bottom, it may be a single big
bitmap with a large transparent area between top and bottom. In
particular, DVD subtitles are really just a single screen-sized
RLE-encoded bitmap, though libavcodec will crop off transparent areas.

Like with sd_ass, you can't move subtitles _down_ if they are already in
their origin position. This could probably be improved, but I don't want
to deal with that right now.
2019-09-19 20:37:04 +02:00
..
ass_mp.c
ass_mp.h
dec_sub.c Implement backwards playback 2019-09-19 20:37:04 +02:00
dec_sub.h Implement backwards playback 2019-09-19 20:37:04 +02:00
draw_bmp.c
draw_bmp.h
filter_sdh.c
img_convert.c
img_convert.h
lavc_conv.c
osd_dummy.c
osd_font.otf
osd_libass.c
osd_state.h
osd.c
osd.h
sd_ass.c sub/sd_ass: always set the libass track type to TRACK_TYPE_ASS 2019-09-19 00:02:03 +03:00
sd_lavc.c sd_lavc: implement --sub-pos for bitmap subtitles 2019-09-19 20:37:04 +02:00
sd.h