compositor: add weston.ini option to enable color management
This new option allows loading the color-lcms plugin. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
committed by
Pekka Paalanen
parent
5e79dd4892
commit
c87fa24059
@@ -1086,6 +1086,7 @@ weston_compositor_init_config(struct weston_compositor *ec,
|
|||||||
struct xkb_rule_names xkb_names;
|
struct xkb_rule_names xkb_names;
|
||||||
struct weston_config_section *s;
|
struct weston_config_section *s;
|
||||||
int repaint_msec;
|
int repaint_msec;
|
||||||
|
bool color_management;
|
||||||
bool cal;
|
bool cal;
|
||||||
|
|
||||||
/* weston.ini [keyboard] */
|
/* weston.ini [keyboard] */
|
||||||
@@ -1125,6 +1126,13 @@ weston_compositor_init_config(struct weston_compositor *ec,
|
|||||||
weston_log("Output repaint window is %d ms maximum.\n",
|
weston_log("Output repaint window is %d ms maximum.\n",
|
||||||
ec->repaint_msec);
|
ec->repaint_msec);
|
||||||
|
|
||||||
|
weston_config_section_get_bool(s, "color-management",
|
||||||
|
&color_management, false);
|
||||||
|
if (color_management) {
|
||||||
|
if (weston_compositor_load_color_manager(ec) < 0)
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
/* weston.ini [libinput] */
|
/* weston.ini [libinput] */
|
||||||
s = weston_config_get_section(config, "libinput", NULL, NULL);
|
s = weston_config_get_section(config, "libinput", NULL, NULL);
|
||||||
weston_config_section_get_bool(s, "touchscreen_calibrator", &cal, 0);
|
weston_config_section_get_bool(s, "touchscreen_calibrator", &cal, 0);
|
||||||
|
|||||||
@@ -207,6 +207,20 @@ Enables pixman-based rendering for all outputs on backends that support it.
|
|||||||
Boolean, defaults to
|
Boolean, defaults to
|
||||||
.BR false .
|
.BR false .
|
||||||
There is also a command line option to do the same.
|
There is also a command line option to do the same.
|
||||||
|
.RE
|
||||||
|
.TP 7
|
||||||
|
.BI "color-management=" true
|
||||||
|
Enables color management and requires using GL-renderer.
|
||||||
|
Boolean, defaults to
|
||||||
|
.BR false .
|
||||||
|
|
||||||
|
.I TENTATIVE, EXPERIMENTAL, WORK IN PROGRESS:
|
||||||
|
Color management enables the use of ICC files to describe monitor color
|
||||||
|
behavior, Wayland protocol extensions for clients to describe their color
|
||||||
|
spaces and perform monitor profiling, and tone mapping required to enable HDR
|
||||||
|
video modes. This extended functionality comes at the cost of heavier image
|
||||||
|
processing and sometimes a loss of some hardware off-loading features like
|
||||||
|
composite-bypass.
|
||||||
|
|
||||||
.SH "LIBINPUT SECTION"
|
.SH "LIBINPUT SECTION"
|
||||||
The
|
The
|
||||||
|
|||||||
Reference in New Issue
Block a user