mpv/sub
wm4 7a76b577d8 command: extend osd-overlay command with bounds reporting
This is more or less a minimal hack to make _some_ text measurement
functionality available to scripts. Since libass does not support such a
thing, this simply uses the bounding box of the rendered text.

This is far from ideal. Problems include:
- using a bitmap bounding box
- additional memory waste and/or flushing caches
- dependency on window size
- odd small deviations with different window sizes (run osd-test.lua and
  resize the window after each timer update; the bounding boxes aren't
  adjusted in an overly useful way)
- inability to query the size _after_ actual rendering

But I guess it's a start. Since I'm aware that it's crap, add a threat
to the manpage that this may be changed/removed again. For now, I'm
interested whether anyone will have use for it in its current form, as
it's an often requested feature.
2020-03-06 18:20:11 +01:00
..
ass_mp.c command: extend osd-overlay command with bounds reporting 2020-03-06 18:20:11 +01:00
ass_mp.h command: extend osd-overlay command with bounds reporting 2020-03-06 18:20:11 +01:00
dec_sub.c sub: do not ignore demuxer wakeups 2020-02-27 02:33:51 +01:00
dec_sub.h sub: make filter_sdh a "proper" filter, allow runtime changes 2020-02-16 02:07:24 +01:00
draw_bmp.c Replace uses of FFMIN/MAX with MPMIN/MAX 2019-10-31 11:24:20 +01:00
draw_bmp.h
filter_regex.c sub: add an option to filter subtitles by regex 2020-02-16 02:07:24 +01:00
filter_sdh.c sub: make filter_sdh a "proper" filter, allow runtime changes 2020-02-16 02:07:24 +01:00
img_convert.c Replace uses of FFMIN/MAX with MPMIN/MAX 2019-10-31 11:24:20 +01:00
img_convert.h
lavc_conv.c Remove remains of Libav compatibility 2020-02-16 15:14:55 +01:00
osd.c osd: fix possible misses of osd-dimensions property updates 2020-01-08 02:31:18 +01:00
osd.h command: extend osd-overlay command with bounds reporting 2020-03-06 18:20:11 +01:00
osd_dummy.c client API, lua: add new API for setting OSD overlays 2019-12-23 11:44:24 +01:00
osd_font.otf osc: use custom symbols for window controls 2019-12-11 13:53:10 -08:00
osd_libass.c command: extend osd-overlay command with bounds reporting 2020-03-06 18:20:11 +01:00
osd_state.h command: extend osd-overlay command with bounds reporting 2020-03-06 18:20:11 +01:00
sd.h sub: add an option to filter subtitles by regex 2020-02-16 02:07:24 +01:00
sd_ass.c sub: add an option to filter subtitles by regex 2020-02-16 02:07:24 +01:00
sd_lavc.c Remove remains of Libav compatibility 2020-02-16 15:14:55 +01:00