d3d11screencapture: Add WinRT API based capture mode
authorSeungha Yang <seungha@centricular.com>
Thu, 6 Oct 2022 19:20:29 +0000 (04:20 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 21 Oct 2022 14:21:28 +0000 (14:21 +0000)
commit426535f3a6dccb8d08b98571ac4a8414b0540a38
treed459a5d5bc1a54f0a00d43e78edc08c47388cf44
parent087e33500671fbb63b6157d49d53bad558f5e2a7
d3d11screencapture: Add WinRT API based capture mode

Add Windows Graphics Capture (WGC) API based screen capture mode.
The conditions where this mode is used:
* Explicitly requested by user (capture-api property)
* To capture specific window
* When DXGI desktop duplication API does not work on hybrid graphics systems
  (e.g., multi-gpu laptop)

Full features of this implementation require Windows 11. And Windows 11
SDK is required to build this feature.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3144>
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11screencapture.cpp
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11screencapture.h
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11screencapturesrc.cpp
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11winrtcapture.cpp [new file with mode: 0644]
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11winrtcapture.h [new file with mode: 0644]
subprojects/gst-plugins-bad/sys/d3d11/meson.build