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