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 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 LINEAR = 8, | 63 LINEAR = 8, |
64 LOG = 9, | 64 LOG = 9, |
65 LOG_SQRT = 10, | 65 LOG_SQRT = 10, |
66 IEC61966_2_4 = 11, | 66 IEC61966_2_4 = 11, |
67 BT1361_ECG = 12, | 67 BT1361_ECG = 12, |
68 IEC61966_2_1 = 13, | 68 IEC61966_2_1 = 13, |
69 BT2020_10 = 14, | 69 BT2020_10 = 14, |
70 BT2020_12 = 15, | 70 BT2020_12 = 15, |
71 SMPTEST2084 = 16, | 71 SMPTEST2084 = 16, |
72 SMPTEST428_1 = 17, | 72 SMPTEST428_1 = 17, |
| 73 ARIB_STD_B67 = 18, // AKA hybrid-log gamma, HLG. |
73 | 74 |
74 // Chrome-specific values start at 1000. | 75 // Chrome-specific values start at 1000. |
75 GAMMA24 = 1000, | 76 GAMMA24 = 1000, |
76 | 77 |
77 // This is an ad-hoc transfer function that decodes SMPTE 2084 content | 78 // This is an ad-hoc transfer function that decodes SMPTE 2084 content |
78 // into a 0-1 range more or less suitable for viewing on a non-hdr | 79 // into a 0-1 range more or less suitable for viewing on a non-hdr |
79 // display. | 80 // display. |
80 SMPTEST2084_NON_HDR, | 81 SMPTEST2084_NON_HDR, |
81 | 82 |
82 // TODO(hubbe): Need to store an approximation of the gamma function(s). | 83 // TODO(hubbe): Need to store an approximation of the gamma function(s). |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 148 |
148 friend class ICCProfile; | 149 friend class ICCProfile; |
149 friend class ColorSpaceToColorSpaceTransform; | 150 friend class ColorSpaceToColorSpaceTransform; |
150 friend struct IPC::ParamTraits<gfx::ColorSpace>; | 151 friend struct IPC::ParamTraits<gfx::ColorSpace>; |
151 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); | 152 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); |
152 }; | 153 }; |
153 | 154 |
154 } // namespace gfx | 155 } // namespace gfx |
155 | 156 |
156 #endif // UI_GFX_COLOR_SPACE_H_ | 157 #endif // UI_GFX_COLOR_SPACE_H_ |
OLD | NEW |