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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 // The media foundation H.264 decoder has problems handling changes like | 482 // The media foundation H.264 decoder has problems handling changes like |
483 // resolution change, bitrate change etc. If we reinitialize the decoder | 483 // resolution change, bitrate change etc. If we reinitialize the decoder |
484 // when these changes occur then, the decoder works fine. The | 484 // when these changes occur then, the decoder works fine. The |
485 // H264ConfigChangeDetector class provides functionality to check if the | 485 // H264ConfigChangeDetector class provides functionality to check if the |
486 // stream configuration changed. | 486 // stream configuration changed. |
487 std::unique_ptr<H264ConfigChangeDetector> config_change_detector_; | 487 std::unique_ptr<H264ConfigChangeDetector> config_change_detector_; |
488 | 488 |
489 // Contains the initialization parameters for the video. | 489 // Contains the initialization parameters for the video. |
490 Config config_; | 490 Config config_; |
491 | 491 |
| 492 // Set to true if we are processing a video configuration change. |
| 493 bool processing_config_changed_; |
| 494 |
492 // WeakPtrFactory for posting tasks back to |this|. | 495 // WeakPtrFactory for posting tasks back to |this|. |
493 base::WeakPtrFactory<DXVAVideoDecodeAccelerator> weak_this_factory_; | 496 base::WeakPtrFactory<DXVAVideoDecodeAccelerator> weak_this_factory_; |
494 | 497 |
495 // Function pointer for the MFCreateDXGIDeviceManager API. | 498 // Function pointer for the MFCreateDXGIDeviceManager API. |
496 static CreateDXGIDeviceManager create_dxgi_device_manager_; | 499 static CreateDXGIDeviceManager create_dxgi_device_manager_; |
497 | 500 |
498 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); | 501 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); |
499 }; | 502 }; |
500 | 503 |
501 } // namespace media | 504 } // namespace media |
502 | 505 |
503 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ | 506 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ |
OLD | NEW |