Home | History | Annotate | Download | only in tools

Lines Matching refs:sRGB

1 /* makesRGB.c -- build sRGB-to-linear and linear-to-sRGB conversion tables
10 * Make a table to convert 8-bit sRGB encoding values into the closest 16-bit
14 * approximation to the 8-bit sRGB encoded value. Calculate the error in these
27 #include "sRGB.h"
49 sRGB(unsigned int i)
127 double lo = 255 * sRGB(i << 15);
128 double hi = 255 * sRGB((i+1) << 15);
155 unsigned int iexact = nearbyint(255*sRGB(i));
227 unsigned int iexact = nearbyint(255*sRGB(i));
308 unsigned int iexact = nearbyint(255*sRGB(i));
313 double err = 255*sRGB(i) - icalc;
340 unsigned int iexact = nearbyint(255*sRGB(i));
345 double err = 255*sRGB(i) - icalc;
361 /* Check the round trip for each 8-bit sRGB value. */
365 unsigned int iexact = nearbyint(255*sRGB(i));