d3d11compositor: Reconfigure resource only when output caps is changed
authorSeungha Yang <seungha@centricular.com>
Mon, 17 Apr 2023 14:06:54 +0000 (23:06 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 17 Apr 2023 18:34:17 +0000 (19:34 +0100)
commit2c7a8739dd38055d06d8b876ca9f063c7720fa44
tree34b58e593acf8f911d17b51415bf9a0f04d15108
parent88353d8cb264a4b10b6839f3f7e010a667acb78b
d3d11compositor: Reconfigure resource only when output caps is changed

GstD3D11Converter setup is heavy operation since it requires
shader compile, GPU resource allocation, some math, mutex, etc.
We can avoid it if negotiated caps is not changed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4440>
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11compositor.cpp