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

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

Issue 2342963003: Support ARIB STD B67, aka hybrid-log gamma (HLG) transfer function. (Closed)
Patch Set: nit 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 LINEAR = 8, 63 LINEAR = 8,
64 LOG = 9, 64 LOG = 9,
65 LOG_SQRT = 10, 65 LOG_SQRT = 10,
66 IEC61966_2_4 = 11, 66 IEC61966_2_4 = 11,
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 ARIB_STD_B67 = 18, // AKA hybrid-log gamma, HLG.
73 74
74 // Chrome-specific values start at 1000. 75 // Chrome-specific values start at 1000.
75 GAMMA24 = 1000, 76 GAMMA24 = 1000,
76 77
77 // This is an ad-hoc transfer function that decodes SMPTE 2084 content 78 // 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 // into a 0-1 range more or less suitable for viewing on a non-hdr
79 // display. 80 // display.
80 SMPTEST2084_NON_HDR, 81 SMPTEST2084_NON_HDR,
81 82
82 // TODO(hubbe): Need to store an approximation of the gamma function(s). 83 // TODO(hubbe): Need to store an approximation of the gamma function(s).
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 148
148 friend class ICCProfile; 149 friend class ICCProfile;
149 friend class ColorSpaceToColorSpaceTransform; 150 friend class ColorSpaceToColorSpaceTransform;
150 friend struct IPC::ParamTraits<gfx::ColorSpace>; 151 friend struct IPC::ParamTraits<gfx::ColorSpace>;
151 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace); 152 FRIEND_TEST_ALL_PREFIXES(SimpleColorSpace, GetColorSpace);
152 }; 153 };
153 154
154 } // namespace gfx 155 } // namespace gfx
155 156
156 #endif // UI_GFX_COLOR_SPACE_H_ 157 #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