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

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

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 | « 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 case gfx::ColorSpace::TransferID::SMPTE240M: 96 case gfx::ColorSpace::TransferID::SMPTE240M:
97 format.VideoTransferFunction = DXVA2_VideoTransFunc_240M; 97 format.VideoTransferFunction = DXVA2_VideoTransFunc_240M;
98 break; 98 break;
99 case gfx::ColorSpace::TransferID::GAMMA22: 99 case gfx::ColorSpace::TransferID::GAMMA22:
100 format.VideoTransferFunction = DXVA2_VideoTransFunc_22; 100 format.VideoTransferFunction = DXVA2_VideoTransFunc_22;
101 break; 101 break;
102 case gfx::ColorSpace::TransferID::GAMMA28: 102 case gfx::ColorSpace::TransferID::GAMMA28:
103 format.VideoTransferFunction = DXVA2_VideoTransFunc_28; 103 format.VideoTransferFunction = DXVA2_VideoTransFunc_28;
104 break; 104 break;
105 case gfx::ColorSpace::TransferID::LINEAR: 105 case gfx::ColorSpace::TransferID::LINEAR:
106 case gfx::ColorSpace::TransferID::LINEAR_HDR:
106 format.VideoTransferFunction = DXVA2_VideoTransFunc_10; 107 format.VideoTransferFunction = DXVA2_VideoTransFunc_10;
107 break; 108 break;
108 case gfx::ColorSpace::TransferID::IEC61966_2_1: 109 case gfx::ColorSpace::TransferID::IEC61966_2_1:
109 format.VideoTransferFunction = DXVA2_VideoTransFunc_sRGB; 110 format.VideoTransferFunction = DXVA2_VideoTransFunc_sRGB;
110 break; 111 break;
111 112
112 case gfx::ColorSpace::TransferID::RESERVED0: 113 case gfx::ColorSpace::TransferID::RESERVED0:
113 case gfx::ColorSpace::TransferID::UNSPECIFIED: 114 case gfx::ColorSpace::TransferID::UNSPECIFIED:
114 case gfx::ColorSpace::TransferID::RESERVED: 115 case gfx::ColorSpace::TransferID::RESERVED:
115 case gfx::ColorSpace::TransferID::LOG: 116 case gfx::ColorSpace::TransferID::LOG:
(...skipping 10 matching lines...) Expand all
126 case gfx::ColorSpace::TransferID::SMPTEST2084_NON_HDR: 127 case gfx::ColorSpace::TransferID::SMPTEST2084_NON_HDR:
127 case gfx::ColorSpace::TransferID::CUSTOM: 128 case gfx::ColorSpace::TransferID::CUSTOM:
128 // Not handled 129 // Not handled
129 break; 130 break;
130 } 131 }
131 132
132 return format; 133 return format;
133 } 134 }
134 135
135 } // namespace gfx 136 } // 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