[RFC PATCH 2/6] Attach input profiles and build corresponding LUTs

2014-03-30 Thread Niels Ole Salscheider
This implements the functionality to attach a profile to a surface in weston. An LUT is built from the profile that can be used to transform colors from the input color space to the blending color space. This patch uses the sRGB color space as blending space because it uses 8 bit LUTs for now and

[RFC PATCH 4/6] gl-renderer: Add necessary shaders for color correction

2014-03-30 Thread Niels Ole Salscheider
This patch ignores the YUV variants for now. Signed-off-by: Niels Ole Salscheider niels_...@salscheider-online.de --- src/gl-renderer.c | 104 ++ 1 file changed, 104 insertions(+) diff --git a/src/gl-renderer.c b/src/gl-renderer.c index

[RFC PATCH 0/6] Initial per-surface color management

2014-03-30 Thread Niels Ole Salscheider
The following patches add initial support for per-surface color management in weston. The last patch allows to set a color profile in the image demo program. It uses sRGB as blending color space for now because OpenGL ES 2.0 limits me to an 8 bit LUT and I would like to avoid losing precision.

[RFC PATCH 5/6] gl-renderer: Correct colors during rendering

2014-03-30 Thread Niels Ole Salscheider
This patch ignores the borders for now. Signed-off-by: Niels Ole Salscheider niels_...@salscheider-online.de --- src/gl-renderer.c | 309 ++ 1 file changed, 286 insertions(+), 23 deletions(-) diff --git a/src/gl-renderer.c b/src/gl-renderer.c

[RFC PATCH 6/6] image demo client: Add support for color management

2014-03-30 Thread Niels Ole Salscheider
You can now use the C key to toggle between the following modes: - Assume sRGB input color space - Assume that the input color space is the blending color space - Do not use color correction - Attach a false-color ICC profile to the surface Signed-off-by: Niels Ole Salscheider

[RFC PATCH 1/6] Add colorcorrection protocol

2014-03-30 Thread Niels Ole Salscheider
The color correction protocol allows to attach an ICC profile to a surface. It also tells the client about the blending color space and the color spaces of all outputs. Signed-off-by: Niels Ole Salscheider niels_...@salscheider-online.de --- Makefile.am | 15 ++--

[RFC PATCH 3/6] Attach output profiles and build corresponding LUTs

2014-03-30 Thread Niels Ole Salscheider
This patch allows to attach an ICC profile to each output. It then builds an LUT that can be used to translate colors from the blending space to the output space. Signed-off-by: Niels Ole Salscheider niels_...@salscheider-online.de --- src/cms-colord.c | 4 +++- src/cms-helper.c | 7 ++-

Re: [libinput] AC_PROG_CXX missing in libinput/configure.ac

2014-03-30 Thread Peter Hutterer
On Sat, Mar 29, 2014 at 07:12:59PM +0100, Sylvain BERTRAND wrote: On Sat, Mar 29, 2014 at 06:59:12PM +0100, Jonas Ã…dahl wrote: Yes, for now at least. Sad. But till there is no crazy code generator, it should be easy to write a makefile/shell script to by-pass the autotools and build the

RE: [PATCH V2 1/8] wesston: Add weston randr protocol

2014-03-30 Thread Wang, Quanxian
-Original Message- From: Pekka Paalanen [mailto:ppaala...@gmail.com] Sent: Friday, March 28, 2014 11:00 PM To: Wang, Quanxian Cc: wayland-devel@lists.freedesktop.org Subject: Re: [PATCH V2 1/8] wesston: Add weston randr protocol On Mon, 24 Mar 2014 19:39:13 +0800 Quanxian Wang