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

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

Issue 2641143004: Add LINEAR_HDR so that the linear scRGB colorspace will be HDR (Closed)
Patch Set: windows compile fix Created 3 years, 10 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_space.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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 UNKNOWN = 1000, 83 UNKNOWN = 1000,
84 GAMMA24, 84 GAMMA24,
85 85
86 // This is an ad-hoc transfer function that decodes SMPTE 2084 content 86 // This is an ad-hoc transfer function that decodes SMPTE 2084 content
87 // into a 0-1 range more or less suitable for viewing on a non-hdr 87 // into a 0-1 range more or less suitable for viewing on a non-hdr
88 // display. 88 // display.
89 SMPTEST2084_NON_HDR, 89 SMPTEST2084_NON_HDR,
90 90
91 // TODO(hubbe): Need to store an approximation of the gamma function(s). 91 // TODO(hubbe): Need to store an approximation of the gamma function(s).
92 CUSTOM, 92 CUSTOM,
93 // Like LINEAR, but intended for HDR. (can go outside of 0-1)
94 LINEAR_HDR,
93 LAST = CUSTOM, 95 LAST = CUSTOM,
94 }; 96 };
95 97
96 enum class MatrixID : int16_t { 98 enum class MatrixID : int16_t {
97 // The first 0-255 values should match the H264 specification (see Table E-5 99 // The first 0-255 values should match the H264 specification (see Table E-5
98 // Matrix Coefficients in https://www.itu.int/rec/T-REC-H.264/en). 100 // Matrix Coefficients in https://www.itu.int/rec/T-REC-H.264/en).
99 RGB = 0, 101 RGB = 0,
100 BT709 = 1, 102 BT709 = 1,
101 UNSPECIFIED = 2, 103 UNSPECIFIED = 2,
102 RESERVED = 3, 104 RESERVED = 3,
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 friend class ICCProfile; 190 friend class ICCProfile;
189 friend class ColorSpaceToColorSpaceTransform; 191 friend class ColorSpaceToColorSpaceTransform;
190 friend class ColorSpaceWin; 192 friend class ColorSpaceWin;
191 friend struct IPC::ParamTraits<gfx::ColorSpace>; 193 friend struct IPC::ParamTraits<gfx::ColorSpace>;
192 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); 194 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace);
193 }; 195 };
194 196
195 } // namespace gfx 197 } // namespace gfx
196 198
197 #endif // UI_GFX_COLOR_SPACE_H_ 199 #endif // UI_GFX_COLOR_SPACE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/color_space.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698