libweston: add weston_output::color_profile
Add API to set an output's color profile. This new function can also be
called while the output is enabled. This allows changing the output
color profile even at runtime if desired.
color-noop has no way of creating weston_color_profile objects, so it
just asserts that no color profile is set.
color-lcms does not yet implement taking the output color profile into
account, so for now it just fails everything if a profile is set.
weston_surface_color_transform_fini() was previously used only prior to
freeing the struct, but now it is used also to just clear the struct,
hence it needs to reset the fields.
Signed-off-by:
Pekka Paalanen <pekka.paalanen@collabora.com>
parent
45854512
No related branches found
No related tags found
This commit is part of merge request !637. Comments created here will be created in the context of that merge request.
Showing
- include/libweston/libweston.h 5 additions, 0 deletionsinclude/libweston/libweston.h
- libweston/color-lcms/color-lcms.c 17 additions, 0 deletionslibweston/color-lcms/color-lcms.c
- libweston/color-noop.c 4 additions, 4 deletionslibweston/color-noop.c
- libweston/color.c 2 additions, 0 deletionslibweston/color.c
- libweston/compositor.c 61 additions, 0 deletionslibweston/compositor.c
Loading
Please register or sign in to comment