Home | History | Annotate | Download | only in tests

Lines Matching refs:srgb

21 /** convert 0..1 srgb value to 0..1 linear */
22 float srgb_to_linear(float srgb) {
23 if (srgb <= 0.04045f) {
24 return srgb / 12.92f;
26 return powf((srgb + 0.055f) / 1.055f, 2.4f);
30 /** convert 0..1 linear value to 0..1 srgb */
88 // Fill texture with a dither of black and 60% sRGB (~ 32.5% linear) gray. Although there is
89 // only one likely failure mode (doing a direct downsample of the sRGB values), this pattern
151 // 1) Draw texture to S32 surface (should generate/use sRGB mips)
155 "first render of sRGB");
162 // skbug.com/5048). On GL, we may not have sRGB decode support. In that case, rendering sRGB
177 // 3) Go back to sRGB
181 "re-render as sRGB");