Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: media/gpu/dxva_video_decode_accelerator_win.h

Issue 2065323002: Fix the frame freezing issue observed during a config change in the H.264 decoder on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | media/gpu/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | media/gpu/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698