[libpng15] Updated contrib/sRGBtables code

This commit is contained in:
John Bowler
2011-11-16 13:44:42 -06:00
committed by Glenn Randers-Pehrson
parent ae41dc55a2
commit 76b0459fdd
3 changed files with 187 additions and 33 deletions

View File

@@ -4,9 +4,10 @@
* Utility file; not actually a header, this contains definitions of sRGB
* calculation functions for inclusion in those test programs that need them.
*
* All routines take and return a floating point value in the range 0 to 1.0,
* doing a calculation according to the sRGB specification. (In fact the source
* of the numbers is the wikipedia article.)
* All routines take and return a floating point value in the range
* 0 to 1.0, doing a calculation according to the sRGB specification
* (in fact the source of the numbers is the wikipedia article at
* http://en.wikipedia.org/wiki/SRGB).
*/
static double
sRGB_from_linear(double l)