weston/frontend
Leandro Ribeiro 32d0bd3d0e compositor: add grayscale output color effect
This adds a new output color effect: grayscale. It takes RGB color as
input and computes a gray pixel color using the luminance formula for
linear sRGB:

Y = 0.2126 * R + 0.7152 * G + 0.0722 * B

Just like the other color effects we have, this only works for sRGB and
are not enabled when color-management is on.

Note: although the technique is designed to be applied in linear, it's
costly to convert to linear and then back to electrical. As doing the
conversion in electrical still gives a reasonable result, we do it this
way. When we add support for color effects with color-management on,
we'll apply the effect in linear.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
2026-03-04 13:11:56 -03:00
..
config-helpers.c frontend: use weston_enum_map for renderers 2025-08-05 11:51:23 -05:00
executable.c Rename compositor/ to frontend/ 2023-12-18 15:34:26 +00:00
main.c compositor: add grayscale output color effect 2026-03-04 13:11:56 -03:00
meson.build frontend: create automatic color profiles from .ini 2025-10-07 17:23:35 +03:00
screen-share.c screen-share: Guard pixman_image_unref call on shared_output_destroy 2025-08-28 11:17:33 +02:00
systemd-notify.c Revert "shared/helpers.h: Migrate helpers.h to libweston" 2025-01-17 10:18:26 +02:00
text-backend.c Revert "shared/helpers.h: Migrate helpers.h to libweston" 2025-01-17 10:18:26 +02:00
weston-private.h tests: add color-output-parsing 2025-10-09 16:17:57 +00:00
weston-screenshooter.c Revert "shared/helpers.h: Migrate helpers.h to libweston" 2025-01-17 10:18:26 +02:00
weston.desktop Rename compositor/ to frontend/ 2023-12-18 15:34:26 +00:00
weston.h Rename compositor/ to frontend/ 2023-12-18 15:34:26 +00:00
xwayland.c frontend: give Xwayland client an internal name 2026-02-19 16:21:19 +02:00