mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 01:32:42 +00:00
x265: allow per feature registration
Split plugin into features including dynamic types which can be indiviually registered during a static build. More details here: https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/199 https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/661 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2038>
This commit is contained in:
parent
1fd8b4a6b7
commit
42a8702919
2 changed files with 11 additions and 1 deletions
|
@ -197,10 +197,12 @@ static void gst_x265_enc_set_property (GObject * object, guint prop_id,
|
||||||
const GValue * value, GParamSpec * pspec);
|
const GValue * value, GParamSpec * pspec);
|
||||||
static void gst_x265_enc_get_property (GObject * object, guint prop_id,
|
static void gst_x265_enc_get_property (GObject * object, guint prop_id,
|
||||||
GValue * value, GParamSpec * pspec);
|
GValue * value, GParamSpec * pspec);
|
||||||
|
static gboolean x265enc_element_init (GstPlugin * plugin);
|
||||||
|
|
||||||
#define gst_x265_enc_parent_class parent_class
|
#define gst_x265_enc_parent_class parent_class
|
||||||
G_DEFINE_TYPE_WITH_CODE (GstX265Enc, gst_x265_enc, GST_TYPE_VIDEO_ENCODER,
|
G_DEFINE_TYPE_WITH_CODE (GstX265Enc, gst_x265_enc, GST_TYPE_VIDEO_ENCODER,
|
||||||
G_IMPLEMENT_INTERFACE (GST_TYPE_PRESET, NULL));
|
G_IMPLEMENT_INTERFACE (GST_TYPE_PRESET, NULL));
|
||||||
|
GST_ELEMENT_REGISTER_DEFINE_CUSTOM (x265enc, x265enc_element_init);
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_x265_enc_add_x265_chroma_format (GstStructure * s,
|
gst_x265_enc_add_x265_chroma_format (GstStructure * s,
|
||||||
|
@ -1732,7 +1734,7 @@ gst_x265_enc_get_property (GObject * object, guint prop_id,
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
x265enc_element_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
GST_DEBUG_CATEGORY_INIT (x265_enc_debug, "x265enc", 0,
|
GST_DEBUG_CATEGORY_INIT (x265_enc_debug, "x265enc", 0,
|
||||||
"h265 encoding element");
|
"h265 encoding element");
|
||||||
|
@ -1773,6 +1775,12 @@ plugin_init (GstPlugin * plugin)
|
||||||
GST_RANK_PRIMARY, GST_TYPE_X265_ENC);
|
GST_RANK_PRIMARY, GST_TYPE_X265_ENC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
plugin_init (GstPlugin * plugin)
|
||||||
|
{
|
||||||
|
return GST_ELEMENT_REGISTER (x265enc, plugin);
|
||||||
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
GST_VERSION_MINOR,
|
GST_VERSION_MINOR,
|
||||||
x265,
|
x265,
|
||||||
|
|
|
@ -84,5 +84,7 @@ struct _GstX265EncClass
|
||||||
|
|
||||||
GType gst_x265_enc_get_type (void);
|
GType gst_x265_enc_get_type (void);
|
||||||
|
|
||||||
|
GST_ELEMENT_REGISTER_DECLARE (x265enc);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
#endif /* __GST_X265_ENC_H__ */
|
#endif /* __GST_X265_ENC_H__ */
|
||||||
|
|
Loading…
Reference in a new issue