xrandr: Changes to 'master'
Aaron Plattner
aplattner at kemper.freedesktop.org
Fri Aug 24 20:54:46 PDT 2012
xrandr.c | 63 ++++++++++++++++++++++++++++++++++++++++++++++++---------------
1 file changed, 48 insertions(+), 15 deletions(-)
New commits:
commit b501dd3adfac13e15e619898d4447d83b8301dd3
Author: Andy Ritger <aritger at nvidia.com>
Date: Fri Aug 24 15:53:09 2012 -0700
xrandr: compute gamma-correction in [0,2^sigbits)
The gamma-correction lookup table values are 16:16:16 X Colors, where the
MSBs are programmed into the hardware lookup table. Rather than compute
values over the entire range [0,65536) (where values below 2^(16 - sigbits)
will receive the same hardware value), compute values over the range
[0,2^sigbits) and left shift by (16 - sigbits) into the MSBs.
Signed-off-by: Andy Ritger <aritger at nvidia.com>
Reviewed-by: Aaron Plattner <aplattner at nvidia.com>
Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
commit 90afd01788be7bf19e441a59dca0d8057c5267b1
Author: Andy Ritger <aritger at nvidia.com>
Date: Fri Aug 24 15:53:08 2012 -0700
xrandr: fix gamma == 1.0 && sigbits != 8
The gamma-correction lookup table managed through XRR[GS]etCrtcGamma is
2^n in size, where 'n' is the number of significant bits in the X Color.
Each element in the gamma-correction lookup table is a 16:16:16 X Color
(i.e., in the range [0,65536) ). The significant bits of each component
of each element in the lookup table are programmed into the hardware
lookup table. Meaningful values in the gamma-correction lookup table
are thus in the range [0,2^sigbits), where all values are shifted into
the MSBs (i.e., left shifted by (16 - sigificant bits)).
Signed-off-by: Andy Ritger <aritger at nvidia.com>
Reviewed-by: Aaron Plattner <aplattner at nvidia.com>
Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
commit 6bf48ae8d8db58ab74182383e54332f120f024c2
Author: Andy Ritger <aritger at nvidia.com>
Date: Fri Aug 24 15:53:07 2012 -0700
xrandr: use 1/gamma to compute gamma-correction
To compute a gamma *correction* lookup table, use the specified gamma
value as the divisor in (1.0/gamma). This matches the semantics of
xgamma(1) and the "gamma-value" and "{red,green,blue}-gamma" xorg.conf(5)
options.
For more details, see:
http://www.poynton.com/PDFs/TIDV/Gamma.pdf (Gamma in computer graphics, page 17)
http://cgit.freedesktop.org/xorg/xserver/tree/hw/xfree86/common/xf86cmap.c:ComputeGamma()
Signed-off-by: Andy Ritger <aritger at nvidia.com>
Reviewed-by: Aaron Plattner <aplattner at nvidia.com>
Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
More information about the xorg-commit
mailing list