Home
last modified time | relevance | path

Searched refs:linear_to_srgb (Results 1 – 12 of 12) sorted by relevance

/external/skia/src/gpu/effects/
DGrSRGBEffect.cpp99 static inline float linear_to_srgb(float linear) { in linear_to_srgb() function
107 color = GrColor4f(linear_to_srgb(color.fRGBA[0]), linear_to_srgb(color.fRGBA[1]), in constantOutputForConstantInput()
108 linear_to_srgb(color.fRGBA[2]), color.fRGBA[3]); in constantOutputForConstantInput()
/external/skqp/src/gpu/effects/
DGrSRGBEffect.cpp99 static inline float linear_to_srgb(float linear) { in linear_to_srgb() function
107 color = GrColor4f(linear_to_srgb(color.fRGBA[0]), linear_to_srgb(color.fRGBA[1]), in constantOutputForConstantInput()
108 linear_to_srgb(color.fRGBA[2]), color.fRGBA[3]); in constantOutputForConstantInput()
/external/skia/tests/
DSRGBTest.cpp16 static uint8_t linear_to_srgb(float l) { in linear_to_srgb() function
23 int actual = linear_to_srgb(sk_linear_from_srgb[i]); in DEF_TEST()
32 uint8_t srgb = linear_to_srgb(f); in DEF_TEST()
DApplyGammaTest.cpp35 static float linear_to_srgb(float linear) { in linear_to_srgb() function
74 lower = linear_to_srgb(lower / 255.f); in check_gamma()
75 upper = linear_to_srgb(upper / 255.f); in check_gamma()
DSRGBReadWritePixelsTest.cpp30 float linear_to_srgb(float linear) { in linear_to_srgb() function
104 return check_conversion<linear_to_srgb>(linear, srgb, error); in check_linear_to_srgb_conversion()
108 return check_double_conversion<linear_to_srgb, srgb_to_linear>(input, output, error); in check_linear_to_srgb_to_linear_conversion()
112 return check_double_conversion<srgb_to_linear, linear_to_srgb>(input, output, error); in check_srgb_to_linear_to_srgb_conversion()
DSRGBMipMapTest.cpp33 float linear_to_srgb(float linear) { in linear_to_srgb() function
116 linear_to_srgb(srgb_to_linear(srgb60 / 255.0f) / 2.0f) * 255.0f); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/external/skqp/tests/
DSRGBTest.cpp16 static uint8_t linear_to_srgb(float l) { in linear_to_srgb() function
23 int actual = linear_to_srgb(sk_linear_from_srgb[i]); in DEF_TEST()
32 uint8_t srgb = linear_to_srgb(f); in DEF_TEST()
DSRGBReadWritePixelsTest.cpp30 float linear_to_srgb(float linear) { in linear_to_srgb() function
104 return check_conversion<linear_to_srgb>(linear, srgb, error); in check_linear_to_srgb_conversion()
108 return check_double_conversion<linear_to_srgb, srgb_to_linear>(input, output, error); in check_linear_to_srgb_to_linear_conversion()
112 return check_double_conversion<srgb_to_linear, linear_to_srgb>(input, output, error); in check_srgb_to_linear_to_srgb_conversion()
DApplyGammaTest.cpp20 static float linear_to_srgb(float linear) { in linear_to_srgb() function
59 lower = linear_to_srgb(lower / 255.f); in check_gamma()
60 upper = linear_to_srgb(upper / 255.f); in check_gamma()
DSRGBMipMapTest.cpp33 float linear_to_srgb(float linear) { in linear_to_srgb() function
116 linear_to_srgb(srgb_to_linear(srgb60 / 255.0f) / 2.0f) * 255.0f); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/external/mesa3d/src/util/
Dformat_srgb.py53 def linear_to_srgb(x): function
84 print '%3u,' % (int(linear_to_srgb(i / 255.0) * 255.0 + 0.5),),
117 val = linear_to_srgb(ffloat) * 255.0 + 0.5
/external/syslinux/com32/lib/sys/vesa/
Dalphatbl.pl17 sub linear_to_srgb($) subroutine
51 printf "\t%3d,\n", linear_to_srgb(($i+0.5)/4079.937744);