| 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.h> | 8 #include <d3d11.h> |
| 9 #include <d3d9.h> | 9 #include <d3d9.h> |
| 10 #include <initguid.h> | 10 #include <initguid.h> |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 bool use_keyed_mutex_; | 466 bool use_keyed_mutex_; |
| 467 | 467 |
| 468 // Set to true if the DX11 video format converter input media types need to | 468 // Set to true if the DX11 video format converter input media types need to |
| 469 // be initialized. Defaults to true. | 469 // be initialized. Defaults to true. |
| 470 bool dx11_video_format_converter_media_type_needs_init_; | 470 bool dx11_video_format_converter_media_type_needs_init_; |
| 471 | 471 |
| 472 // Set to true if we are sharing ANGLE's device. | 472 // Set to true if we are sharing ANGLE's device. |
| 473 bool using_angle_device_; | 473 bool using_angle_device_; |
| 474 | 474 |
| 475 // Enables experimental hardware acceleration for VP8/VP9 video decoding. | 475 // Enables experimental hardware acceleration for VP8/VP9 video decoding. |
| 476 const bool enable_accelerated_vpx_decode_; | 476 const unsigned int enable_accelerated_vpx_decode_; |
| 477 | 477 |
| 478 // The media foundation H.264 decoder has problems handling changes like | 478 // The media foundation H.264 decoder has problems handling changes like |
| 479 // resolution change, bitrate change etc. If we reinitialize the decoder | 479 // resolution change, bitrate change etc. If we reinitialize the decoder |
| 480 // when these changes occur then, the decoder works fine. The | 480 // when these changes occur then, the decoder works fine. The |
| 481 // H264ConfigChangeDetector class provides functionality to check if the | 481 // H264ConfigChangeDetector class provides functionality to check if the |
| 482 // stream configuration changed. | 482 // stream configuration changed. |
| 483 std::unique_ptr<H264ConfigChangeDetector> config_change_detector_; | 483 std::unique_ptr<H264ConfigChangeDetector> config_change_detector_; |
| 484 | 484 |
| 485 // Contains the initialization parameters for the video. | 485 // Contains the initialization parameters for the video. |
| 486 Config config_; | 486 Config config_; |
| 487 | 487 |
| 488 // Set to true if we are processing a video configuration change. | 488 // Set to true if we are processing a video configuration change. |
| 489 bool processing_config_changed_; | 489 bool processing_config_changed_; |
| 490 | 490 |
| 491 // WeakPtrFactory for posting tasks back to |this|. | 491 // WeakPtrFactory for posting tasks back to |this|. |
| 492 base::WeakPtrFactory<DXVAVideoDecodeAccelerator> weak_this_factory_; | 492 base::WeakPtrFactory<DXVAVideoDecodeAccelerator> weak_this_factory_; |
| 493 | 493 |
| 494 // Function pointer for the MFCreateDXGIDeviceManager API. | 494 // Function pointer for the MFCreateDXGIDeviceManager API. |
| 495 static CreateDXGIDeviceManager create_dxgi_device_manager_; | 495 static CreateDXGIDeviceManager create_dxgi_device_manager_; |
| 496 | 496 |
| 497 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); | 497 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); |
| 498 }; | 498 }; |
| 499 | 499 |
| 500 } // namespace media | 500 } // namespace media |
| 501 | 501 |
| 502 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 502 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
| OLD | NEW |