[Win Camera Capture] Use D3D11 with Media Foundation Video Capture
This CL updates the VideoCaptureDeviceFactoryWin/VideoCaptureDeviceMFWin implementations to use D3D11 with the MF device source and capture engine. The VideoCaptureDeviceFactoryWin creates and manages an IMFDXGIDeviceManager and associated D3D11 device instance. It provides the IMFDXGIDeviceManager to the MF device source and also plumbs it to the VideoCaptureDeviceMFWin implementation. The VideoCaptureDeviceMFWin implementation subsequently provides the IMFDXGIDeviceManager to the MF capture engine on initialization. Providing a MF DXGI device manager to the MF device source and capture engine is required for zero-copy capture (it allows the Windows frame server service and MF capture engine to keep captured video frames in GPU memory and expose MF samples backed by D3D11 textures). Bug: 1120900 Change-Id: Ic5367d03f337daab2220f8d87d1bfe51f6ca8b72 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2370092Reviewed-by:Guido Urdaneta <guidou@chromium.org> Reviewed-by:
Markus Handell <handellm@google.com> Reviewed-by:
Rafael Cintron <rafael.cintron@microsoft.com> Reviewed-by:
Ilya Nikolaevskiy <ilnik@chromium.org> Reviewed-by:
Sunny Sachanandani <sunnyps@chromium.org> Commit-Queue: Isuru Pathirana <Isuru.Pathirana@microsoft.com> Cr-Commit-Position: refs/heads/master@{#809472}
Showing
Please register or sign in to comment