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

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

Issue 2742613002: color: Always use parametric color spaces for raster (Closed)
Patch Set: More comment cleanup Created 3 years, 9 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
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 #include <ostream> 9 #include <ostream>
10 10
(...skipping 24 matching lines...) Expand all
35 BT470BG, 35 BT470BG,
36 SMPTE170M, 36 SMPTE170M,
37 SMPTE240M, 37 SMPTE240M,
38 FILM, 38 FILM,
39 BT2020, 39 BT2020,
40 SMPTEST428_1, 40 SMPTEST428_1,
41 SMPTEST431_2, 41 SMPTEST431_2,
42 SMPTEST432_1, 42 SMPTEST432_1,
43 XYZ_D50, 43 XYZ_D50,
44 ADOBE_RGB, 44 ADOBE_RGB,
45 ICC_PROFILE_REQUIRED,
hubbe 2017/03/13 17:59:09 Why?
ccameron 2017/03/13 20:34:18 In the CL description, I wrote
hubbe 2017/03/13 20:38:56 I don't understand why we don't use CUSTOM with th
ccameron 2017/03/14 10:19:54 Because we need to distinguish between when CUSTOM
45 CUSTOM, 46 CUSTOM,
46 LAST = CUSTOM 47 LAST = CUSTOM
47 }; 48 };
48 49
49 enum class TransferID : uint16_t { 50 enum class TransferID : uint16_t {
50 INVALID, 51 INVALID,
51 BT709, 52 BT709,
52 GAMMA22, 53 GAMMA22,
53 GAMMA24, 54 GAMMA24,
54 GAMMA28, 55 GAMMA28,
(...skipping 12 matching lines...) Expand all
67 ARIB_STD_B67, // AKA hybrid-log gamma, HLG. 68 ARIB_STD_B67, // AKA hybrid-log gamma, HLG.
68 // This is an ad-hoc transfer function that decodes SMPTE 2084 content 69 // This is an ad-hoc transfer function that decodes SMPTE 2084 content
69 // into a [0, 1] range more or less suitable for viewing on a non-hdr 70 // into a [0, 1] range more or less suitable for viewing on a non-hdr
70 // display. 71 // display.
71 SMPTEST2084_NON_HDR, 72 SMPTEST2084_NON_HDR,
72 // The same as IEC61966_2_1 on the interval [0, 1], with the nonlinear 73 // The same as IEC61966_2_1 on the interval [0, 1], with the nonlinear
73 // segment continuing beyond 1 and point symmetry defining values below 0. 74 // segment continuing beyond 1 and point symmetry defining values below 0.
74 IEC61966_2_1_HDR, 75 IEC61966_2_1_HDR,
75 // The same as LINEAR but is defined for all real values. 76 // The same as LINEAR but is defined for all real values.
76 LINEAR_HDR, 77 LINEAR_HDR,
78 ICC_PROFILE_REQUIRED,
hubbe 2017/03/13 17:59:09 Why?
77 CUSTOM, 79 CUSTOM,
78 LAST = CUSTOM, 80 LAST = CUSTOM,
79 }; 81 };
80 82
81 enum class MatrixID : int16_t { 83 enum class MatrixID : int16_t {
82 INVALID, 84 INVALID,
83 RGB, 85 RGB,
84 BT709, 86 BT709,
85 FCC, 87 FCC,
86 BT470BG, 88 BT470BG,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); 207 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace);
206 }; 208 };
207 209
208 // Stream operator so ColorSpace can be used in assertion statements. 210 // Stream operator so ColorSpace can be used in assertion statements.
209 GFX_EXPORT std::ostream& operator<<(std::ostream& out, 211 GFX_EXPORT std::ostream& operator<<(std::ostream& out,
210 const ColorSpace& color_space); 212 const ColorSpace& color_space);
211 213
212 } // namespace gfx 214 } // namespace gfx
213 215
214 #endif // UI_GFX_COLOR_SPACE_H_ 216 #endif // UI_GFX_COLOR_SPACE_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/gfx/color_space.cc » ('j') | ui/gfx/color_transform.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698