OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_GFX_COLOR_SPACE_H_ | 5 #ifndef UI_GFX_COLOR_SPACE_H_ |
6 #define UI_GFX_COLOR_SPACE_H_ | 6 #define UI_GFX_COLOR_SPACE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <ostream> | 9 #include <ostream> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // For color spaces defined by an ICC profile which cannot be represented | 47 // For color spaces defined by an ICC profile which cannot be represented |
48 // parametrically. Any ColorTransform using this color space will use the | 48 // parametrically. Any ColorTransform using this color space will use the |
49 // ICC profile directly to compute a transform LUT. | 49 // ICC profile directly to compute a transform LUT. |
50 ICC_BASED, | 50 ICC_BASED, |
51 LAST = ICC_BASED, | 51 LAST = ICC_BASED, |
52 }; | 52 }; |
53 | 53 |
54 enum class TransferID : uint8_t { | 54 enum class TransferID : uint8_t { |
55 INVALID, | 55 INVALID, |
56 BT709, | 56 BT709, |
| 57 GAMMA18, |
57 GAMMA22, | 58 GAMMA22, |
58 GAMMA24, | 59 GAMMA24, |
59 GAMMA28, | 60 GAMMA28, |
60 SMPTE170M, | 61 SMPTE170M, |
61 SMPTE240M, | 62 SMPTE240M, |
62 LINEAR, | 63 LINEAR, |
63 LOG, | 64 LOG, |
64 LOG_SQRT, | 65 LOG_SQRT, |
65 IEC61966_2_4, | 66 IEC61966_2_4, |
66 BT1361_ECG, | 67 BT1361_ECG, |
67 IEC61966_2_1, | 68 IEC61966_2_1, |
68 BT2020_10, | 69 BT2020_10, |
69 BT2020_12, | 70 BT2020_12, |
70 SMPTEST2084, | 71 SMPTEST2084, |
71 SMPTEST428_1, | 72 SMPTEST428_1, |
| 73 // Corresponds the the primaries of the "Generic RGB" profile used in the |
| 74 // Apple ColorSync application, used by layout tests on Mac. |
| 75 APPLE_GENERIC_RGB, |
72 ARIB_STD_B67, // AKA hybrid-log gamma, HLG. | 76 ARIB_STD_B67, // AKA hybrid-log gamma, HLG. |
73 // This is an ad-hoc transfer function that decodes SMPTE 2084 content | 77 // This is an ad-hoc transfer function that decodes SMPTE 2084 content |
74 // into a [0, 1] range more or less suitable for viewing on a non-hdr | 78 // into a [0, 1] range more or less suitable for viewing on a non-hdr |
75 // display. | 79 // display. |
76 SMPTEST2084_NON_HDR, | 80 SMPTEST2084_NON_HDR, |
77 // The same as IEC61966_2_1 on the interval [0, 1], with the nonlinear | 81 // The same as IEC61966_2_1 on the interval [0, 1], with the nonlinear |
78 // segment continuing beyond 1 and point symmetry defining values below 0. | 82 // segment continuing beyond 1 and point symmetry defining values below 0. |
79 IEC61966_2_1_HDR, | 83 IEC61966_2_1_HDR, |
80 // The same as LINEAR but is defined for all real values. | 84 // The same as LINEAR but is defined for all real values. |
81 LINEAR_HDR, | 85 LINEAR_HDR, |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); | 218 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); |
215 }; | 219 }; |
216 | 220 |
217 // Stream operator so ColorSpace can be used in assertion statements. | 221 // Stream operator so ColorSpace can be used in assertion statements. |
218 GFX_EXPORT std::ostream& operator<<(std::ostream& out, | 222 GFX_EXPORT std::ostream& operator<<(std::ostream& out, |
219 const ColorSpace& color_space); | 223 const ColorSpace& color_space); |
220 | 224 |
221 } // namespace gfx | 225 } // namespace gfx |
222 | 226 |
223 #endif // UI_GFX_COLOR_SPACE_H_ | 227 #endif // UI_GFX_COLOR_SPACE_H_ |
OLD | NEW |