amfcodec: Promote encoder rank to PRIMARY

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>
This commit is contained in:
Seungha Yang 2022-11-13 03:28:23 +09:00 committed by GStreamer Marge Bot
parent 92abb8daec
commit 433301d0e5
2 changed files with 4 additions and 4 deletions

View file

@ -675,7 +675,7 @@
"writable": true
}
},
"rank": "none"
"rank": "primary"
},
"amfh265enc": {
"author": "Seungha Yang <seungha@centricular.com>",
@ -909,7 +909,7 @@
"writable": true
}
},
"rank": "none"
"rank": "primary"
}
},
"filename": "gstamfcodec",

View 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);