d3d11memory: Implement GstAllocator::mem_copy method
authorSeungha Yang <seungha@centricular.com>
Sun, 6 Jun 2021 16:49:26 +0000 (01:49 +0900)
committerSeungha Yang <seungha@centricular.com>
Wed, 9 Jun 2021 16:20:32 +0000 (01:20 +0900)
commitf90506e33b515377b29e654bfa8d457766063ec0
treed2443fa844c634835677b8774f0a0508296820b2
parentb7abd34285bf47f5b49a6541936d274f841de8fc
d3d11memory: Implement GstAllocator::mem_copy method

There are a few places which require deep copy
(basesink on drain for example). Also this implementation can be
useful for future use case.
One probable future use case is that copying DPB texture to
another texture for in-place transform since our DPB texture is never
writable, and therefore copying is unavoidable.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2308>
gst-libs/gst/d3d11/gstd3d11_fwd.h
gst-libs/gst/d3d11/gstd3d11memory.c
gst-libs/gst/d3d11/gstd3d11memory.h