mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libpng] Added copyright and licensing info to contrib/sRGBtables/*.c
This commit is contained in:
parent
0a521d3785
commit
816e687de8
@ -1,5 +1,12 @@
|
|||||||
/*-
|
/* makesRGB.c -- build sRGB-to-linear and linear-to-sRGB conversion tables
|
||||||
* makesRGB.c
|
*
|
||||||
|
* Last changed in libpng 1.5.7 [(PENDING RELEASE)]
|
||||||
|
* Copyright (c) 2011 Glenn Randers-Pehrson
|
||||||
|
* Written by John Cunningham Bowler
|
||||||
|
*
|
||||||
|
* This code is released under the libpng license.
|
||||||
|
* For conditions of distribution and use, see the disclaimer
|
||||||
|
* and license in png.h
|
||||||
*
|
*
|
||||||
* Make a table to convert 8-bit sRGB encoding values into the closest 16-bit
|
* Make a table to convert 8-bit sRGB encoding values into the closest 16-bit
|
||||||
* linear value.
|
* linear value.
|
||||||
@ -21,9 +28,10 @@
|
|||||||
/*
|
/*
|
||||||
* Utility sRGB calculation functions.
|
* Utility sRGB calculation functions.
|
||||||
*
|
*
|
||||||
* Both routines take and return a floating point value in the range 0 to 1.0,
|
* Both routines take and return a floating point value in the range
|
||||||
* doing a calculation according to the sRGB specification. (In fact the source
|
* 0 to 1.0, doing a calculation according to the sRGB specification.
|
||||||
* of the numbers is the wikipedia article.)
|
* (In fact the source of the numbers is the wikipedia article at
|
||||||
|
* http://en.wikipedia.org/wiki/SRGB .)
|
||||||
*/
|
*/
|
||||||
double
|
double
|
||||||
sRGB_from_linear(double l)
|
sRGB_from_linear(double l)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user