d3d11videosink: Add a property to support rendering statistics data on window
authorSeungha Yang <seungha@centricular.com>
Sat, 21 Nov 2020 19:39:57 +0000 (04:39 +0900)
committerSeungha Yang <seungha@centricular.com>
Thu, 3 Dec 2020 20:22:14 +0000 (05:22 +0900)
commit96831233a32d3b5bb036ddbe65ef307be5f2148c
tree30b9d9dba1553924291bdc021fb49983f8d2bfd7
parent22990bb9ea7c37a557a9edb1c8549b794a079155
d3d11videosink: Add a property to support rendering statistics data on window

Add a new property "render-stats" to allow rendering statistics
data on window for debugging and/or development purpose.
Text rendering will be accelerated by GPU since this implementation
uses Direct2D/DirectWrite API and Direct3D inter-op for minimal overhead.
Specifically, text data will be rendered on swapchain backbuffer
directly without any copy/allocation of extra texture.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1830>
sys/d3d11/gstd3d11videosink.c
sys/d3d11/gstd3d11videosinkbin.c
sys/d3d11/gstd3d11window.cpp
sys/d3d11/gstd3d11window.h
sys/d3d11/meson.build