diff options
author | He Junyan <junyan.he@intel.com> | 2022-03-25 21:55:28 +0800 |
---|---|---|
committer | He Junyan <junyan.he@intel.com> | 2022-12-01 09:44:26 +0800 |
commit | 4e7eddeafea9d4ce15178fe8ab04f0fd7d8b2fd6 (patch) | |
tree | 9ac889b1c8bae4adb2da13df00ece13bca5325aa | |
parent | 3d99f24843fe5f3cf474bf21d5313f52d86b4e1d (diff) | |
download | gstreamer-4e7eddeafea9d4ce15178fe8ab04f0fd7d8b2fd6.tar.gz |
va: Register and enable and the vah265enc plugin.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2036>
-rw-r--r-- | subprojects/gst-plugins-bad/sys/va/plugin.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/subprojects/gst-plugins-bad/sys/va/plugin.c b/subprojects/gst-plugins-bad/sys/va/plugin.c index 31c3873ab8..937fa04e7b 100644 --- a/subprojects/gst-plugins-bad/sys/va/plugin.c +++ b/subprojects/gst-plugins-bad/sys/va/plugin.c @@ -36,6 +36,7 @@ #include "gstvah264dec.h" #include "gstvah264enc.h" #include "gstvah265dec.h" +#include "gstvah265enc.h" #include "gstvajpegdec.h" #include "gstvampeg2dec.h" #include "gstvaprofile.h" @@ -195,6 +196,13 @@ plugin_register_encoders (GstPlugin * plugin, GstVaDevice * device, device->render_device_path); } break; + case HEVC: + if (!gst_va_h265_enc_register (plugin, device, sinkcaps, srccaps, + GST_RANK_NONE, entrypoint)) { + GST_WARNING ("Failed to register H265 encoder: %s", + device->render_device_path); + } + break; default: GST_DEBUG ("No encoder implementation for %" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (codec)); |