msdk: enable GPUCopy
authorHaihao Xiang <haihao.xiang@intel.com>
Tue, 10 Dec 2019 11:54:43 +0000 (19:54 +0800)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 20 Sep 2020 01:40:08 +0000 (01:40 +0000)
Note it works for system memory only

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/910>

sys/msdk/msdk.c

index 2190e27..68c2ae2 100644 (file)
@@ -199,6 +199,10 @@ msdk_open_session (mfxIMPL impl)
     "HARDWARE3", "HARDWARE4", "RUNTIME"
   };
 
+#if (MFX_VERSION >= 1025)
+  init_par.GPUCopy = 1;
+#endif
+
   status = MFXInitEx (init_par, &session);
   if (status != MFX_ERR_NONE) {
     GST_ERROR ("Intel Media SDK not available (%s)",