diff options
author | Pekka Paalanen <pekka.paalanen@collabora.com> | 2024-03-07 12:42:04 +0200 |
---|---|---|
committer | Pekka Paalanen <pq@iki.fi> | 2024-04-19 12:19:36 +0000 |
commit | abe3e20e1f82ea12f59822eaba20ceb232c3b200 (patch) | |
tree | 0860e313ce355b47ed488d7985cc43fb77ba4484 | |
parent | 9f4a9089f4c9de394b4edca53eb69c15084678a6 (diff) |
color-lcms: switch default rendering intent to perceptual
This should produce the best results on average for all kinds of apps on
any kind of display.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
-rw-r--r-- | libweston/color-lcms/color-lcms.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libweston/color-lcms/color-lcms.c b/libweston/color-lcms/color-lcms.c index 10839787..593fea20 100644 --- a/libweston/color-lcms/color-lcms.c +++ b/libweston/color-lcms/color-lcms.c @@ -59,10 +59,13 @@ render_intent_from_surface_or_default(struct weston_color_manager_lcms *cm, if (surface && surface->render_intent) return surface->render_intent; - /* Use default render intent. TODO: default should be - * WESTON_RENDER_INTENT_PERCEPTUAL. That requires tweaking the tests. */ + /* + * When color-management protocol has not been used to set a rendering + * intent, we can freely choose our own. Perceptual is the best + * considering the use case of color unaware apps on a HDR screen. + */ return weston_render_intent_info_from(cm->base.compositor, - WESTON_RENDER_INTENT_RELATIVE); + WESTON_RENDER_INTENT_PERCEPTUAL); } static struct cmlcms_color_profile * |