MSDK: Introduce d3d11 device to MSDK context
authorTong Wu <tong1.wu@intel.com>
Sat, 7 May 2022 09:10:34 +0000 (17:10 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 11 Nov 2022 06:02:28 +0000 (06:02 +0000)
commitd61a248ac8fa1996d553366efd2ab0ebfe46976c
tree25d50fef01d535547ad67443055a43ffe25c29a5
parent11e13b189d79e2af5de1a699da2ec8ec5034fe32
MSDK: Introduce d3d11 device to MSDK context

Currently MSDK context does not support d3d11va. Now introduce d3d11va
device to MSDK context, making it able to create msdk session with d3d11
device and to easily share with upstream and donwstream.

Add environment variable to enable user to choose GPU device in multi-GPU
environment. This variable is only valid when there's no context
returned by upstream or downstream. Otherwise it will use the device
that created by upstream or downstream.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3231>
subprojects/gst-plugins-bad/sys/msdk/gstmsdkcontext.c
subprojects/gst-plugins-bad/sys/msdk/gstmsdkcontext.h
subprojects/gst-plugins-bad/sys/msdk/gstmsdkcontextutil.c
subprojects/gst-plugins-bad/sys/msdk/gstmsdkcontextutil.h
subprojects/gst-plugins-bad/sys/msdk/gstmsdkdec.c
subprojects/gst-plugins-bad/sys/msdk/gstmsdkenc.c
subprojects/gst-plugins-bad/sys/msdk/gstmsdkvpp.c