| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 // Chrome-specific values start at 1000. | 83 // Chrome-specific values start at 1000. |
| 84 UNKNOWN = 1000, | 84 UNKNOWN = 1000, |
| 85 GAMMA24, | 85 GAMMA24, |
| 86 | 86 |
| 87 // This is an ad-hoc transfer function that decodes SMPTE 2084 content | 87 // This is an ad-hoc transfer function that decodes SMPTE 2084 content |
| 88 // into a 0-1 range more or less suitable for viewing on a non-hdr | 88 // into a 0-1 range more or less suitable for viewing on a non-hdr |
| 89 // display. | 89 // display. |
| 90 SMPTEST2084_NON_HDR, | 90 SMPTEST2084_NON_HDR, |
| 91 | 91 |
| 92 // Like LINEAR, but intended for HDR. (can go outside of 0-1) |
| 93 LINEAR_HDR, |
| 92 // TODO(hubbe): Need to store an approximation of the gamma function(s). | 94 // TODO(hubbe): Need to store an approximation of the gamma function(s). |
| 93 CUSTOM, | 95 CUSTOM, |
| 94 // Like LINEAR, but intended for HDR. (can go outside of 0-1) | |
| 95 LINEAR_HDR, | |
| 96 LAST = CUSTOM, | 96 LAST = CUSTOM, |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 enum class MatrixID : int16_t { | 99 enum class MatrixID : int16_t { |
| 100 // The first 0-255 values should match the H264 specification (see Table E-5 | 100 // The first 0-255 values should match the H264 specification (see Table E-5 |
| 101 // Matrix Coefficients in https://www.itu.int/rec/T-REC-H.264/en). | 101 // Matrix Coefficients in https://www.itu.int/rec/T-REC-H.264/en). |
| 102 RGB = 0, | 102 RGB = 0, |
| 103 BT709 = 1, | 103 BT709 = 1, |
| 104 UNSPECIFIED = 2, | 104 UNSPECIFIED = 2, |
| 105 RESERVED = 3, | 105 RESERVED = 3, |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 friend class ICCProfile; | 209 friend class ICCProfile; |
| 210 friend class ColorSpaceToColorSpaceTransform; | 210 friend class ColorSpaceToColorSpaceTransform; |
| 211 friend class ColorSpaceWin; | 211 friend class ColorSpaceWin; |
| 212 friend struct IPC::ParamTraits<gfx::ColorSpace>; | 212 friend struct IPC::ParamTraits<gfx::ColorSpace>; |
| 213 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); | 213 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); |
| 214 }; | 214 }; |
| 215 | 215 |
| 216 } // namespace gfx | 216 } // namespace gfx |
| 217 | 217 |
| 218 #endif // UI_GFX_COLOR_SPACE_H_ | 218 #endif // UI_GFX_COLOR_SPACE_H_ |
| OLD | NEW |