1082541e2725ebcff030ff0f5e80cec2c8a3458d
[platform/upstream/gstreamer.git] / gst / scopes / plugin.c
1 /* GStreamer
2  * Copyright (C) <2011> Stefan Kost <ensonic@users.sf.net>
3  *
4  * plugin.c: scopes plugin
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19  */
20
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24 #include <gst/gst.h>
25 #include <gst/controller/gstcontroller.h>
26
27 #include "gstspectrascope.h"
28 #include "gstsynaescope.h"
29 #include "gstwavescope.h"
30
31 static gboolean
32 plugin_init (GstPlugin * plugin)
33 {
34   gboolean res = TRUE;
35
36   /* initialize gst controller library */
37   gst_controller_init (NULL, NULL);
38
39   res &= gst_spectra_scope_plugin_init (plugin);
40   res &= gst_wave_scope_plugin_init (plugin);
41   return res;
42 }
43
44 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
45     GST_VERSION_MINOR,
46     "scopes",
47     "Creates video visualizations of audio input",
48     plugin_init, VERSION, "GPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)