2 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
5 * Copyright (C) 2001 FUKUCHI Kentarou
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.
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.
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., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
26 #include <gst/video/video.h>
27 #include "gsteffectv.h"
30 struct _elements_entry {
33 GstElementDetails *details;
34 gboolean (*factoryinit) (GstElementFactory *factory);
37 static struct _elements_entry _elements[] = {
38 { "edgeTV", gst_edgetv_get_type, &gst_edgetv_details, NULL },
39 { "agingTV", gst_agingtv_get_type, &gst_agingtv_details, NULL },
40 { "diceTV", gst_dicetv_get_type, &gst_dicetv_details, NULL },
41 { "warpTV", gst_warptv_get_type, &gst_warptv_details, NULL },
42 { "shagadelicTV", gst_shagadelictv_get_type, &gst_shagadelictv_details, NULL },
43 { "vertigoTV", gst_vertigotv_get_type, &gst_vertigotv_details, NULL },
44 { "revTV", gst_revtv_get_type, &gst_revtv_details, NULL },
45 { "quarkTV", gst_quarktv_get_type, &gst_quarktv_details, NULL },
51 gst_effectv_src_factory (void)
53 static GstPadTemplate *templ = NULL;
55 templ = GST_PAD_TEMPLATE_NEW (
62 GST_VIDEO_RGB_PAD_TEMPLATE_PROPS_32
70 gst_effectv_sink_factory (void)
72 static GstPadTemplate *templ = NULL;
74 templ = GST_PAD_TEMPLATE_NEW (
81 GST_VIDEO_RGB_PAD_TEMPLATE_PROPS_32
89 plugin_init (GModule * module, GstPlugin * plugin)
91 GstElementFactory *factory;
94 while (_elements[i].name) {
95 factory = gst_element_factory_new (_elements[i].name,
96 (_elements[i].type) (),
97 _elements[i].details);
100 g_warning ("gst_effecttv_new failed for `%s'",
104 gst_element_factory_add_pad_template (factory, gst_effectv_src_factory ());
105 gst_element_factory_add_pad_template (factory, gst_effectv_sink_factory ());
107 gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
108 if (_elements[i].factoryinit) {
109 _elements[i].factoryinit (factory);
117 GstPluginDesc plugin_desc = {