mpv/player
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
..
javascript js: require: directory-scripts: first look at <dir>/modules/ 2020-02-07 18:22:12 +02:00
lua command: extend osd-overlay command with bounds reporting 2020-03-06 18:20:11 +01:00
audio.c f_decoder_wrapper: replace most public fields with setters/getters 2020-02-29 01:23:20 +01:00
client.c ta: remove two pointless wrappers 2020-02-23 19:48:25 +01:00
client.h scripting: load scripts from directories 2020-02-01 18:09:40 +01:00
command.c command: extend osd-overlay command with bounds reporting 2020-03-06 18:20:11 +01:00
command.h command, vo: add a mechanism for runtime DPI scale changes 2020-01-09 19:13:42 +01:00
configfiles.c player: fix minor coding style issue 2020-01-26 14:29:48 +01:00
core.h player: force update of cache properties even on inactive demuxer cache 2020-03-05 22:23:43 +01:00
external_files.c external_files: add .lrc subtitle extension 2019-09-02 01:25:43 +03:00
external_files.h player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
javascript.c js: require: directory-scripts: first look at <dir>/modules/ 2020-02-07 18:22:12 +02:00
loadfile.c player: reduce impact of blocking filters 2020-03-05 22:00:50 +01:00
lua.c lua: fix typo in comment 2020-02-06 23:02:23 +01:00
main.c options: make decoder options local to decoder wrapper 2020-03-01 00:28:09 +01:00
misc.c player: dumb seeking related stuff, make audio hr-seek default 2020-02-28 17:15:07 +01:00
osd.c f_decoder_wrapper: replace most public fields with setters/getters 2020-02-29 01:23:20 +01:00
playloop.c player: force update of cache properties even on inactive demuxer cache 2020-03-05 22:23:43 +01:00
screenshot.c screenshot: fix typo in comment 2020-02-07 13:42:42 +01:00
screenshot.h player: make screenshot each-frame mode more accurate 2020-02-07 13:32:21 +01:00
scripting.c scripting: fix racy crash if loading .run files fails 2020-02-25 22:41:09 +01:00
sub.c player: partially fix backward playback display of cached text subtitles 2020-02-04 20:26:35 +01:00
video.c f_decoder_wrapper: replace most public fields with setters/getters 2020-02-29 01:23:20 +01:00