| 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 #ifndef MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 5 #ifndef MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
| 6 #define MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 6 #define MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
| 7 | 7 |
| 8 #include <d3d11_1.h> | 8 #include <d3d11_1.h> |
| 9 #include <d3d9.h> | 9 #include <d3d9.h> |
| 10 #include <initguid.h> | 10 #include <initguid.h> |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 // True when using Microsoft's VP9 HMFT for decoding. | 531 // True when using Microsoft's VP9 HMFT for decoding. |
| 532 bool using_ms_vp9_mft_ = false; | 532 bool using_ms_vp9_mft_ = false; |
| 533 | 533 |
| 534 // True if we should use DXGI keyed mutexes to synchronize between the two | 534 // True if we should use DXGI keyed mutexes to synchronize between the two |
| 535 // contexts. | 535 // contexts. |
| 536 bool use_keyed_mutex_; | 536 bool use_keyed_mutex_; |
| 537 | 537 |
| 538 // Color spaced used when initializing the dx11 format converter. | 538 // Color spaced used when initializing the dx11 format converter. |
| 539 gfx::ColorSpace dx11_converter_color_space_; | 539 gfx::ColorSpace dx11_converter_color_space_; |
| 540 | 540 |
| 541 // Outputs from the dx11 format converter will be in this color space. |
| 542 gfx::ColorSpace dx11_converter_output_color_space_; |
| 543 |
| 541 // Set to true if we are sharing ANGLE's device. | 544 // Set to true if we are sharing ANGLE's device. |
| 542 bool using_angle_device_; | 545 bool using_angle_device_; |
| 543 | 546 |
| 544 // Enables experimental hardware acceleration for VP8/VP9 video decoding. | 547 // Enables experimental hardware acceleration for VP8/VP9 video decoding. |
| 545 const gpu::GpuPreferences::VpxDecodeVendors enable_accelerated_vpx_decode_; | 548 const gpu::GpuPreferences::VpxDecodeVendors enable_accelerated_vpx_decode_; |
| 546 | 549 |
| 547 // The media foundation H.264 decoder has problems handling changes like | 550 // The media foundation H.264 decoder has problems handling changes like |
| 548 // resolution change, bitrate change etc. If we reinitialize the decoder | 551 // resolution change, bitrate change etc. If we reinitialize the decoder |
| 549 // when these changes occur then, the decoder works fine. The | 552 // when these changes occur then, the decoder works fine. The |
| 550 // H264ConfigChangeDetector class provides functionality to check if the | 553 // H264ConfigChangeDetector class provides functionality to check if the |
| (...skipping 11 matching lines...) Expand all Loading... |
| 562 | 565 |
| 563 // Function pointer for the MFCreateDXGIDeviceManager API. | 566 // Function pointer for the MFCreateDXGIDeviceManager API. |
| 564 static CreateDXGIDeviceManager create_dxgi_device_manager_; | 567 static CreateDXGIDeviceManager create_dxgi_device_manager_; |
| 565 | 568 |
| 566 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); | 569 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); |
| 567 }; | 570 }; |
| 568 | 571 |
| 569 } // namespace media | 572 } // namespace media |
| 570 | 573 |
| 571 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 574 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
| OLD | NEW |