Searched refs:sRGB_to_d (Results 1 - 1 of 1) sorted by relevance

/external/libpng/contrib/libtests/
H A Dpngstest.c134 * fesetround() call in main(). sRGB_to_d optimizes the 8 to 16-bit conversion.
136 static double sRGB_to_d[256]; variable
144 sRGB_to_d[0] = 0;
146 sRGB_to_d[i] = linear_from_sRGB(i/255.);
147 sRGB_to_d[255] = 1;
185 return u16d(65535 * sRGB_to_d[fixed_srgb]);
191 return u16d((257 * alpha) * sRGB_to_d[fixed_srgb]);
228 pow(sRGB_to_d[value], 1/2.2) - sRGB_from_linear(pow(vd, 2.2)));
1233 out->r = out->g = out->b = sRGB(sRGB_to_d[in->g] * a + back->dg * (1-a));
1261 out->r = sRGB(sRGB_to_d[i
[all...]

Completed in 186 milliseconds