1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00
mpv/DOCS/man
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
..
af.rst audio: remove unreferenced af_lavrresample 2019-09-19 20:37:05 +02:00
ao.rst ao_pulse: add --pulse-allow-suspended 2019-09-21 12:54:36 +02:00
changes.rst manpage: directly link interface-changes.rst in changelog section 2020-02-21 14:34:02 +01:00
console.rst console: use hidpi scale reporting 2019-12-20 13:00:39 +01:00
encode.rst manpage: explain deprecated usage of multiple items with *-add 2020-01-07 18:13:12 +01:00
input.rst command: extend osd-overlay command with bounds reporting 2020-03-06 18:20:11 +01:00
ipc.rst ipc: allow sending commands with named arguments 2020-02-24 00:31:46 +01:00
javascript.rst DOCS: js: minor update for require 2020-02-07 19:24:00 +02:00
libmpv.rst
lua.rst command: extend osd-overlay command with bounds reporting 2020-03-06 18:20:11 +01:00
mpv.rst manpage: fix some path description details 2020-02-21 12:13:54 +01:00
options.rst manpage: fix typos 2020-03-06 18:12:13 +01:00
osc.rst osc: use default hr-seek when dragging progress bar to seek 2020-02-28 17:17:42 +01:00
stats.rst manpage: document stats page 3 2019-10-31 11:06:22 +01:00
vf.rst vf_format: add w, h parameters 2020-02-09 18:23:22 +01:00
vo.rst sws_utils, zimg: destroy vo_x11 and vo_drm performance 2019-10-31 16:51:12 +01:00