| 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 CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <d3d11.h> | 8 #include <d3d11.h> |
| 9 #include <d3d9.h> | 9 #include <d3d9.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 | 434 |
| 435 // The GLContext to be used by the decoder. | 435 // The GLContext to be used by the decoder. |
| 436 scoped_refptr<gfx::GLContext> gl_context_; | 436 scoped_refptr<gfx::GLContext> gl_context_; |
| 437 | 437 |
| 438 // Set to true if we are sharing ANGLE's device. | 438 // Set to true if we are sharing ANGLE's device. |
| 439 bool using_angle_device_; | 439 bool using_angle_device_; |
| 440 | 440 |
| 441 // Enables experimental hardware acceleration for VP8/VP9 video decoding. | 441 // Enables experimental hardware acceleration for VP8/VP9 video decoding. |
| 442 const bool enable_accelerated_vpx_decode_; | 442 const bool enable_accelerated_vpx_decode_; |
| 443 | 443 |
| 444 // WeakPtrFactory for posting tasks back to |this|. | |
| 445 base::WeakPtrFactory<DXVAVideoDecodeAccelerator> weak_this_factory_; | |
| 446 | |
| 447 // Function pointer for the MFCreateDXGIDeviceManager API. | |
| 448 static CreateDXGIDeviceManager create_dxgi_device_manager_; | |
| 449 | |
| 450 // The media foundation H.264 decoder has problems handling changes like | 444 // The media foundation H.264 decoder has problems handling changes like |
| 451 // resolution change, bitrate change etc. If we reinitialize the decoder | 445 // resolution change, bitrate change etc. If we reinitialize the decoder |
| 452 // when these changes occur then, the decoder works fine. The | 446 // when these changes occur then, the decoder works fine. The |
| 453 // H264ConfigChangeDetector class provides functionality to check if the | 447 // H264ConfigChangeDetector class provides functionality to check if the |
| 454 // stream configuration changed. | 448 // stream configuration changed. |
| 455 H264ConfigChangeDetector config_change_detector_; | 449 H264ConfigChangeDetector config_change_detector_; |
| 456 | 450 |
| 457 // Contains the initialization parameters for the video. | 451 // Contains the initialization parameters for the video. |
| 458 Config config_; | 452 Config config_; |
| 459 | 453 |
| 454 // WeakPtrFactory for posting tasks back to |this|. |
| 455 base::WeakPtrFactory<DXVAVideoDecodeAccelerator> weak_this_factory_; |
| 456 |
| 457 // Function pointer for the MFCreateDXGIDeviceManager API. |
| 458 static CreateDXGIDeviceManager create_dxgi_device_manager_; |
| 459 |
| 460 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); | 460 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); |
| 461 }; | 461 }; |
| 462 | 462 |
| 463 } // namespace content | 463 } // namespace content |
| 464 | 464 |
| 465 #endif // CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ | 465 #endif // CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |