#include <string.h> /* memmove */
/* elementfactory information */
-GstElementDetails gst_bpwsinc_details = {
+static GstElementDetails gst_bpwsinc_details = GST_ELEMENT_DETAILS (
"BPWSinc",
"Filter/Audio/Effect",
- "LGPL",
"Band-Pass Windowed sinc filter",
- VERSION,
- "Thomas <thomas@apestaart.org>",
- "(C) 2002 Steven W. Smith",
-};
+ "Thomas <thomas@apestaart.org>, "
+ "Steven W. Smith"
+);
enum {
/* FILL ME */
GstElementClass parent_class;
};
+static void gst_bpwsinc_base_init (gpointer g_class);
static void gst_bpwsinc_class_init (GstBPWSincClass * klass);
static void gst_bpwsinc_init (GstBPWSinc * filter);
if (!bpwsinc_type) {
static const GTypeInfo bpwsinc_info = {
- sizeof (GstBPWSincClass), NULL, NULL,
+ sizeof (GstBPWSincClass),
+ gst_bpwsinc_base_init,
+ NULL,
(GClassInitFunc) gst_bpwsinc_class_init, NULL, NULL,
sizeof (GstBPWSinc), 0,
(GInstanceInitFunc) gst_bpwsinc_init,
}
static void
+gst_bpwsinc_base_init (gpointer g_class)
+{
+ GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
+
+ /* register src pads */
+ gst_element_class_add_pad_template (element_class, gst_filter_src_factory ());
+ gst_element_class_add_pad_template (element_class, gst_filter_sink_factory ());
+
+ gst_element_class_set_details (element_class, &gst_bpwsinc_details);
+}
+
+static void
gst_bpwsinc_class_init (GstBPWSincClass * klass)
{
GObjectClass *gobject_class;
#include <math.h> /* M_PI */
#include <string.h> /* memmove */
-GstElementDetails gst_lpwsinc_details = {
+static GstElementDetails gst_lpwsinc_details = GST_ELEMENT_DETAILS (
"LPWSinc",
"Filter/Audio/Effect",
- "LGPL",
"Low-pass Windowed sinc filter",
- VERSION,
- "Thomas <thomas@apestaart.org>",
- "(C) 2002 Steven W. Smith",
-};
+ "Thomas <thomas@apestaart.org>, "
+ "Steven W. Smith"
+);
enum {
/* FILL ME */
GstElementClass parent_class;
};
+static void gst_lpwsinc_base_init (gpointer g_class);
static void gst_lpwsinc_class_init (GstLPWSincClass * klass);
static void gst_lpwsinc_init (GstLPWSinc * filter);
if (!lpwsinc_type) {
static const GTypeInfo lpwsinc_info = {
- sizeof (GstLPWSincClass), NULL, NULL,
+ sizeof (GstLPWSincClass),
+ gst_lpwsinc_base_init,
+ NULL,
(GClassInitFunc) gst_lpwsinc_class_init, NULL, NULL,
sizeof (GstLPWSinc), 0,
(GInstanceInitFunc) gst_lpwsinc_init,
}
static void
+gst_lpwsinc_base_init (gpointer g_class)
+{
+ GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
+
+ /* register src pads */
+ gst_element_class_add_pad_template (element_class, gst_filter_src_factory ());
+ gst_element_class_add_pad_template (element_class, gst_filter_sink_factory ());
+
+ gst_element_class_set_details (element_class, &gst_lpwsinc_details);
+}
+
+static void
gst_lpwsinc_class_init (GstLPWSincClass * klass)
{
GObjectClass *gobject_class;