Lines Matching full:srgb
23 /** convert 0..1 srgb value to 0..1 linear */
24 float srgb_to_linear(float srgb) {
25 if (srgb <= 0.04045f) {
26 return srgb / 12.92f;
28 return powf((srgb + 0.055f) / 1.055f, 2.4f);
32 /** convert 0..1 linear value to 0..1 srgb */
90 // Fill texture with a dither of black and 60% sRGB (~ 32.5% linear) gray. Although there is
91 // only one likely failure mode (doing a direct downsample of the sRGB values), this pattern
153 // 1) Draw texture to S32 surface (should generate/use sRGB mips)
157 "first render of sRGB");
164 // skbug.com/5048). On GL, we may not have sRGB decode support. In that case, rendering sRGB
179 // 3) Go back to sRGB
183 "re-render as sRGB");