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

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

Issue 2877093002: color: Add command line flag to force output color space (Closed)
Patch Set: Fix windows again Created 3 years, 7 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/icc_profile.h » ('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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 format.VideoPrimaries = DXVA2_VideoPrimaries_SMPTE240M; 71 format.VideoPrimaries = DXVA2_VideoPrimaries_SMPTE240M;
72 break; 72 break;
73 73
74 case gfx::ColorSpace::PrimaryID::FILM: 74 case gfx::ColorSpace::PrimaryID::FILM:
75 case gfx::ColorSpace::PrimaryID::BT2020: 75 case gfx::ColorSpace::PrimaryID::BT2020:
76 case gfx::ColorSpace::PrimaryID::SMPTEST428_1: 76 case gfx::ColorSpace::PrimaryID::SMPTEST428_1:
77 case gfx::ColorSpace::PrimaryID::SMPTEST431_2: 77 case gfx::ColorSpace::PrimaryID::SMPTEST431_2:
78 case gfx::ColorSpace::PrimaryID::SMPTEST432_1: 78 case gfx::ColorSpace::PrimaryID::SMPTEST432_1:
79 case gfx::ColorSpace::PrimaryID::XYZ_D50: 79 case gfx::ColorSpace::PrimaryID::XYZ_D50:
80 case gfx::ColorSpace::PrimaryID::ADOBE_RGB: 80 case gfx::ColorSpace::PrimaryID::ADOBE_RGB:
81 case gfx::ColorSpace::PrimaryID::APPLE_GENERIC_RGB:
81 case gfx::ColorSpace::PrimaryID::ICC_BASED: 82 case gfx::ColorSpace::PrimaryID::ICC_BASED:
82 case gfx::ColorSpace::PrimaryID::CUSTOM: 83 case gfx::ColorSpace::PrimaryID::CUSTOM:
83 case gfx::ColorSpace::PrimaryID::INVALID: 84 case gfx::ColorSpace::PrimaryID::INVALID:
84 // Not handled 85 // Not handled
85 break; 86 break;
86 } 87 }
87 88
88 switch (color_space.transfer_) { 89 switch (color_space.transfer_) {
89 case gfx::ColorSpace::TransferID::BT709: 90 case gfx::ColorSpace::TransferID::BT709:
90 case gfx::ColorSpace::TransferID::SMPTE170M: 91 case gfx::ColorSpace::TransferID::SMPTE170M:
(...skipping 19 matching lines...) Expand all
110 111
111 case gfx::ColorSpace::TransferID::LOG: 112 case gfx::ColorSpace::TransferID::LOG:
112 case gfx::ColorSpace::TransferID::LOG_SQRT: 113 case gfx::ColorSpace::TransferID::LOG_SQRT:
113 case gfx::ColorSpace::TransferID::IEC61966_2_4: 114 case gfx::ColorSpace::TransferID::IEC61966_2_4:
114 case gfx::ColorSpace::TransferID::BT1361_ECG: 115 case gfx::ColorSpace::TransferID::BT1361_ECG:
115 case gfx::ColorSpace::TransferID::BT2020_10: 116 case gfx::ColorSpace::TransferID::BT2020_10:
116 case gfx::ColorSpace::TransferID::BT2020_12: 117 case gfx::ColorSpace::TransferID::BT2020_12:
117 case gfx::ColorSpace::TransferID::SMPTEST2084: 118 case gfx::ColorSpace::TransferID::SMPTEST2084:
118 case gfx::ColorSpace::TransferID::SMPTEST428_1: 119 case gfx::ColorSpace::TransferID::SMPTEST428_1:
119 case gfx::ColorSpace::TransferID::ARIB_STD_B67: 120 case gfx::ColorSpace::TransferID::ARIB_STD_B67:
121 case gfx::ColorSpace::TransferID::GAMMA18:
120 case gfx::ColorSpace::TransferID::GAMMA24: 122 case gfx::ColorSpace::TransferID::GAMMA24:
121 case gfx::ColorSpace::TransferID::SMPTEST2084_NON_HDR: 123 case gfx::ColorSpace::TransferID::SMPTEST2084_NON_HDR:
122 case gfx::ColorSpace::TransferID::ICC_BASED: 124 case gfx::ColorSpace::TransferID::ICC_BASED:
123 case gfx::ColorSpace::TransferID::CUSTOM: 125 case gfx::ColorSpace::TransferID::CUSTOM:
124 case gfx::ColorSpace::TransferID::INVALID: 126 case gfx::ColorSpace::TransferID::INVALID:
125 // Not handled 127 // Not handled
126 break; 128 break;
127 } 129 }
128 130
129 return format; 131 return format;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 case gfx::ColorSpace::MatrixID::BT2020_CL: 231 case gfx::ColorSpace::MatrixID::BT2020_CL:
230 case gfx::ColorSpace::MatrixID::YDZDX: 232 case gfx::ColorSpace::MatrixID::YDZDX:
231 case gfx::ColorSpace::MatrixID::INVALID: 233 case gfx::ColorSpace::MatrixID::INVALID:
232 // Not handled 234 // Not handled
233 break; 235 break;
234 } 236 }
235 return ret; 237 return ret;
236 } 238 }
237 239
238 } // namespace gfx 240 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/color_space.cc ('k') | ui/gfx/icc_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698