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:
parent
92abb8daec
commit
433301d0e5
@ -675,7 +675,7 @@
|
|||||||
"writable": true
|
"writable": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rank": "none"
|
"rank": "primary"
|
||||||
},
|
},
|
||||||
"amfh265enc": {
|
"amfh265enc": {
|
||||||
"author": "Seungha Yang <seungha@centricular.com>",
|
"author": "Seungha Yang <seungha@centricular.com>",
|
||||||
@ -909,7 +909,7 @@
|
|||||||
"writable": true
|
"writable": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rank": "none"
|
"rank": "primary"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"filename": "gstamfcodec",
|
"filename": "gstamfcodec",
|
||||||
|
@ -105,9 +105,9 @@ plugin_init (GstPlugin * plugin)
|
|||||||
|
|
||||||
if (result == AMF_OK) {
|
if (result == AMF_OK) {
|
||||||
gst_amf_h264_enc_register_d3d11 (plugin, device,
|
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,
|
gst_amf_h265_enc_register_d3d11 (plugin, device,
|
||||||
(gpointer) context.GetPtr (), GST_RANK_NONE);
|
(gpointer) context.GetPtr (), GST_RANK_PRIMARY);
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_clear_object (&device);
|
gst_clear_object (&device);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user