2002-02-01 19:28:30 +00:00
|
|
|
/* gstgoom.c: implementation of goom drawing element
|
|
|
|
* Copyright (C) <2001> Richard Boulton <richard@tartarus.org>
|
gst/goom/gstgoom.*: Handle QoS.
Original commit message from CVS:
* gst/goom/gstgoom.c: (gst_goom_class_init), (gst_goom_init),
(gst_goom_finalize), (gst_goom_reset), (gst_goom_sink_setcaps),
(gst_goom_src_setcaps), (gst_goom_src_event),
(gst_goom_sink_event), (get_buffer), (gst_goom_chain),
(gst_goom_change_state):
* gst/goom/gstgoom.h:
Handle QoS.
Handle flushing, discont and events.
Fix timestamps and various other cleanups.
2006-05-31 16:23:54 +00:00
|
|
|
* (C) <2006> Wim Taymans <wim at fluendo dot com>
|
2011-06-09 08:50:44 +00:00
|
|
|
* (C) <2011> Wim Taymans <wim.taymans at gmail dot com>
|
2015-06-02 16:29:36 +00:00
|
|
|
* (C) <2015> Luis de Bethencourt <luis@debethencourt.com>
|
2002-02-01 19:28:30 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-04 00:07:18 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2002-02-01 19:28:30 +00:00
|
|
|
*/
|
|
|
|
|
add docs to build
Original commit message from CVS:
* Makefile.am:
* configure.ac:
add docs to build
* common/plugins.xsl:
wrap Description into a refsect2
* docs/Makefile.am:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-good-plugins-docs.sgml:
* docs/plugins/gst-plugins-good-plugins-sections.txt:
* gst/goom/Makefile.am:
* gst/goom/gstgoom.c: (gst_goom_get_type), (gst_goom_base_init),
(gst_goom_class_init), (gst_goom_init), (gst_goom_dispose),
(gst_goom_sink_setcaps), (gst_goom_src_setcaps),
(gst_goom_src_negotiate), (gst_goom_event), (gst_goom_chain),
(gst_goom_change_state):
* gst/goom/gstgoom.h:
GstGOOM -> GstGoom
add an example launch line
* gst/level/gstlevel.h:
* gst/monoscope/gstmonoscope.c:
cleanups
2005-09-01 17:55:14 +00:00
|
|
|
/**
|
|
|
|
* SECTION:element-goom
|
2018-10-22 09:39:24 +00:00
|
|
|
* @title: goom
|
add docs to build
Original commit message from CVS:
* Makefile.am:
* configure.ac:
add docs to build
* common/plugins.xsl:
wrap Description into a refsect2
* docs/Makefile.am:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-good-plugins-docs.sgml:
* docs/plugins/gst-plugins-good-plugins-sections.txt:
* gst/goom/Makefile.am:
* gst/goom/gstgoom.c: (gst_goom_get_type), (gst_goom_base_init),
(gst_goom_class_init), (gst_goom_init), (gst_goom_dispose),
(gst_goom_sink_setcaps), (gst_goom_src_setcaps),
(gst_goom_src_negotiate), (gst_goom_event), (gst_goom_chain),
(gst_goom_change_state):
* gst/goom/gstgoom.h:
GstGOOM -> GstGoom
add an example launch line
* gst/level/gstlevel.h:
* gst/monoscope/gstmonoscope.c:
cleanups
2005-09-01 17:55:14 +00:00
|
|
|
* @see_also: synaesthesia
|
|
|
|
*
|
2007-02-12 12:43:00 +00:00
|
|
|
* Goom is an audio visualisation element. It creates warping structures
|
2008-05-11 14:43:26 +00:00
|
|
|
* based on the incoming audio signal.
|
2009-01-28 10:29:42 +00:00
|
|
|
*
|
2018-10-22 09:39:24 +00:00
|
|
|
* ## Example launch line
|
2009-01-28 10:29:42 +00:00
|
|
|
* |[
|
2012-08-26 21:39:55 +00:00
|
|
|
* gst-launch-1.0 -v audiotestsrc ! goom ! videoconvert ! xvimagesink
|
2009-01-28 10:29:42 +00:00
|
|
|
* ]|
|
2018-10-22 09:39:24 +00:00
|
|
|
*
|
add docs to build
Original commit message from CVS:
* Makefile.am:
* configure.ac:
add docs to build
* common/plugins.xsl:
wrap Description into a refsect2
* docs/Makefile.am:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-good-plugins-docs.sgml:
* docs/plugins/gst-plugins-good-plugins-sections.txt:
* gst/goom/Makefile.am:
* gst/goom/gstgoom.c: (gst_goom_get_type), (gst_goom_base_init),
(gst_goom_class_init), (gst_goom_init), (gst_goom_dispose),
(gst_goom_sink_setcaps), (gst_goom_src_setcaps),
(gst_goom_src_negotiate), (gst_goom_event), (gst_goom_chain),
(gst_goom_change_state):
* gst/goom/gstgoom.h:
GstGOOM -> GstGoom
add an example launch line
* gst/level/gstlevel.h:
* gst/monoscope/gstmonoscope.c:
cleanups
2005-09-01 17:55:14 +00:00
|
|
|
*/
|
|
|
|
|
2003-06-29 19:46:12 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
2003-11-07 12:47:01 +00:00
|
|
|
|
2004-11-11 11:21:07 +00:00
|
|
|
#include <string.h>
|
add docs to build
Original commit message from CVS:
* Makefile.am:
* configure.ac:
add docs to build
* common/plugins.xsl:
wrap Description into a refsect2
* docs/Makefile.am:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-good-plugins-docs.sgml:
* docs/plugins/gst-plugins-good-plugins-sections.txt:
* gst/goom/Makefile.am:
* gst/goom/gstgoom.c: (gst_goom_get_type), (gst_goom_base_init),
(gst_goom_class_init), (gst_goom_init), (gst_goom_dispose),
(gst_goom_sink_setcaps), (gst_goom_src_setcaps),
(gst_goom_src_negotiate), (gst_goom_event), (gst_goom_chain),
(gst_goom_change_state):
* gst/goom/gstgoom.h:
GstGOOM -> GstGoom
add an example launch line
* gst/level/gstlevel.h:
* gst/monoscope/gstmonoscope.c:
cleanups
2005-09-01 17:55:14 +00:00
|
|
|
#include "gstgoom.h"
|
2008-02-23 01:51:37 +00:00
|
|
|
#include "goom.h"
|
2002-02-01 19:28:30 +00:00
|
|
|
|
2010-06-14 13:36:00 +00:00
|
|
|
#if HAVE_ORC
|
|
|
|
#include <orc/orc.h>
|
|
|
|
#endif
|
|
|
|
|
2008-02-23 12:10:16 +00:00
|
|
|
GST_DEBUG_CATEGORY (goom_debug);
|
2004-11-11 11:21:07 +00:00
|
|
|
#define GST_CAT_DEFAULT goom_debug
|
|
|
|
|
2016-02-27 18:32:45 +00:00
|
|
|
#define DEFAULT_WIDTH 320
|
|
|
|
#define DEFAULT_HEIGHT 240
|
|
|
|
|
2002-02-01 19:28:30 +00:00
|
|
|
/* signals and args */
|
2004-03-14 22:34:33 +00:00
|
|
|
enum
|
|
|
|
{
|
2002-02-01 19:28:30 +00:00
|
|
|
/* FILL ME */
|
|
|
|
LAST_SIGNAL
|
|
|
|
};
|
|
|
|
|
2004-03-14 22:34:33 +00:00
|
|
|
enum
|
|
|
|
{
|
2015-06-02 16:29:36 +00:00
|
|
|
ARG_0
|
2004-05-21 22:39:30 +00:00
|
|
|
/* FILL ME */
|
2002-02-01 19:28:30 +00:00
|
|
|
};
|
|
|
|
|
2011-08-04 13:25:20 +00:00
|
|
|
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
2016-02-24 23:46:09 +00:00
|
|
|
#define RGB_ORDER "xRGB"
|
2011-08-04 13:25:20 +00:00
|
|
|
#else
|
2016-02-24 23:46:09 +00:00
|
|
|
#define RGB_ORDER "BGRx"
|
2011-08-04 13:25:20 +00:00
|
|
|
#endif
|
2016-02-24 23:46:09 +00:00
|
|
|
|
|
|
|
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
|
|
|
GST_PAD_SRC,
|
|
|
|
GST_PAD_ALWAYS,
|
|
|
|
GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE (RGB_ORDER))
|
2004-03-14 22:34:33 +00:00
|
|
|
);
|
2002-02-01 19:28:30 +00:00
|
|
|
|
2004-03-15 19:32:27 +00:00
|
|
|
static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink", /* the name of the pads */
|
|
|
|
GST_PAD_SINK, /* type of the pad */
|
|
|
|
GST_PAD_ALWAYS, /* ALWAYS/SOMETIMES */
|
2011-08-19 14:09:48 +00:00
|
|
|
GST_STATIC_CAPS ("audio/x-raw, "
|
|
|
|
"format = (string) " GST_AUDIO_NE (S16) ", "
|
2012-01-04 10:09:32 +00:00
|
|
|
"rate = (int) [ 8000, 96000 ], "
|
|
|
|
"channels = (int) 1, "
|
|
|
|
"layout = (string) interleaved; "
|
|
|
|
"audio/x-raw, "
|
|
|
|
"format = (string) " GST_AUDIO_NE (S16) ", "
|
|
|
|
"rate = (int) [ 8000, 96000 ], "
|
|
|
|
"channels = (int) 2, "
|
|
|
|
"channel-mask = (bitmask) 0x3, " "layout = (string) interleaved")
|
2004-03-14 22:34:33 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
gst/goom/gstgoom.*: Handle QoS.
Original commit message from CVS:
* gst/goom/gstgoom.c: (gst_goom_class_init), (gst_goom_init),
(gst_goom_finalize), (gst_goom_reset), (gst_goom_sink_setcaps),
(gst_goom_src_setcaps), (gst_goom_src_event),
(gst_goom_sink_event), (get_buffer), (gst_goom_chain),
(gst_goom_change_state):
* gst/goom/gstgoom.h:
Handle QoS.
Handle flushing, discont and events.
Fix timestamps and various other cleanups.
2006-05-31 16:23:54 +00:00
|
|
|
static void gst_goom_finalize (GObject * object);
|
2003-03-04 21:46:59 +00:00
|
|
|
|
2015-06-02 16:29:36 +00:00
|
|
|
static gboolean gst_goom_setup (GstAudioVisualizer * base);
|
|
|
|
static gboolean gst_goom_render (GstAudioVisualizer * base, GstBuffer * audio,
|
|
|
|
GstVideoFrame * video);
|
2021-02-16 16:11:14 +00:00
|
|
|
static gboolean goom_element_init (GstPlugin * plugin);
|
2002-02-01 19:28:30 +00:00
|
|
|
|
2015-06-02 16:29:36 +00:00
|
|
|
G_DEFINE_TYPE (GstGoom, gst_goom, GST_TYPE_AUDIO_VISUALIZER);
|
2021-02-16 16:11:14 +00:00
|
|
|
GST_ELEMENT_REGISTER_DEFINE_CUSTOM (goom, goom_element_init);
|
2003-11-02 17:41:07 +00:00
|
|
|
|
2002-02-01 19:28:30 +00:00
|
|
|
static void
|
add docs to build
Original commit message from CVS:
* Makefile.am:
* configure.ac:
add docs to build
* common/plugins.xsl:
wrap Description into a refsect2
* docs/Makefile.am:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-good-plugins-docs.sgml:
* docs/plugins/gst-plugins-good-plugins-sections.txt:
* gst/goom/Makefile.am:
* gst/goom/gstgoom.c: (gst_goom_get_type), (gst_goom_base_init),
(gst_goom_class_init), (gst_goom_init), (gst_goom_dispose),
(gst_goom_sink_setcaps), (gst_goom_src_setcaps),
(gst_goom_src_negotiate), (gst_goom_event), (gst_goom_chain),
(gst_goom_change_state):
* gst/goom/gstgoom.h:
GstGOOM -> GstGoom
add an example launch line
* gst/level/gstlevel.h:
* gst/monoscope/gstmonoscope.c:
cleanups
2005-09-01 17:55:14 +00:00
|
|
|
gst_goom_class_init (GstGoomClass * klass)
|
2002-02-01 19:28:30 +00:00
|
|
|
{
|
|
|
|
GObjectClass *gobject_class;
|
|
|
|
GstElementClass *gstelement_class;
|
2015-06-02 16:29:36 +00:00
|
|
|
GstAudioVisualizerClass *visualizer_class;
|
2002-02-01 19:28:30 +00:00
|
|
|
|
2004-03-14 22:34:33 +00:00
|
|
|
gobject_class = (GObjectClass *) klass;
|
|
|
|
gstelement_class = (GstElementClass *) klass;
|
2015-06-02 16:29:36 +00:00
|
|
|
visualizer_class = (GstAudioVisualizerClass *) klass;
|
2002-02-01 19:28:30 +00:00
|
|
|
|
gst/goom/gstgoom.*: Handle QoS.
Original commit message from CVS:
* gst/goom/gstgoom.c: (gst_goom_class_init), (gst_goom_init),
(gst_goom_finalize), (gst_goom_reset), (gst_goom_sink_setcaps),
(gst_goom_src_setcaps), (gst_goom_src_event),
(gst_goom_sink_event), (get_buffer), (gst_goom_chain),
(gst_goom_change_state):
* gst/goom/gstgoom.h:
Handle QoS.
Handle flushing, discont and events.
Fix timestamps and various other cleanups.
2006-05-31 16:23:54 +00:00
|
|
|
gobject_class->finalize = gst_goom_finalize;
|
2003-03-04 21:46:59 +00:00
|
|
|
|
2012-04-09 23:51:41 +00:00
|
|
|
gst_element_class_set_static_metadata (gstelement_class, "GOOM: what a GOOM!",
|
2011-06-09 08:50:44 +00:00
|
|
|
"Visualization",
|
|
|
|
"Takes frames of data and outputs video frames using the GOOM filter",
|
|
|
|
"Wim Taymans <wim@fluendo.com>");
|
2016-03-04 01:30:12 +00:00
|
|
|
gst_element_class_add_static_pad_template (gstelement_class, &sink_template);
|
|
|
|
gst_element_class_add_static_pad_template (gstelement_class, &src_template);
|
2011-06-09 08:50:44 +00:00
|
|
|
|
2015-06-02 16:29:36 +00:00
|
|
|
visualizer_class->setup = GST_DEBUG_FUNCPTR (gst_goom_setup);
|
|
|
|
visualizer_class->render = GST_DEBUG_FUNCPTR (gst_goom_render);
|
2002-02-01 19:28:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
add docs to build
Original commit message from CVS:
* Makefile.am:
* configure.ac:
add docs to build
* common/plugins.xsl:
wrap Description into a refsect2
* docs/Makefile.am:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-good-plugins-docs.sgml:
* docs/plugins/gst-plugins-good-plugins-sections.txt:
* gst/goom/Makefile.am:
* gst/goom/gstgoom.c: (gst_goom_get_type), (gst_goom_base_init),
(gst_goom_class_init), (gst_goom_init), (gst_goom_dispose),
(gst_goom_sink_setcaps), (gst_goom_src_setcaps),
(gst_goom_src_negotiate), (gst_goom_event), (gst_goom_chain),
(gst_goom_change_state):
* gst/goom/gstgoom.h:
GstGOOM -> GstGoom
add an example launch line
* gst/level/gstlevel.h:
* gst/monoscope/gstmonoscope.c:
cleanups
2005-09-01 17:55:14 +00:00
|
|
|
gst_goom_init (GstGoom * goom)
|
2002-02-01 19:28:30 +00:00
|
|
|
{
|
2016-02-27 18:32:45 +00:00
|
|
|
goom->width = DEFAULT_WIDTH;
|
|
|
|
goom->height = DEFAULT_HEIGHT;
|
2003-04-13 18:40:34 +00:00
|
|
|
goom->channels = 0;
|
2016-02-27 18:32:45 +00:00
|
|
|
|
|
|
|
goom->plugin = goom_init (goom->width, goom->height);
|
2003-04-13 18:40:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
gst/goom/gstgoom.*: Handle QoS.
Original commit message from CVS:
* gst/goom/gstgoom.c: (gst_goom_class_init), (gst_goom_init),
(gst_goom_finalize), (gst_goom_reset), (gst_goom_sink_setcaps),
(gst_goom_src_setcaps), (gst_goom_src_event),
(gst_goom_sink_event), (get_buffer), (gst_goom_chain),
(gst_goom_change_state):
* gst/goom/gstgoom.h:
Handle QoS.
Handle flushing, discont and events.
Fix timestamps and various other cleanups.
2006-05-31 16:23:54 +00:00
|
|
|
gst_goom_finalize (GObject * object)
|
2003-04-13 18:40:34 +00:00
|
|
|
{
|
add docs to build
Original commit message from CVS:
* Makefile.am:
* configure.ac:
add docs to build
* common/plugins.xsl:
wrap Description into a refsect2
* docs/Makefile.am:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-good-plugins-docs.sgml:
* docs/plugins/gst-plugins-good-plugins-sections.txt:
* gst/goom/Makefile.am:
* gst/goom/gstgoom.c: (gst_goom_get_type), (gst_goom_base_init),
(gst_goom_class_init), (gst_goom_init), (gst_goom_dispose),
(gst_goom_sink_setcaps), (gst_goom_src_setcaps),
(gst_goom_src_negotiate), (gst_goom_event), (gst_goom_chain),
(gst_goom_change_state):
* gst/goom/gstgoom.h:
GstGOOM -> GstGoom
add an example launch line
* gst/level/gstlevel.h:
* gst/monoscope/gstmonoscope.c:
cleanups
2005-09-01 17:55:14 +00:00
|
|
|
GstGoom *goom = GST_GOOM (object);
|
2004-11-11 11:21:07 +00:00
|
|
|
|
2008-02-23 01:51:37 +00:00
|
|
|
goom_close (goom->plugin);
|
2008-04-22 00:18:52 +00:00
|
|
|
goom->plugin = NULL;
|
2004-11-11 11:21:07 +00:00
|
|
|
|
2015-06-02 16:29:36 +00:00
|
|
|
G_OBJECT_CLASS (gst_goom_parent_class)->finalize (object);
|
2002-02-01 19:28:30 +00:00
|
|
|
}
|
|
|
|
|
2005-05-18 09:58:13 +00:00
|
|
|
static gboolean
|
2015-06-02 16:29:36 +00:00
|
|
|
gst_goom_setup (GstAudioVisualizer * base)
|
2002-02-01 19:28:30 +00:00
|
|
|
{
|
2015-06-02 16:29:36 +00:00
|
|
|
GstGoom *goom = GST_GOOM (base);
|
2003-12-22 01:47:09 +00:00
|
|
|
|
2016-02-27 18:32:45 +00:00
|
|
|
goom->width = GST_VIDEO_INFO_WIDTH (&base->vinfo);
|
|
|
|
goom->height = GST_VIDEO_INFO_HEIGHT (&base->vinfo);
|
2016-02-27 18:33:32 +00:00
|
|
|
goom_set_resolution (goom->plugin, goom->width, goom->height);
|
2005-05-18 09:58:13 +00:00
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
2003-03-04 22:04:05 +00:00
|
|
|
|
2010-10-04 16:52:14 +00:00
|
|
|
static gboolean
|
2015-06-02 16:29:36 +00:00
|
|
|
gst_goom_render (GstAudioVisualizer * base, GstBuffer * audio,
|
|
|
|
GstVideoFrame * video)
|
|
|
|
{
|
|
|
|
GstGoom *goom = GST_GOOM (base);
|
|
|
|
GstMapInfo amap;
|
|
|
|
gint16 datain[2][GOOM_SAMPLES];
|
|
|
|
gint16 *adata;
|
|
|
|
gint i;
|
|
|
|
|
|
|
|
/* get next GOOM_SAMPLES, we have at least this amount of samples */
|
|
|
|
gst_buffer_map (audio, &amap, GST_MAP_READ);
|
|
|
|
adata = (gint16 *) amap.data;
|
|
|
|
|
|
|
|
if (goom->channels == 2) {
|
|
|
|
for (i = 0; i < GOOM_SAMPLES; i++) {
|
|
|
|
datain[0][i] = *adata++;
|
|
|
|
datain[1][i] = *adata++;
|
2010-10-04 16:52:14 +00:00
|
|
|
}
|
2015-06-02 16:29:36 +00:00
|
|
|
} else {
|
|
|
|
for (i = 0; i < GOOM_SAMPLES; i++) {
|
|
|
|
datain[0][i] = *adata;
|
|
|
|
datain[1][i] = *adata++;
|
gst/goom/gstgoom.*: Handle QoS.
Original commit message from CVS:
* gst/goom/gstgoom.c: (gst_goom_class_init), (gst_goom_init),
(gst_goom_finalize), (gst_goom_reset), (gst_goom_sink_setcaps),
(gst_goom_src_setcaps), (gst_goom_src_event),
(gst_goom_sink_event), (get_buffer), (gst_goom_chain),
(gst_goom_change_state):
* gst/goom/gstgoom.h:
Handle QoS.
Handle flushing, discont and events.
Fix timestamps and various other cleanups.
2006-05-31 16:23:54 +00:00
|
|
|
}
|
2004-11-11 11:21:07 +00:00
|
|
|
}
|
gst/goom/gstgoom.*: Handle QoS.
Original commit message from CVS:
* gst/goom/gstgoom.c: (gst_goom_class_init), (gst_goom_init),
(gst_goom_finalize), (gst_goom_reset), (gst_goom_sink_setcaps),
(gst_goom_src_setcaps), (gst_goom_src_event),
(gst_goom_sink_event), (get_buffer), (gst_goom_chain),
(gst_goom_change_state):
* gst/goom/gstgoom.h:
Handle QoS.
Handle flushing, discont and events.
Fix timestamps and various other cleanups.
2006-05-31 16:23:54 +00:00
|
|
|
|
2015-06-02 16:29:36 +00:00
|
|
|
video->data[0] = goom_update (goom->plugin, datain, 0, 0);
|
|
|
|
gst_buffer_unmap (audio, &amap);
|
gst/goom/gstgoom.*: Handle QoS.
Original commit message from CVS:
* gst/goom/gstgoom.c: (gst_goom_class_init), (gst_goom_init),
(gst_goom_finalize), (gst_goom_reset), (gst_goom_sink_setcaps),
(gst_goom_src_setcaps), (gst_goom_src_event),
(gst_goom_sink_event), (get_buffer), (gst_goom_chain),
(gst_goom_change_state):
* gst/goom/gstgoom.h:
Handle QoS.
Handle flushing, discont and events.
Fix timestamps and various other cleanups.
2006-05-31 16:23:54 +00:00
|
|
|
|
2015-06-02 16:29:36 +00:00
|
|
|
return TRUE;
|
2003-03-04 21:46:59 +00:00
|
|
|
}
|
|
|
|
|
2002-02-01 19:28:30 +00:00
|
|
|
static gboolean
|
2021-02-16 16:11:14 +00:00
|
|
|
goom_element_init (GstPlugin * plugin)
|
2002-02-01 19:28:30 +00:00
|
|
|
{
|
2008-02-23 12:10:16 +00:00
|
|
|
GST_DEBUG_CATEGORY_INIT (goom_debug, "goom", 0, "goom visualisation element");
|
|
|
|
|
2010-06-14 13:36:00 +00:00
|
|
|
#if HAVE_ORC
|
|
|
|
orc_init ();
|
|
|
|
#endif
|
|
|
|
|
2004-03-14 22:34:33 +00:00
|
|
|
return gst_element_register (plugin, "goom", GST_RANK_NONE, GST_TYPE_GOOM);
|
2002-02-01 19:28:30 +00:00
|
|
|
}
|
|
|
|
|
2021-02-16 16:11:14 +00:00
|
|
|
static gboolean
|
|
|
|
plugin_init (GstPlugin * plugin)
|
|
|
|
{
|
|
|
|
return GST_ELEMENT_REGISTER (goom, plugin);
|
|
|
|
}
|
|
|
|
|
2004-03-14 22:34:33 +00:00
|
|
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
|
|
GST_VERSION_MINOR,
|
2012-04-05 15:36:38 +00:00
|
|
|
goom,
|
2004-03-14 22:34:33 +00:00
|
|
|
"GOOM visualization filter",
|
2005-11-14 02:13:35 +00:00
|
|
|
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
|