1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-30 19:22:11 +00:00
mpv/options
Dudemanguy 6623efb142 wayland: add support for content-type protocol
The content-type protocol allows mpv to send compositor a hint about the
type of content being displayed on its surface so it could potentially
make some sort of optimization. Fundamentally, this is pretty simple but
since this requires a very new wayland-protocols version (1.27), we have
to mess with the build to add a new define and add a bunch of if's in
here. The protocol itself exposes 4 different types of content: none,
photo, video, and game.

To do that, let's add a new option (wayland-content-type) that lets
users control what hint to send to the compossitor. Since the previous
commit adds a VOCTRL that notifies us about the content being displayed,
we can also add an auto value to this option. As you'd expect, the
compositor hint would be set to photo if mpv's core detects an image,
video for other things, and it is set to none for the special case of
forcing a window when there is not a video track. For completion's sake,
game is also allowed as a value for this option, but in practice there
shouldn't be a reason to use that.
2022-11-15 23:18:55 +00:00
..
m_config_core.c osdep: rename MP_UNREACHABLE 2021-11-03 15:15:20 +01:00
m_config_core.h options: more pushing code around 2020-03-13 16:50:27 +01:00
m_config_frontend.c options: log profile name if there is no restore data 2022-10-28 15:48:24 +00:00
m_config_frontend.h options: add watch-later-options 2021-07-21 13:19:28 +00:00
m_config.h options: split m_config.c/h 2020-03-13 16:50:27 +01:00
m_option.c options: const annotate all m_opt_choice_alternatives accessors 2021-11-15 14:02:08 +00:00
m_option.h options: remove always true m_obj_list::allow_unknown_entries 2021-11-15 14:02:08 +00:00
m_property.c command: disable edition switching if there are no editions 2020-03-14 01:32:27 +01:00
m_property.h command: move property multiply code to m_property.c 2018-03-26 19:47:08 +02:00
options.c wayland: add support for content-type protocol 2022-11-15 23:18:55 +00:00
options.h wayland: add support for content-type protocol 2022-11-15 23:18:55 +00:00
parse_commandline.c options: split m_config.c/h 2020-03-13 16:50:27 +01:00
parse_commandline.h player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
parse_configfile.c various: fix typos 2022-04-25 09:07:18 -04:00
parse_configfile.h options: split m_config.c/h 2020-03-13 16:50:27 +01:00
path.c path: do not use old_home for win32 exe dir 2020-11-16 00:44:40 +02:00
path.h path: add mp_path_is_absolute() 2020-02-06 14:14:35 +01:00