va: Register and enable and the vah265enc plugin.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2036>
This commit is contained in:
He Junyan 2022-03-25 21:55:28 +08:00
parent 3d99f24843
commit 4e7eddeafe

View file

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