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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 73 |
74 // Chrome-specific values start at 1000. | 74 // Chrome-specific values start at 1000. |
75 GAMMA24 = 1000, | 75 GAMMA24 = 1000, |
76 | 76 |
| 77 // 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 // display. |
| 80 SMPTEST2084_NON_HDR, |
| 81 |
77 // TODO(hubbe): Need to store an approximation of the gamma function(s). | 82 // TODO(hubbe): Need to store an approximation of the gamma function(s). |
78 CUSTOM = 1001, | 83 CUSTOM, |
79 LAST = CUSTOM, | 84 LAST = CUSTOM, |
80 }; | 85 }; |
81 | 86 |
82 enum class MatrixID : int16_t { | 87 enum class MatrixID : int16_t { |
83 // The first 0-255 values should match the H264 specification. | 88 // The first 0-255 values should match the H264 specification. |
84 RGB = 0, | 89 RGB = 0, |
85 BT709 = 1, | 90 BT709 = 1, |
86 UNSPECIFIED = 2, | 91 UNSPECIFIED = 2, |
87 RESERVED = 3, | 92 RESERVED = 3, |
88 FCC = 4, | 93 FCC = 4, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 147 |
143 friend class ICCProfile; | 148 friend class ICCProfile; |
144 friend class ColorSpaceToColorSpaceTransform; | 149 friend class ColorSpaceToColorSpaceTransform; |
145 friend struct IPC::ParamTraits<gfx::ColorSpace>; | 150 friend struct IPC::ParamTraits<gfx::ColorSpace>; |
146 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); | 151 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); |
147 }; | 152 }; |
148 | 153 |
149 } // namespace gfx | 154 } // namespace gfx |
150 | 155 |
151 #endif // UI_GFX_COLOR_SPACE_H_ | 156 #endif // UI_GFX_COLOR_SPACE_H_ |
OLD | NEW |