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

Side by Side Diff: ui/gfx/color_space_win.cc

Issue 2728173004: HDR: Do nonlinear blending in the compositor (Closed)
Patch Set: Fix windows build 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
« no previous file with comments | « ui/gfx/color_space.cc ('k') | 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 #include "ui/gfx/color_space_win.h" 5 #include "ui/gfx/color_space_win.h"
6 6
7 namespace gfx { 7 namespace gfx {
8 8
9 DXVA2_ExtendedFormat ColorSpaceWin::GetExtendedFormat( 9 DXVA2_ExtendedFormat ColorSpaceWin::GetExtendedFormat(
10 const ColorSpace& color_space) { 10 const ColorSpace& color_space) {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 format.VideoTransferFunction = DXVA2_VideoTransFunc_22; 96 format.VideoTransferFunction = DXVA2_VideoTransFunc_22;
97 break; 97 break;
98 case gfx::ColorSpace::TransferID::GAMMA28: 98 case gfx::ColorSpace::TransferID::GAMMA28:
99 format.VideoTransferFunction = DXVA2_VideoTransFunc_28; 99 format.VideoTransferFunction = DXVA2_VideoTransFunc_28;
100 break; 100 break;
101 case gfx::ColorSpace::TransferID::LINEAR: 101 case gfx::ColorSpace::TransferID::LINEAR:
102 case gfx::ColorSpace::TransferID::LINEAR_HDR: 102 case gfx::ColorSpace::TransferID::LINEAR_HDR:
103 format.VideoTransferFunction = DXVA2_VideoTransFunc_10; 103 format.VideoTransferFunction = DXVA2_VideoTransFunc_10;
104 break; 104 break;
105 case gfx::ColorSpace::TransferID::IEC61966_2_1: 105 case gfx::ColorSpace::TransferID::IEC61966_2_1:
106 case gfx::ColorSpace::TransferID::IEC61966_2_1_HDR:
106 format.VideoTransferFunction = DXVA2_VideoTransFunc_sRGB; 107 format.VideoTransferFunction = DXVA2_VideoTransFunc_sRGB;
107 break; 108 break;
108 109
109 case gfx::ColorSpace::TransferID::LOG: 110 case gfx::ColorSpace::TransferID::LOG:
110 case gfx::ColorSpace::TransferID::LOG_SQRT: 111 case gfx::ColorSpace::TransferID::LOG_SQRT:
111 case gfx::ColorSpace::TransferID::IEC61966_2_4: 112 case gfx::ColorSpace::TransferID::IEC61966_2_4:
112 case gfx::ColorSpace::TransferID::BT1361_ECG: 113 case gfx::ColorSpace::TransferID::BT1361_ECG:
113 case gfx::ColorSpace::TransferID::BT2020_10: 114 case gfx::ColorSpace::TransferID::BT2020_10:
114 case gfx::ColorSpace::TransferID::BT2020_12: 115 case gfx::ColorSpace::TransferID::BT2020_12:
115 case gfx::ColorSpace::TransferID::SMPTEST2084: 116 case gfx::ColorSpace::TransferID::SMPTEST2084:
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 case gfx::ColorSpace::TransferID::SMPTE170M: 212 case gfx::ColorSpace::TransferID::SMPTE170M:
212 ret.YCbCr_Matrix = 1; 213 ret.YCbCr_Matrix = 1;
213 214
214 default: 215 default:
215 break; 216 break;
216 } 217 }
217 return ret; 218 return ret;
218 } 219 }
219 220
220 } // namespace gfx 221 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/color_space.cc ('k') | ui/gfx/color_transform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698