monitor: Add API to list supported color modes

Available modes are 'default', which is always added, and BT.2100,
which is added if the BT.2020 color space, and the PQ transfer function,
is supported by the output.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4192>
This commit is contained in:
Jonas Ådahl
2024-12-12 12:47:21 +01:00
committed by Marge Bot
parent fc6d79eda9
commit f1e497acfa
3 changed files with 41 additions and 0 deletions

View File

@ -355,4 +355,6 @@ void meta_monitor_set_for_lease (MetaMonitor *monitor,
META_EXPORT_TEST
gboolean meta_monitor_is_for_lease (MetaMonitor *monitor);
GList * meta_monitor_get_supported_color_modes (MetaMonitor *monitor);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MetaMonitorSpec, meta_monitor_spec_free)