diff options
author | Pekka Paalanen <pekka.paalanen@collabora.com> | 2021-03-29 14:11:49 +0300 |
---|---|---|
committer | Pekka Paalanen <pq@iki.fi> | 2021-06-14 12:53:41 +0000 |
commit | 5e79dd4892e66e04c839f15ea1548c1a9c627595 (patch) | |
tree | d2382a34bb974e050dc2f9f14c7ffba186d7151e /libweston/color.h | |
parent | 8fb23ed11086c2b8c34bfc42e19091ac5b29924e (diff) |
libweston: begin color-lcms plugin
This creates the color-lcms plugin that in the future will be using
Little CMS as the color matching module, processing ICC profiles, and
producing HDR tone mappings.
Right now, this new plugin is functionally equivalent to the no-op color
manager, except it already links to lcms2 and checks that the renderer
supports color operations.
Color-lcms is a libweston plugin that is loaded with explicit
weston_compositor API. This does not currently allow loading alternative
color manager plugins. External color manager plugins might be
considered in the future when the libweston APIs around color management
stabilize.
This libweston plugin uses the same build option as the old cms-static
Weston plugins, as they both need lcms2. The minimum version for lcms2
was chosen by what Debian Buster provides today and for no other reason.
This plugin intends to support the Wayland CM&HDR protocol extension and
hence sets supports_client_protocol to true. This will expose the
protocol extension to clients when it gets implemented.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
Diffstat (limited to 'libweston/color.h')
-rw-r--r-- | libweston/color.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libweston/color.h b/libweston/color.h index 18f8e4a3..970483e8 100644 --- a/libweston/color.h +++ b/libweston/color.h @@ -235,4 +235,8 @@ weston_paint_node_ensure_color_transform(struct weston_paint_node *pnode); struct weston_color_manager * weston_color_manager_noop_create(struct weston_compositor *compositor); +/* DSO module entrypoint */ +struct weston_color_manager * +weston_color_manager_create(struct weston_compositor *compositor); + #endif /* WESTON_COLOR_H */ |