Home
last modified time | relevance | path

Searched refs:srgb_to_linear (Results 1 – 6 of 6) sorted by relevance

/external/skqp/src/gpu/effects/
DGrSRGBEffect.cpp92 static inline float srgb_to_linear(float srgb) { in srgb_to_linear() function
107 color = { srgb_to_linear(color.fR), srgb_to_linear(color.fG), srgb_to_linear(color.fB), in constantOutputForConstantInput()
/external/mesa3d/src/util/
Dformat_srgb.py46 def srgb_to_linear(x): function
65 print(' '.join(['%.7ef,' % srgb_to_linear(i / 255.0) for i in range(j, j + 4)]))
72 … print(' '.join(['%3u,' % int(srgb_to_linear(i / 255.0) * 255.0 + 0.5) for i in range(j, j + 16)]))
/external/skqp/tests/
DApplyGammaTest.cpp43 static float srgb_to_linear(float srgb) { in srgb_to_linear() function
76 lower = srgb_to_linear(lower / 255.f); in check_gamma()
77 upper = srgb_to_linear(upper / 255.f); in check_gamma()
DSRGBReadWritePixelsTest.cpp20 float srgb_to_linear(float srgb) { in srgb_to_linear() function
99 return check_conversion<srgb_to_linear>(srgb, linear, error); in check_srgb_to_linear_conversion()
107 return check_double_conversion<linear_to_srgb, srgb_to_linear>(input, output, error); in check_linear_to_srgb_to_linear_conversion()
111 return check_double_conversion<srgb_to_linear, linear_to_srgb>(input, output, error); in check_srgb_to_linear_to_srgb_conversion()
/external/skia/tests/
DApplyGammaTest.cpp43 static float srgb_to_linear(float srgb) { in srgb_to_linear() function
76 lower = srgb_to_linear(lower / 255.f); in check_gamma()
77 upper = srgb_to_linear(upper / 255.f); in check_gamma()
DSRGBReadWritePixelsTest.cpp22 float srgb_to_linear(float srgb) { in srgb_to_linear() function
101 return check_conversion<srgb_to_linear>(srgb, linear, error); in check_srgb_to_linear_conversion()
109 return check_double_conversion<linear_to_srgb, srgb_to_linear>(input, output, error); in check_linear_to_srgb_to_linear_conversion()
113 return check_double_conversion<srgb_to_linear, linear_to_srgb>(input, output, error); in check_srgb_to_linear_to_srgb_conversion()