1 /* gstgoom.c: implementation of goom drawing element 2 * Copyright (C) <2001> Richard Boulton <richard@tartarus.org> 3 * (C) <2006> Wim Taymans <wim at fluendo dot com> 4 * Copyright (C) <2015> Luis de Bethencourt <luis@debethencourt.com> 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Library General Public 8 * License as published by the Free Software Foundation; either 9 * version 2 of the License, or (at your option) any later version. 10 * 11 * This library 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 GNU 14 * Library General Public License for more details. 15 * 16 * You should have received a copy of the GNU Library General Public 17 * License along with this library; if not, write to the 18 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 19 * Boston, MA 02110-1301, USA. 20 */ 21 22 #ifndef __GST_GOOM_H__ 23 #define __GST_GOOM_H__ 24 25 #include <gst/pbutils/gstaudiovisualizer.h> 26 27 #include "goom_core.h" 28 29 G_BEGIN_DECLS 30 31 #define GOOM2K1_SAMPLES 512 32 33 #define GST_TYPE_GOOM2K1 (gst_goom2k1_get_type()) 34 #define GST_GOOM2K1(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GOOM2K1,GstGoom2k1)) 35 #define GST_GOOM2K1_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_GOOM2K1,GstGoom2k1Class)) 36 #define GST_IS_GOOM2K1(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GOOM2K1)) 37 #define GST_IS_GOOM2K1_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_GOOM2K1)) 38 39 typedef struct _GstGoom2k1 GstGoom2k1; 40 typedef struct _GstGoom2k1Class GstGoom2k1Class; 41 42 struct _GstGoom2k1 43 { 44 GstAudioVisualizer parent; 45 46 /* input tracking */ 47 gint channels; 48 49 /* video state */ 50 gint width; 51 gint height; 52 53 /* goom stuff */ 54 GoomData goomdata; 55 }; 56 57 struct _GstGoom2k1Class 58 { 59 GstAudioVisualizerClass parent_class; 60 }; 61 62 GType gst_goom2k1_get_type (void); 63 GST_ELEMENT_REGISTER_DECLARE (goom2k1); 64 65 G_END_DECLS 66 67 #endif /* __GST_GOOM_H__ */ 68 69