amfcodec: Promote encoder rank to PRIMARY
authorSeungha Yang <seungha@centricular.com>
Sat, 12 Nov 2022 18:28:23 +0000 (03:28 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 16 Nov 2022 14:47:27 +0000 (14:47 +0000)
This H/W encoder implementation is the recommended element
on AMD system over the MediaFoundation one.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3394>

subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json
subprojects/gst-plugins-bad/sys/amfcodec/plugin.cpp

index 0d48036..243de9f 100644 (file)
                         "writable": true
                     }
                 },
-                "rank": "none"
+                "rank": "primary"
             },
             "amfh265enc": {
                 "author": "Seungha Yang <seungha@centricular.com>",
                         "writable": true
                     }
                 },
-                "rank": "none"
+                "rank": "primary"
             }
         },
         "filename": "gstamfcodec",
index 0b10e18..825f3df 100644 (file)
@@ -105,9 +105,9 @@ plugin_init (GstPlugin * plugin)
 
     if (result == AMF_OK) {
       gst_amf_h264_enc_register_d3d11 (plugin, device,
-          (gpointer) context.GetPtr (), GST_RANK_NONE);
+          (gpointer) context.GetPtr (), GST_RANK_PRIMARY);
       gst_amf_h265_enc_register_d3d11 (plugin, device,
-          (gpointer) context.GetPtr (), GST_RANK_NONE);
+          (gpointer) context.GetPtr (), GST_RANK_PRIMARY);
     }
 
     gst_clear_object (&device);