| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |