1 /* GStreamer 2 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu> 3 * Copyright (C) <2003> David Schleef <ds@schleef.org> 4 * Copyright (C) <2011,2014> Christoph Reiter <reiter.christoph@gmail.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 Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 */ 20 21 #ifndef __GST_BS2B_H__ 22 #define __GST_BS2B_H__ 23 24 #include <gst/gst.h> 25 #include <gst/audio/audio.h> 26 #include <gst/audio/gstaudiofilter.h> 27 #include <bs2b/bs2b.h> 28 29 G_BEGIN_DECLS 30 #define GST_TYPE_BS2B \ 31 (gst_bs2b_get_type()) 32 #define GST_BS2B(obj) \ 33 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_BS2B,GstBs2b)) 34 #define GST_BS2B_CLASS(klass) \ 35 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_BS2B,GstBs2bClass)) 36 #define GST_IS_BS2B(obj) \ 37 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_BS2B)) 38 #define GST_IS_BS2B_CLASS(klass) \ 39 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_BS2B)) 40 typedef struct _GstBs2b GstBs2b; 41 typedef struct _GstBs2bClass GstBs2bClass; 42 43 44 struct _GstBs2b 45 { 46 GstAudioFilter element; 47 48 /*< private > */ 49 GMutex bs2b_lock; 50 t_bs2bdp bs2bdp; 51 void (*func) (); 52 guint bytes_per_sample; 53 }; 54 55 struct _GstBs2bClass 56 { 57 GstAudioFilterClass parent_class; 58 }; 59 60 GType gst_bs2b_get_type (void); 61 62 GST_ELEMENT_REGISTER_DECLARE (bs2b); 63 64 G_END_DECLS 65 #endif /* __GST_BS2B_H__ */ 66