| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 case gfx::ColorSpace::PrimaryID::RESERVED0: | 76 case gfx::ColorSpace::PrimaryID::RESERVED0: |
| 77 case gfx::ColorSpace::PrimaryID::UNSPECIFIED: | 77 case gfx::ColorSpace::PrimaryID::UNSPECIFIED: |
| 78 case gfx::ColorSpace::PrimaryID::RESERVED: | 78 case gfx::ColorSpace::PrimaryID::RESERVED: |
| 79 case gfx::ColorSpace::PrimaryID::FILM: | 79 case gfx::ColorSpace::PrimaryID::FILM: |
| 80 case gfx::ColorSpace::PrimaryID::BT2020: | 80 case gfx::ColorSpace::PrimaryID::BT2020: |
| 81 case gfx::ColorSpace::PrimaryID::SMPTEST428_1: | 81 case gfx::ColorSpace::PrimaryID::SMPTEST428_1: |
| 82 case gfx::ColorSpace::PrimaryID::SMPTEST431_2: | 82 case gfx::ColorSpace::PrimaryID::SMPTEST431_2: |
| 83 case gfx::ColorSpace::PrimaryID::SMPTEST432_1: | 83 case gfx::ColorSpace::PrimaryID::SMPTEST432_1: |
| 84 case gfx::ColorSpace::PrimaryID::UNKNOWN: | 84 case gfx::ColorSpace::PrimaryID::UNKNOWN: |
| 85 case gfx::ColorSpace::PrimaryID::XYZ_D50: | 85 case gfx::ColorSpace::PrimaryID::XYZ_D50: |
| 86 case gfx::ColorSpace::PrimaryID::ADOBE_RGB: |
| 86 case gfx::ColorSpace::PrimaryID::CUSTOM: | 87 case gfx::ColorSpace::PrimaryID::CUSTOM: |
| 87 // Not handled | 88 // Not handled |
| 88 break; | 89 break; |
| 89 } | 90 } |
| 90 | 91 |
| 91 switch (color_space.transfer_) { | 92 switch (color_space.transfer_) { |
| 92 case gfx::ColorSpace::TransferID::BT709: | 93 case gfx::ColorSpace::TransferID::BT709: |
| 93 case gfx::ColorSpace::TransferID::SMPTE170M: | 94 case gfx::ColorSpace::TransferID::SMPTE170M: |
| 94 format.VideoTransferFunction = DXVA2_VideoTransFunc_709; | 95 format.VideoTransferFunction = DXVA2_VideoTransFunc_709; |
| 95 break; | 96 break; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 case gfx::ColorSpace::TransferID::SMPTEST2084_NON_HDR: | 128 case gfx::ColorSpace::TransferID::SMPTEST2084_NON_HDR: |
| 128 case gfx::ColorSpace::TransferID::CUSTOM: | 129 case gfx::ColorSpace::TransferID::CUSTOM: |
| 129 // Not handled | 130 // Not handled |
| 130 break; | 131 break; |
| 131 } | 132 } |
| 132 | 133 |
| 133 return format; | 134 return format; |
| 134 } | 135 } |
| 135 | 136 |
| 136 } // namespace gfx | 137 } // namespace gfx |
| OLD | NEW |