Tizen 2.0 Release
[framework/multimedia/gst-plugins-good0.10.git] / gst / audiofx / audiowsinclimit.h
1 /* -*- c-basic-offset: 2 -*-
2  * 
3  * GStreamer
4  * Copyright (C) 1999-2001 Erik Walthinsen <omega@cse.ogi.edu>
5  *               2006 Dreamlab Technologies Ltd. <mathis.hofer@dreamlab.net>
6  *               2007-2009 Sebastian Dröge <sebastian.droege@collabora.co.uk>
7  *
8  * This library is free software; 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.
12  *
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.
17  *
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.
22  * 
23  * 
24  * this windowed sinc filter is taken from the freely downloadable DSP book,
25  * "The Scientist and Engineer's Guide to Digital Signal Processing",
26  * chapter 16
27  * available at http://www.dspguide.com/
28  *
29  */
30
31 #ifndef __GST_AUDIO_WSINC_LIMIT_H__
32 #define __GST_AUDIO_WSINC_LIMIT_H__
33
34 #include <gst/gst.h>
35 #include <gst/audio/gstaudiofilter.h>
36
37 #include "audiofxbasefirfilter.h"
38
39 G_BEGIN_DECLS
40
41 #define GST_TYPE_AUDIO_WSINC_LIMIT \
42   (gst_audio_wsinclimit_get_type())
43 #define GST_AUDIO_WSINC_LIMIT(obj) \
44   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIO_WSINC_LIMIT,GstAudioWSincLimit))
45 #define GST_AUDIO_WSINC_LIMIT_CLASS(klass) \
46   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AUDIO_WSINC_LIMIT,GstAudioWSincLimitClass))
47 #define GST_IS_AUDIO_WSINC_LIMIT(obj) \
48   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIO_WSINC_LIMIT))
49 #define GST_IS_AUDIO_WSINC_LIMIT_CLASS(klass) \
50   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIO_WSINC_LIMIT))
51
52 typedef struct _GstAudioWSincLimit GstAudioWSincLimit;
53 typedef struct _GstAudioWSincLimitClass GstAudioWSincLimitClass;
54
55 /**
56  * GstAudioWSincLimit:
57  *
58  * Opaque data structure.
59  */
60 struct _GstAudioWSincLimit {
61   GstAudioFXBaseFIRFilter parent;
62
63   gint mode;
64   gint window;
65   gfloat cutoff;
66   gint kernel_length;
67
68   /* < private > */
69   GMutex *lock;
70 };
71
72 struct _GstAudioWSincLimitClass {
73   GstAudioFXBaseFIRFilterClass parent;
74 };
75
76 GType gst_audio_wsinclimit_get_type (void);
77
78 G_END_DECLS
79
80 #endif /* __GST_AUDIO_WSINC_LIMIT_H__ */