Add sRGB blending demo program
authorAntti S. Lankila <alankila@bel.fi>
Sun, 29 Jul 2012 18:56:18 +0000 (21:56 +0300)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Mon, 30 Jul 2012 19:40:16 +0000 (15:40 -0400)
commita161a6ba2394aed68148304de83b8f2c185f4c32
treea21ed26fb62a8e918f9316ebff5db66e8e70bd33
parent7460457f80b1482338318f0ddcdf5311659fae7b
Add sRGB blending demo program

Simple sRGB color blender test can be used to determine if the sRGB processing
works as expected. It blends alpha ramps of purple and green together such that
at midpoint of image, 50 % blend of both is realized. At that point, sRGB-aware
processing yields a result close to #bbb rather than #888, which is the linear
light blending result.

The demo also contains the sample computation for sRGB premultiplied alpha.
.gitignore
demos/Makefile.am
demos/srgb-test.c [new file with mode: 0644]