msdkenc: Directly import dmabuf memory as mfx surface
authorMengkejiergeli Ba <mengkejiergeli.ba@intel.com>
Thu, 19 May 2022 10:57:50 +0000 (18:57 +0800)
committerMengkejiergeli Ba <mengkejiergeli.ba@intel.com>
Fri, 2 Sep 2022 03:06:29 +0000 (11:06 +0800)
commit956dc40fb88c70f5a1c44fc51a900bc730d53dfc
tree2a404ecdd422eeb41efb4315c28a8039f697af7f
parentb2e18f7f888cd5ba19a07abf0fa5b9f561a5b1c3
msdkenc: Directly import dmabuf memory as mfx surface

When input buffer is of dmabuf memory but not a msdk buffer (i.e., the
allocator is not msdk_allocator), then we can try to get fd of this mem,
create the corresponding va surface and wrap it as mfx surface.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2498>
subprojects/gst-plugins-bad/sys/msdk/gstmsdkenc.c