1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3  *
4  * EffecTV:
5  * Copyright (C) 2001 FUKUCHI Kentarou
6  *
7  * EffecTV is free software. This library is free software;
8  * you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the
20  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
21  * Boston, MA 02110-1301, USA.
22  */
23 
24 #ifdef HAVE_CONFIG_H
25 #include "config.h"
26 #endif
27 
28 #include "gsteffectv.h"
29 #include "gstaging.h"
30 #include "gstdice.h"
31 #include "gstedge.h"
32 #include "gstquark.h"
33 #include "gstrev.h"
34 #include "gstshagadelic.h"
35 #include "gstvertigo.h"
36 #include "gstwarp.h"
37 #include "gstop.h"
38 #include "gstradioac.h"
39 #include "gststreak.h"
40 #include "gstripple.h"
41 
42 struct _elements_entry
43 {
44   const gchar *name;
45     GType (*type) (void);
46 };
47 
48 static const struct _elements_entry _elements[] = {
49   {"edgetv", gst_edgetv_get_type},
50   {"agingtv", gst_agingtv_get_type},
51   {"dicetv", gst_dicetv_get_type},
52   {"warptv", gst_warptv_get_type},
53   {"shagadelictv", gst_shagadelictv_get_type},
54   {"vertigotv", gst_vertigotv_get_type},
55   {"revtv", gst_revtv_get_type},
56   {"quarktv", gst_quarktv_get_type},
57   {"optv", gst_optv_get_type},
58   {"radioactv", gst_radioactv_get_type},
59   {"streaktv", gst_streaktv_get_type},
60   {"rippletv", gst_rippletv_get_type},
61   {NULL, 0},
62 };
63 
64 static gboolean
plugin_init(GstPlugin * plugin)65 plugin_init (GstPlugin * plugin)
66 {
67   gint i = 0;
68 
69   while (_elements[i].name) {
70     if (!gst_element_register (plugin, _elements[i].name,
71             GST_RANK_NONE, (_elements[i].type) ()))
72       return FALSE;
73     i++;
74   }
75 
76   return TRUE;
77 }
78 
79 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
80     GST_VERSION_MINOR,
81     effectv,
82     "effect plugins from the effectv project",
83     plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN);
84