0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00
mpv/DOCS/man
wm4 1f132c675a options: add some way to more or less "unapply" profiles
Make it possible to restore from profiles by backing up the option
values before profile application. This is sort of like unapplying a
profile. Since there might be multiple ways to do this, a profile needs
to explicitly provide the "profile-restore" option, which specifies how
exactly this should be done.

This is a big mess. There is not natural way to do this. Profile
application is "destructive" and simply changes the values of the
options. Maybe one could argue that the option system should have
hierarchical "overlays" of profiles instead, where unset options will
use the value of the lower profiles. Options set interactively by the
user would be the top profile. Default values would be in the lowest
profile. You could unapply a profile by simply removing it from this
overlay stack.

But uh, let's not, so here's something stupid. It reuses some code used
for file local options to reduce code size. At least the overlay idea
would still be possible in theory, and could be added as another
profile-restore mode.

This is used by the following commit.
2020-08-07 19:41:56 +02:00
..
af.rst audio: add scaletempo2 filter based on chromium 2020-07-27 00:57:22 +02:00
ao.rst manpage: drop --sdl-bufcnt after 346c687d5a 2020-07-21 15:08:47 +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 options: add some way to more or less "unapply" profiles 2020-08-07 19:41:56 +02:00
ipc.rst scripting: make socket FD number for subprocesses dynamic 2020-05-15 16:37:41 +02:00
javascript.rst js: hooks: allow deferred continuation (match d0ab562b) 2020-08-07 15:12:20 +03:00
libmpv.rst manpage: define stricter rules for C plugin return values 2017-01-14 17:41:04 +01:00
lua.rst lua: make hook processing more flexible 2020-08-05 23:19:41 +02:00
mpv.rst options: add some way to more or less "unapply" profiles 2020-08-07 19:41:56 +02:00
options.rst auto_profiles: add this script 2020-08-05 22:37:47 +02:00
osc.rst manpage: clarify requirements for boxvideo 2020-08-04 15:20:24 -05:00
stats.rst stats: UP/DOWN scrolling on page 2 (frame stats) 2020-05-17 20:11:50 +02:00
vf.rst video: add alpha type metadata 2020-04-24 14:41:50 +02:00
vo.rst vo_direct3d: rip out texture video rendering path 2020-05-13 22:19:00 +02:00