From 7460457f80b1482338318f0ddcdf5311659fae7b Mon Sep 17 00:00:00 2001 From: "Antti S. Lankila" Date: Sun, 29 Jul 2012 21:46:58 +0300 Subject: Add support for sRGB surfaces sRGB format is defined as a new format type, PIXMAN_TYPE_ARGB_SRGB. One form of this type is provided, PIXMAN_a8r8g8b8_sRGB. Use of an sRGB format triggers wide processing, and the pixel fetch/store functions handle the relevant conversion between color spaces. Pixman itself is thought to compose in the linearized sRGB color space. sRGB conversion is tabularized. For sRGB to linear, we are using only 256 values because the current source format uses 8 bits per component precision. For linear to sRGB, it turns out that only 4096 brightness levels are required to generate all of the 256 sRGB color values, and therefore only 12 bits per component are considered during store. As a special case, a no-op sRGB->linear->sRGB conversion is constructed to be lossless by adjusting the sRGB->linear conversion table where necessary. --- .gitignore | 1 + 1 file changed, 1 insertion(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index b9853b1..3cdf3c1 100644 --- a/.gitignore +++ b/.gitignore @@ -42,6 +42,7 @@ pixman/pixman-combine32.c pixman/pixman-combine32.h pixman/pixman-combine64.c pixman/pixman-combine64.h +pixman/pixman-srgb.c pixman/pixman-version.h test/a1-trap-test test/affine-test -- cgit v1.2.3