d3d11memory: Update alloc_wrapped() API to avoid staging texture alloc
authorSeungha Yang <seungha@centricular.com>
Mon, 4 Jul 2022 12:57:42 +0000 (21:57 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 4 Jul 2022 18:46:51 +0000 (18:46 +0000)
commit347ad181bea9de3e9a6a0ca65ae7d69b2e042d29
tree414e16c321a7b588b3b70f6601250204aa02926c
parent76dbe45b830e40b65a0d48433c27cea7a074f81e
d3d11memory: Update alloc_wrapped() API to avoid staging texture alloc

Add size parameter and use it for CPU accessible memory size
instead of allocating staging texture per API call.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2713>
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11_private.h
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11memory.cpp
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11memory.h
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window.cpp
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_dummy.cpp
subprojects/gst-plugins-bad/tests/examples/d3d11/d3d11videosink-appsrc.cpp