OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkColorSpace_DEFINED | 8 #ifndef SkColorSpace_DEFINED |
9 #define SkColorSpace_DEFINED | 9 #define SkColorSpace_DEFINED |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 * Gamma curve is a close match to the 2.2f exponential curve. This is | 38 * Gamma curve is a close match to the 2.2f exponential curve. This is |
39 * used by Adobe RGB profiles and is common on monitors as well. | 39 * used by Adobe RGB profiles and is common on monitors as well. |
40 */ | 40 */ |
41 k2Dot2Curve_GammaNamed, | 41 k2Dot2Curve_GammaNamed, |
42 | 42 |
43 /** | 43 /** |
44 * Gamma is represented by a look-up table, a parametric curve, or an u
ncommon | 44 * Gamma is represented by a look-up table, a parametric curve, or an u
ncommon |
45 * exponential curve. Or the R, G, and B gammas do not match. | 45 * exponential curve. Or the R, G, and B gammas do not match. |
46 */ | 46 */ |
47 kNonStandard_GammaNamed, | 47 kNonStandard_GammaNamed, |
48 | |
49 /** | |
50 * To be used by UMA code only. ICC profiles lacks valid gamma represe
ntation. | |
51 */ | |
52 kInvalid_GammaNamed, | |
53 }; | 48 }; |
54 | 49 |
55 /** | 50 /** |
56 * Create an SkColorSpace from the src gamma and a transform from src gamut
to D50 XYZ. | 51 * Create an SkColorSpace from the src gamma and a transform from src gamut
to D50 XYZ. |
57 */ | 52 */ |
58 static sk_sp<SkColorSpace> NewRGB(GammaNamed gammaNamed, const SkMatrix44& t
oXYZD50); | 53 static sk_sp<SkColorSpace> NewRGB(GammaNamed gammaNamed, const SkMatrix44& t
oXYZD50); |
59 | 54 |
60 /** | 55 /** |
61 * Create a common, named SkColorSpace. | 56 * Create a common, named SkColorSpace. |
62 */ | 57 */ |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 112 |
118 protected: | 113 protected: |
119 SkColorSpace(GammaNamed gammaNamed, const SkMatrix44& toXYZD50, Named named)
; | 114 SkColorSpace(GammaNamed gammaNamed, const SkMatrix44& toXYZD50, Named named)
; |
120 | 115 |
121 const GammaNamed fGammaNamed; | 116 const GammaNamed fGammaNamed; |
122 const SkMatrix44 fToXYZD50; | 117 const SkMatrix44 fToXYZD50; |
123 const Named fNamed; | 118 const Named fNamed; |
124 }; | 119 }; |
125 | 120 |
126 #endif | 121 #endif |
OLD | NEW |