Commit 22bea9fe authored by Jan Schmidt's avatar Jan Schmidt
Browse files

Rename audiochebyshevfreqband -> audiochebband and audiochebyshevfreqlimit ->...

Rename audiochebyshevfreqband -> audiochebband and audiochebyshevfreqlimit -> audiocheblimit and do the requisite CVS...

Original commit message from CVS:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-good-plugins-docs.sgml:
* docs/plugins/gst-plugins-good-plugins-sections.txt:
* docs/plugins/gst-plugins-good-plugins.args:
* docs/plugins/inspect/plugin-audiofx.xml:
* gst/audiofx/Makefile.am:
* gst/audiofx/audiochebband.c:
* gst/audiofx/audiochebband.h:
* gst/audiofx/audiocheblimit.c:
* gst/audiofx/audiocheblimit.h:
* gst/audiofx/audiochebyshevfreqband.c:
* gst/audiofx/audiochebyshevfreqband.h:
* gst/audiofx/audiochebyshevfreqlimit.c:
* gst/audiofx/audiochebyshevfreqlimit.h:
* gst/audiofx/audiofx.c:
* tests/check/Makefile.am:
* tests/check/elements/.cvsignore:
* tests/check/elements/audiochebband.c:
* tests/check/elements/audiocheblimit.c:
* tests/check/elements/audiochebyshevfreqband.c:
* tests/check/elements/audiochebyshevfreqlimit.c:
Rename audiochebyshevfreqband -> audiochebband and
audiochebyshevfreqlimit -> audiocheblimit and do the requisite CVS
surgery.
Closes: #491811
parent 8921eb2c
2008-02-06 Jan Schmidt <jan.schmidt@sun.com>
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-good-plugins-docs.sgml:
* docs/plugins/gst-plugins-good-plugins-sections.txt:
* docs/plugins/gst-plugins-good-plugins.args:
* docs/plugins/inspect/plugin-audiofx.xml:
* gst/audiofx/Makefile.am:
* gst/audiofx/audiochebband.c:
* gst/audiofx/audiochebband.h:
* gst/audiofx/audiocheblimit.c:
* gst/audiofx/audiocheblimit.h:
* gst/audiofx/audiochebyshevfreqband.c:
* gst/audiofx/audiochebyshevfreqband.h:
* gst/audiofx/audiochebyshevfreqlimit.c:
* gst/audiofx/audiochebyshevfreqlimit.h:
* gst/audiofx/audiofx.c:
* tests/check/Makefile.am:
* tests/check/elements/.cvsignore:
* tests/check/elements/audiochebband.c:
* tests/check/elements/audiocheblimit.c:
* tests/check/elements/audiochebyshevfreqband.c:
* tests/check/elements/audiochebyshevfreqlimit.c:
Rename audiochebyshevfreqband -> audiochebband and
audiochebyshevfreqlimit -> audiocheblimit and do the requisite CVS
surgery.
Closes: #491811
2008-02-05 Wim Taymans <wim.taymans@collabora.co.uk>
Patch by: orjan <orjanf at axis dot com>
......
common @ 8b37d7ee
Subproject commit 3c5473161ce19a3530bad279b842d542895b1500
Subproject commit 8b37d7ee833fab1d25b484d8574df3dae231b5f2
......@@ -100,8 +100,8 @@ EXTRA_HFILES = \
$(top_srcdir)/gst/audiofx/audiodynamic.h \
$(top_srcdir)/gst/audiofx/audioinvert.h \
$(top_srcdir)/gst/audiofx/audiopanorama.h \
$(top_srcdir)/gst/audiofx/audiochebyshevfreqlimit.h \
$(top_srcdir)/gst/audiofx/audiochebyshevfreqband.h \
$(top_srcdir)/gst/audiofx/audiocheblimit.h \
$(top_srcdir)/gst/audiofx/audiochebband.h \
$(top_srcdir)/gst/autodetect/gstautoaudiosink.h \
$(top_srcdir)/gst/autodetect/gstautovideosink.h \
$(top_srcdir)/gst/avi/gstavidemux.h \
......
......@@ -16,8 +16,8 @@
<xi:include href="xml/element-apedemux.xml" />
<xi:include href="xml/element-apev2mux.xml" />
<xi:include href="xml/element-audioamplify.xml" />
<xi:include href="xml/element-audiochebyshevfreqband.xml" />
<xi:include href="xml/element-audiochebyshevfreqlimit.xml" />
<xi:include href="xml/element-audiochebband.xml" />
<xi:include href="xml/element-audiocheblimit.xml" />
<xi:include href="xml/element-audiodynamic.xml" />
<xi:include href="xml/element-audioinvert.xml" />
<xi:include href="xml/element-audiopanorama.xml" />
......
......@@ -58,35 +58,35 @@ gst_audio_amplify_get_type
</SECTION>
<SECTION>
<FILE>element-audiochebyshevfreqband</FILE>
<TITLE>audiochebyshevfreqband</TITLE>
GstAudioChebyshevFreqBand
<SUBSECTION Standard>
GstAudioChebyshevFreqBandClass
GstAudioChebyshevFreqBandProcessFunc
GST_AUDIO_CHEBYSHEV_FREQ_BAND
GST_AUDIO_CHEBYSHEV_FREQ_BAND_CLASS
GST_AUDIO_CHEBYSHEV_FREQ_BAND_GET_CLASS
GST_IS_AUDIO_CHEBYSHEV_FREQ_BAND
GST_IS_AUDIO_CHEBYSHEV_FREQ_BAND_CLASS
GST_TYPE_AUDIO_CHEBYSHEV_FREQ_BAND
gst_audio_chebyshev_freq_band_get_type
</SECTION>
<SECTION>
<FILE>element-audiochebyshevfreqlimit</FILE>
<TITLE>audiochebyshevfreqlimit</TITLE>
GstAudioChebyshevFreqLimit
<SUBSECTION Standard>
GstAudioChebyshevFreqLimitClass
GstAudioChebyshevFreqLimitProcessFunc
GST_AUDIO_CHEBYSHEV_FREQ_LIMIT
GST_AUDIO_CHEBYSHEV_FREQ_LIMIT_CLASS
GST_AUDIO_CHEBYSHEV_FREQ_LIMIT_GET_CLASS
GST_IS_AUDIO_CHEBYSHEV_FREQ_LIMIT
GST_IS_AUDIO_CHEBYSHEV_FREQ_LIMIT_CLASS
GST_TYPE_AUDIO_CHEBYSHEV_FREQ_LIMIT
gst_audio_chebyshev_freq_limit_get_type
<FILE>element-audiochebband</FILE>
<TITLE>audiochebband</TITLE>
GstAudioChebBand
<SUBSECTION Standard>
GstAudioChebBandClass
GstAudioChebBandProcessFunc
GST_AUDIO_CHEB_BAND
GST_AUDIO_CHEB_BAND_CLASS
GST_AUDIO_CHEB_BAND_GET_CLASS
GST_IS_AUDIO_CHEB_BAND
GST_IS_AUDIO_CHEB_BAND_CLASS
GST_TYPE_AUDIO_CHEB_BAND
gst_audio_cheb_band_get_type
</SECTION>
<SECTION>
<FILE>element-audiocheblimit</FILE>
<TITLE>audiocheblimit</TITLE>
GstAudioChebLimit
<SUBSECTION Standard>
GstAudioChebLimitClass
GstAudioChebLimitProcessFunc
GST_AUDIO_CHEB_LIMIT
GST_AUDIO_CHEB_LIMIT_CLASS
GST_AUDIO_CHEB_LIMIT_GET_CLASS
GST_IS_AUDIO_CHEB_LIMIT
GST_IS_AUDIO_CHEB_LIMIT_CLASS
GST_TYPE_AUDIO_CHEB_LIMIT
gst_audio_cheb_limit_get_type
</SECTION>
<SECTION>
......
......@@ -17399,7 +17399,7 @@
</ARG>
<ARG>
<NAME>GstAudioChebyshevFreqBand::lower-frequency</NAME>
<NAME>GstAudioChebBand::lower-frequency</NAME>
<TYPE>gfloat</TYPE>
<RANGE>[0,100000]</RANGE>
<FLAGS>rw</FLAGS>
......@@ -17409,8 +17409,8 @@
</ARG>
<ARG>
<NAME>GstAudioChebyshevFreqBand::mode</NAME>
<TYPE>GstAudioChebyshevFreqBandMode</TYPE>
<NAME>GstAudioChebBand::mode</NAME>
<TYPE>GstAudioChebBandMode</TYPE>
<RANGE></RANGE>
<FLAGS>rw</FLAGS>
<NICK>Mode</NICK>
......@@ -17419,7 +17419,7 @@
</ARG>
<ARG>
<NAME>GstAudioChebyshevFreqBand::poles</NAME>
<NAME>GstAudioChebBand::poles</NAME>
<TYPE>gint</TYPE>
<RANGE>[4,32]</RANGE>
<FLAGS>rw</FLAGS>
......@@ -17429,7 +17429,7 @@
</ARG>
<ARG>
<NAME>GstAudioChebyshevFreqBand::ripple</NAME>
<NAME>GstAudioChebBand::ripple</NAME>
<TYPE>gfloat</TYPE>
<RANGE>[0,200]</RANGE>
<FLAGS>rw</FLAGS>
......@@ -17439,7 +17439,7 @@
</ARG>
<ARG>
<NAME>GstAudioChebyshevFreqBand::type</NAME>
<NAME>GstAudioChebBand::type</NAME>
<TYPE>gint</TYPE>
<RANGE>[1,2]</RANGE>
<FLAGS>rw</FLAGS>
......@@ -17449,7 +17449,7 @@
</ARG>
<ARG>
<NAME>GstAudioChebyshevFreqBand::upper-frequency</NAME>
<NAME>GstAudioChebBand::upper-frequency</NAME>
<TYPE>gfloat</TYPE>
<RANGE>[0,100000]</RANGE>
<FLAGS>rw</FLAGS>
......@@ -17459,7 +17459,7 @@
</ARG>
<ARG>
<NAME>GstAudioChebyshevFreqLimit::cutoff</NAME>
<NAME>GstAudioChebLimit::cutoff</NAME>
<TYPE>gfloat</TYPE>
<RANGE>[0,100000]</RANGE>
<FLAGS>rw</FLAGS>
......@@ -17469,8 +17469,8 @@
</ARG>
<ARG>
<NAME>GstAudioChebyshevFreqLimit::mode</NAME>
<TYPE>GstAudioChebyshevFreqLimitMode</TYPE>
<NAME>GstAudioChebLimit::mode</NAME>
<TYPE>GstAudioChebLimitMode</TYPE>
<RANGE></RANGE>
<FLAGS>rw</FLAGS>
<NICK>Mode</NICK>
......@@ -17479,7 +17479,7 @@
</ARG>
<ARG>
<NAME>GstAudioChebyshevFreqLimit::poles</NAME>
<NAME>GstAudioChebLimit::poles</NAME>
<TYPE>gint</TYPE>
<RANGE>[2,32]</RANGE>
<FLAGS>rw</FLAGS>
......@@ -17489,7 +17489,7 @@
</ARG>
<ARG>
<NAME>GstAudioChebyshevFreqLimit::ripple</NAME>
<NAME>GstAudioChebLimit::ripple</NAME>
<TYPE>gfloat</TYPE>
<RANGE>[0,200]</RANGE>
<FLAGS>rw</FLAGS>
......@@ -17499,7 +17499,7 @@
</ARG>
<ARG>
<NAME>GstAudioChebyshevFreqLimit::type</NAME>
<NAME>GstAudioChebLimit::type</NAME>
<TYPE>gint</TYPE>
<RANGE>[1,2]</RANGE>
<FLAGS>rw</FLAGS>
......
......@@ -14,59 +14,59 @@
<longname>AudioAmplify</longname>
<class>Filter/Effect/Audio</class>
<description>Amplifies an audio stream by a given factor</description>
<author>Sebastian Dr303266ge &lt;slomo@circular-chaos.org&gt;</author>
<author>Sebastian Dröge &lt;slomo@circular-chaos.org&gt;</author>
<pads>
<caps>
<name>sink</name>
<direction>sink</direction>
<name>src</name>
<direction>source</direction>
<presence>always</presence>
<details>audio/x-raw-int, depth=(int)16, width=(int)16, endianness=(int)1234, signed=(boolean)true, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]; audio/x-raw-float, width=(int)32, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]</details>
</caps>
<caps>
<name>src</name>
<direction>source</direction>
<name>sink</name>
<direction>sink</direction>
<presence>always</presence>
<details>audio/x-raw-int, depth=(int)16, width=(int)16, endianness=(int)1234, signed=(boolean)true, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]; audio/x-raw-float, width=(int)32, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]</details>
</caps>
</pads>
</element>
<element>
<name>audiochebyshevfreqband</name>
<longname>AudioChebyshevFreqBand</longname>
<name>audiochebband</name>
<longname>AudioChebBand</longname>
<class>Filter/Effect/Audio</class>
<description>Chebyshev band pass and band reject filter</description>
<author>Sebastian Dr303266ge &lt;slomo@circular-chaos.org&gt;</author>
<author>Sebastian Dröge &lt;slomo@circular-chaos.org&gt;</author>
<pads>
<caps>
<name>sink</name>
<direction>sink</direction>
<name>src</name>
<direction>source</direction>
<presence>always</presence>
<details>audio/x-raw-float, width=(int){ 32, 64 }, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]</details>
</caps>
<caps>
<name>src</name>
<direction>source</direction>
<name>sink</name>
<direction>sink</direction>
<presence>always</presence>
<details>audio/x-raw-float, width=(int){ 32, 64 }, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]</details>
</caps>
</pads>
</element>
<element>
<name>audiochebyshevfreqlimit</name>
<longname>AudioChebyshevFreqLimit</longname>
<name>audiocheblimit</name>
<longname>AudioChebLimit</longname>
<class>Filter/Effect/Audio</class>
<description>Chebyshev low pass and high pass filter</description>
<author>Sebastian Dr303266ge &lt;slomo@circular-chaos.org&gt;</author>
<author>Sebastian Dröge &lt;slomo@circular-chaos.org&gt;</author>
<pads>
<caps>
<name>sink</name>
<direction>sink</direction>
<name>src</name>
<direction>source</direction>
<presence>always</presence>
<details>audio/x-raw-float, width=(int){ 32, 64 }, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]</details>
</caps>
<caps>
<name>src</name>
<direction>source</direction>
<name>sink</name>
<direction>sink</direction>
<presence>always</presence>
<details>audio/x-raw-float, width=(int){ 32, 64 }, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]</details>
</caps>
......@@ -77,17 +77,17 @@
<longname>AudioDynamic</longname>
<class>Filter/Effect/Audio</class>
<description>Compressor and Expander</description>
<author>Sebastian Dr303266ge &lt;slomo@circular-chaos.org&gt;</author>
<author>Sebastian Dröge &lt;slomo@circular-chaos.org&gt;</author>
<pads>
<caps>
<name>sink</name>
<direction>sink</direction>
<name>src</name>
<direction>source</direction>
<presence>always</presence>
<details>audio/x-raw-int, depth=(int)16, width=(int)16, endianness=(int)1234, signed=(boolean)true, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]; audio/x-raw-float, width=(int)32, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]</details>
</caps>
<caps>
<name>src</name>
<direction>source</direction>
<name>sink</name>
<direction>sink</direction>
<presence>always</presence>
<details>audio/x-raw-int, depth=(int)16, width=(int)16, endianness=(int)1234, signed=(boolean)true, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]; audio/x-raw-float, width=(int)32, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]</details>
</caps>
......@@ -98,17 +98,17 @@
<longname>AudioInvert</longname>
<class>Filter/Effect/Audio</class>
<description>Swaps upper and lower half of audio samples</description>
<author>Sebastian Dr303266ge &lt;slomo@circular-chaos.org&gt;</author>
<author>Sebastian Dröge &lt;slomo@circular-chaos.org&gt;</author>
<pads>
<caps>
<name>sink</name>
<direction>sink</direction>
<name>src</name>
<direction>source</direction>
<presence>always</presence>
<details>audio/x-raw-int, depth=(int)16, width=(int)16, endianness=(int)1234, signed=(boolean)true, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]; audio/x-raw-float, width=(int)32, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]</details>
</caps>
<caps>
<name>src</name>
<direction>source</direction>
<name>sink</name>
<direction>sink</direction>
<presence>always</presence>
<details>audio/x-raw-int, depth=(int)16, width=(int)16, endianness=(int)1234, signed=(boolean)true, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]; audio/x-raw-float, width=(int)32, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]</details>
</caps>
......@@ -121,18 +121,18 @@
<description>Positions audio streams in the stereo panorama</description>
<author>Stefan Kost &lt;ensonic@users.sf.net&gt;</author>
<pads>
<caps>
<name>sink</name>
<direction>sink</direction>
<presence>always</presence>
<details>audio/x-raw-float, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2 ], endianness=(int)1234, width=(int)32; audio/x-raw-int, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2 ], endianness=(int)1234, width=(int)16, depth=(int)16, signed=(boolean)true</details>
</caps>
<caps>
<name>src</name>
<direction>source</direction>
<presence>always</presence>
<details>audio/x-raw-float, rate=(int)[ 1, 2147483647 ], channels=(int)2, endianness=(int)1234, width=(int)32; audio/x-raw-int, rate=(int)[ 1, 2147483647 ], channels=(int)2, endianness=(int)1234, width=(int)16, depth=(int)16, signed=(boolean)true</details>
</caps>
<caps>
<name>sink</name>
<direction>sink</direction>
<presence>always</presence>
<details>audio/x-raw-float, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2 ], endianness=(int)1234, width=(int)32; audio/x-raw-int, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2 ], endianness=(int)1234, width=(int)16, depth=(int)16, signed=(boolean)true</details>
</caps>
</pads>
</element>
</elements>
......
......@@ -8,8 +8,8 @@ libgstaudiofx_la_SOURCES = audiofx.c\
audioinvert.c \
audioamplify.c \
audiodynamic.c \
audiochebyshevfreqlimit.c \
audiochebyshevfreqband.c
audiocheblimit.c \
audiochebband.c
# flags used to compile this plugin
libgstaudiofx_la_CFLAGS = $(GST_CFLAGS) \
......@@ -29,6 +29,6 @@ noinst_HEADERS = audiopanorama.h \
audioinvert.h \
audioamplify.h \
audiodynamic.h \
audiochebyshevfreqlimit.h \
audiochebyshevfreqband.h
audiocheblimit.h \
audiochebband.h
......@@ -33,7 +33,7 @@
*/
/**
* SECTION:element-audiochebyshevfreqband
* SECTION:element-audiochebband
* @short_description: Chebyshev band pass and band reject filter
*
* <refsect2>
......@@ -65,9 +65,9 @@
* <title>Example launch line</title>
* <para>
* <programlisting>
* gst-launch audiotestsrc freq=1500 ! audioconvert ! audiochebyshevfreqband mode=band-pass lower-frequency=1000 upper-frequenc=6000 poles=4 ! audioconvert ! alsasink
* gst-launch filesrc location="melo1.ogg" ! oggdemux ! vorbisdec ! audioconvert ! audiochebyshevfreqband mode=band-reject lower-frequency=1000 upper-frequency=4000 ripple=0.2 ! audioconvert ! alsasink
* gst-launch audiotestsrc wave=white-noise ! audioconvert ! audiochebyshevfreqband mode=band-pass lower-frequency=1000 upper-frequency=4000 type=2 ! audioconvert ! alsasink
* gst-launch audiotestsrc freq=1500 ! audioconvert ! audiochebband mode=band-pass lower-frequency=1000 upper-frequenc=6000 poles=4 ! audioconvert ! alsasink
* gst-launch filesrc location="melo1.ogg" ! oggdemux ! vorbisdec ! audioconvert ! audiochebband mode=band-reject lower-frequency=1000 upper-frequency=4000 ripple=0.2 ! audioconvert ! alsasink
* gst-launch audiotestsrc wave=white-noise ! audioconvert ! audiochebband mode=band-pass lower-frequency=1000 upper-frequency=4000 type=2 ! audioconvert ! alsasink
* </programlisting>
* </para>
* </refsect2>
......@@ -85,13 +85,13 @@
#include <math.h>
#include "audiochebyshevfreqband.h"
#include "audiochebband.h"
#define GST_CAT_DEFAULT gst_audio_chebyshev_freq_band_debug
#define GST_CAT_DEFAULT gst_audio_cheb_band_debug
GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
static const GstElementDetails element_details =
GST_ELEMENT_DETAILS ("AudioChebyshevFreqBand",
GST_ELEMENT_DETAILS ("AudioChebBand",
"Filter/Effect/Audio",
"Chebyshev band pass and band reject filter",
"Sebastian Dröge <slomo@circular-chaos.org>");
......@@ -122,26 +122,25 @@ enum
" channels = (int) [ 1, MAX ]"
#define DEBUG_INIT(bla) \
GST_DEBUG_CATEGORY_INIT (gst_audio_chebyshev_freq_band_debug, "audiochebyshevfreqband", 0, "audiochebyshevfreqband element");
GST_DEBUG_CATEGORY_INIT (gst_audio_cheb_band_debug, "audiochebband", 0, "audiochebband element");
GST_BOILERPLATE_FULL (GstAudioChebyshevFreqBand, gst_audio_chebyshev_freq_band,
GST_BOILERPLATE_FULL (GstAudioChebBand, gst_audio_cheb_band,
GstAudioFilter, GST_TYPE_AUDIO_FILTER, DEBUG_INIT);
static void gst_audio_chebyshev_freq_band_set_property (GObject * object,
static void gst_audio_cheb_band_set_property (GObject * object,
guint prop_id, const GValue * value, GParamSpec * pspec);
static void gst_audio_chebyshev_freq_band_get_property (GObject * object,
static void gst_audio_cheb_band_get_property (GObject * object,
guint prop_id, GValue * value, GParamSpec * pspec);
static gboolean gst_audio_chebyshev_freq_band_setup (GstAudioFilter * filter,
static gboolean gst_audio_cheb_band_setup (GstAudioFilter * filter,
GstRingBufferSpec * format);
static GstFlowReturn
gst_audio_chebyshev_freq_band_transform_ip (GstBaseTransform * base,
GstBuffer * buf);
static gboolean gst_audio_chebyshev_freq_band_start (GstBaseTransform * base);
gst_audio_cheb_band_transform_ip (GstBaseTransform * base, GstBuffer * buf);
static gboolean gst_audio_cheb_band_start (GstBaseTransform * base);
static void process_64 (GstAudioChebyshevFreqBand * filter,
static void process_64 (GstAudioChebBand * filter,
gdouble * data, guint num_samples);
static void process_32 (GstAudioChebyshevFreqBand * filter,
static void process_32 (GstAudioChebBand * filter,
gfloat * data, guint num_samples);
enum
......@@ -150,9 +149,9 @@ enum
MODE_BAND_REJECT
};
#define GST_TYPE_AUDIO_CHEBYSHEV_FREQ_BAND_MODE (gst_audio_chebyshev_freq_band_mode_get_type ())
#define GST_TYPE_AUDIO_CHEBYSHEV_FREQ_BAND_MODE (gst_audio_cheb_band_mode_get_type ())
static GType
gst_audio_chebyshev_freq_band_mode_get_type (void)
gst_audio_cheb_band_mode_get_type (void)
{
static GType gtype = 0;
......@@ -165,7 +164,7 @@ gst_audio_chebyshev_freq_band_mode_get_type (void)
{0, NULL, NULL}
};
gtype = g_enum_register_static ("GstAudioChebyshevFreqBandMode", values);
gtype = g_enum_register_static ("GstAudioChebBandMode", values);
}
return gtype;
}
......@@ -173,7 +172,7 @@ gst_audio_chebyshev_freq_band_mode_get_type (void)
/* GObject vmethod implementations */
static void
gst_audio_chebyshev_freq_band_base_init (gpointer klass)
gst_audio_cheb_band_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
GstCaps *caps;
......@@ -187,9 +186,9 @@ gst_audio_chebyshev_freq_band_base_init (gpointer klass)
}
static void
gst_audio_chebyshev_freq_band_dispose (GObject * object)
gst_audio_cheb_band_dispose (GObject * object)
{
GstAudioChebyshevFreqBand *filter = GST_AUDIO_CHEBYSHEV_FREQ_BAND (object);
GstAudioChebBand *filter = GST_AUDIO_CHEB_BAND (object);
if (filter->a) {
g_free (filter->a);
......@@ -202,7 +201,7 @@ gst_audio_chebyshev_freq_band_dispose (GObject * object)
}
if (filter->channels) {
GstAudioChebyshevFreqBandChannelCtx *ctx;
GstAudioChebBandChannelCtx *ctx;
gint i, channels = GST_AUDIO_FILTER (filter)->format.channels;
for (i = 0; i < channels; i++) {
......@@ -219,8 +218,7 @@ gst_audio_chebyshev_freq_band_dispose (GObject * object)
}
static void
gst_audio_chebyshev_freq_band_class_init (GstAudioChebyshevFreqBandClass *
klass)
gst_audio_cheb_band_class_init (GstAudioChebBandClass * klass)
{
GObjectClass *gobject_class;
GstBaseTransformClass *trans_class;
......@@ -230,9 +228,9 @@ gst_audio_chebyshev_freq_band_class_init (GstAudioChebyshevFreqBandClass *
trans_class = (GstBaseTransformClass *) klass;
filter_class = (GstAudioFilterClass *) klass;
gobject_class->set_property = gst_audio_chebyshev_freq_band_set_property;
gobject_class->get_property = gst_audio_chebyshev_freq_band_get_property;
gobject_class->dispose = gst_audio_chebyshev_freq_band_dispose;
gobject_class->set_property = gst_audio_cheb_band_set_property;
gobject_class->get_property = gst_audio_cheb_band_get_property;
gobject_class->dispose = gst_audio_cheb_band_dispose;
g_object_class_install_property (gobject_class, PROP_MODE,
g_param_spec_enum ("mode", "Mode",
......@@ -265,15 +263,15 @@ gst_audio_chebyshev_freq_band_class_init (GstAudioChebyshevFreqBandClass *
"Number of poles to use, will be rounded up to the next multiply of four",
4, 32, 4, G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE));
filter_class->setup = GST_DEBUG_FUNCPTR (gst_audio_chebyshev_freq_band_setup);
filter_class->setup = GST_DEBUG_FUNCPTR (gst_audio_cheb_band_setup);
trans_class->transform_ip =
GST_DEBUG_FUNCPTR (gst_audio_chebyshev_freq_band_transform_ip);
trans_class->start = GST_DEBUG_FUNCPTR (gst_audio_chebyshev_freq_band_start);
GST_DEBUG_FUNCPTR (gst_audio_cheb_band_transform_ip);
trans_class->start = GST_DEBUG_FUNCPTR (gst_audio_cheb_band_start);
}
static void
gst_audio_chebyshev_freq_band_init (GstAudioChebyshevFreqBand * filter,
GstAudioChebyshevFreqBandClass * klass)
gst_audio_cheb_band_init (GstAudioChebBand * filter,
GstAudioChebBandClass * klass)
{
filter->lower_frequency = filter->upper_frequency = 0.0;
filter->mode = MODE_BAND_PASS;
......@@ -289,7 +287,7 @@ gst_audio_chebyshev_freq_band_init (GstAudioChebyshevFreqBand * filter,
}
static void
generate_biquad_coefficients (GstAudioChebyshevFreqBand * filter,
generate_biquad_coefficients (GstAudioChebBand * filter,
gint p, gdouble * a0, gdouble * a1, gdouble * a2, gdouble * a3,
gdouble * a4, gdouble * b1, gdouble * b2, gdouble * b3, gdouble * b4)
{
......@@ -520,7 +518,7 @@ calculate_gain (gdouble * a, gdouble * b, gint num_a, gint num_b, gdouble zr,
}
static void
generate_coefficients (GstAudioChebyshevFreqBand * filter)
generate_coefficients (GstAudioChebBand * filter)
{
gint channels = GST_AUDIO_FILTER (filter)->format.channels;
......@@ -535,7 +533,7 @@ generate_coefficients (GstAudioChebyshevFreqBand * filter)
}
if (filter->channels) {
GstAudioChebyshevFreqBandChannelCtx *ctx;
GstAudioChebBandChannelCtx *ctx;
gint i;
for (i = 0; i < channels; i++) {
......@@ -553,7 +551,7 @@ generate_coefficients (GstAudioChebyshevFreqBand * filter)
filter->a = g_new0 (gdouble, 1);
filter->a[0] = 1.0;
filter->num_b = 0;
filter->channels = g_new0 (GstAudioChebyshevFreqBandChannelCtx, channels);
filter->channels = g_new0 (GstAudioChebBandChannelCtx, channels);
GST_LOG_OBJECT (filter, "rate was not set yet");
return;
}
......@@ -565,7 +563,7 @@ generate_coefficients (GstAudioChebyshevFreqBand * filter)
filter->a = g_new0 (gdouble, 1);
filter->a[0] = (filter->mode == MODE_BAND_PASS) ? 0.0 : 1.0;
filter->num_b = 0;
filter->channels = g_new0 (GstAudioChebyshevFreqBandChannelCtx, channels);
filter->channels = g_new0 (GstAudioChebBandChannelCtx, channels);
GST_LOG_OBJECT (filter, "frequency band had no or negative dimension");
return;
}
......@@ -591,9 +589,9 @@ generate_coefficients (GstAudioChebyshevFreqBand * filter)
filter->num_b = np + 1;
filter->b = b = g_new0 (gdouble, np + 5);
filter->channels = g_new0 (GstAudioChebyshevFreqBandChannelCtx, channels);
filter->channels = g_new0 (GstAudioChebBandChannelCtx, channels);
for (i = 0; i < channels; i++) {
GstAudioChebyshevFreqBandChannelCtx *ctx = &filter->channels[i];
GstAudioChebBandChannelCtx *ctx = &filter->channels[i];
ctx->x = g_new0 (gdouble, np + 1);
ctx->y = g_new0 (gdouble, np + 1);
......@@ -714,10 +712,10 @@ generate_coefficients (GstAudioChebyshevFreqBand * filter)
}
static void
gst_audio_chebyshev_freq_band_set_property (GObject * object, guint prop_id,
gst_audio_cheb_band_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
GstAudioChebyshevFreqBand *filter = GST_AUDIO_CHEBYSHEV_FREQ_BAND (object);
GstAudioChebBand *filter = GST_AUDIO_CHEB_BAND (object);