Home | History | Annotate | Download | only in core

Lines Matching refs:luminance

20  * Luma is used to specify a linear luminance value [0.0, 1.0].
21 * Luminance is used to specify a luminance value in an arbitrary color space [0.0, 1.0].
27 /** Converts a color component luminance in the color space to a linear luma. */
28 virtual SkScalar toLuma(SkScalar gamma, SkScalar luminance) const = 0;
29 /** Converts a linear luma to a color component luminance in the color space. */
32 /** Converts a color to a luminance value. */
34 const SkColorSpaceLuminance& luminance = Fetch(gamma);
35 SkScalar r = luminance.toLuma(gamma, SkIntToScalar(SkColorGetR(c)) / 255);
36 SkScalar g = luminance.toLuma(gamma, SkIntToScalar(SkColorGetG(c)) / 255);
37 SkScalar b = luminance.toLuma(gamma, SkIntToScalar(SkColorGetB(c)) / 255);
42 return SkScalarRoundToInt(luminance.fromLuma(gamma, luma) * 255);
90 * @param R The number of luminance bits to use [1, 8] from the red channel.
91 * @param G The number of luminance bits to use [1, 8] from the green channel.
92 * @param B The number of luminance bits to use [1, 8] from the blue channel.