Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: ui/gfx/color_space.h

Issue 2300813002: First cut at making HDR content viewable on SDR display with color management. (Closed)
Patch Set: comment update Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/gfx/color_transform.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/color_transform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698