Move spectrum plugin from -bad.
authorJan Schmidt <thaytan@mad.scientist.com>
Fri, 8 Feb 2008 03:28:57 +0000 (03:28 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Fri, 8 Feb 2008 03:28:57 +0000 (03:28 +0000)
Original commit message from CVS:
* configure.ac:
* 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/gst-plugins-good-plugins.hierarchy:
* docs/plugins/inspect/plugin-spectrum.xml:
* gst/spectrum/Makefile.am:
* tests/check/Makefile.am:
* tests/check/elements/.cvsignore:
* tests/examples/Makefile.am:
Move spectrum plugin from -bad.
Move examples into tests/examples/spectrum.

12 files changed:
ChangeLog
configure.ac
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/gst-plugins-good-plugins.hierarchy
docs/plugins/inspect/plugin-spectrum.xml [new file with mode: 0644]
gst/spectrum/Makefile.am
tests/check/Makefile.am
tests/check/elements/.gitignore
tests/examples/Makefile.am

index ed9773a..d618cf5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,23 @@
        * docs/plugins/gst-plugins-good-plugins-sections.txt:
        * docs/plugins/gst-plugins-good-plugins.args:
        * docs/plugins/gst-plugins-good-plugins.hierarchy:
+       * docs/plugins/inspect/plugin-spectrum.xml:
+       * gst/spectrum/Makefile.am:
+       * tests/check/Makefile.am:
+       * tests/check/elements/.cvsignore:
+       * tests/examples/Makefile.am:
+
+       Move spectrum plugin from -bad.
+       Move examples into tests/examples/spectrum.
+
+2008-02-08  Jan Schmidt  <jan.schmidt@sun.com>
+
+       * configure.ac:
+       * 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/gst-plugins-good-plugins.hierarchy:
        * docs/plugins/gst-plugins-good-plugins.interfaces:
        * docs/plugins/inspect/plugin-equalizer.xml:
        * gst/equalizer/Makefile.am:
index 0fe788f..2171d26 100644 (file)
@@ -103,6 +103,7 @@ GST_PLUGINS_ALL="\
                rtp     \
                rtsp    \
                smpte   \
+               spectrum \
                udp     \
                videobox \
                videocrop \
@@ -1026,6 +1027,7 @@ gst/qtdemux/Makefile
 gst/rtp/Makefile
 gst/rtsp/Makefile
 gst/smpte/Makefile
+gst/spectrum/Makefile
 gst/udp/Makefile
 gst/videobox/Makefile
 gst/videocrop/Makefile
@@ -1071,6 +1073,7 @@ tests/examples/Makefile
 tests/examples/equalizer/Makefile
 tests/examples/level/Makefile
 tests/examples/rtp/Makefile
+tests/examples/spectrum/Makefile
 tests/files/Makefile
 tests/icles/Makefile
 gconf/Makefile
index 8384b76..81cd8eb 100644 (file)
@@ -124,6 +124,7 @@ EXTRA_HFILES = \
        $(top_srcdir)/gst/qtdemux/qtdemux.h \
        $(top_srcdir)/gst/rtsp/gstrtpdec.h \
        $(top_srcdir)/gst/rtsp/gstrtspsrc.h \
+       $(top_srcdir)/gst/spectrum/gstspectrum.h \
        $(top_srcdir)/gst/udp/gstmultiudpsink.h \
        $(top_srcdir)/gst/udp/gstudpsrc.h \
        $(top_srcdir)/gst/videocrop/gstvideocrop.h \
index b711d34..11aefca 100644 (file)
@@ -69,6 +69,7 @@
     <xi:include href="xml/element-rtspsrc.xml" />
     <xi:include href="xml/element-smokedec.xml" />
     <xi:include href="xml/element-smokeenc.xml" />
+    <xi:include href="xml/element-spectrum.xml" />
     <xi:include href="xml/element-udpsrc.xml" />
     <xi:include href="xml/element-v4l2src.xml" />
     <xi:include href="xml/element-videobalance.xml" />
     <xi:include href="xml/plugin-rtsp.xml" />
     <xi:include href="xml/plugin-shout2send.xml" />
     <xi:include href="xml/plugin-smpte.xml" />
+    <xi:include href="xml/plugin-spectrum.xml" />
     <xi:include href="xml/plugin-speex.xml" />
     <xi:include href="xml/plugin-taglib.xml" />
     <xi:include href="xml/plugin-udp.xml" />
index db844a8..b6d3200 100644 (file)
@@ -881,6 +881,22 @@ GST_IS_SMOKEENC_CLASS
 </SECTION>
 
 <SECTION>
+<FILE>element-spectrum</FILE>
+<TITLE>spectrum</TITLE>
+GstSpectrum
+<SUBSECTION Standard>
+GstSpectrumClass
+GstSpectrumFFTFreeFunc
+GstSpectrumProcessFunc
+GST_SPECTRUM
+GST_SPECTRUM_CLASS
+GST_IS_SPECTRUM
+GST_IS_SPECTRUM_CLASS
+GST_TYPE_SPECTRUM
+gst_spectrum_get_type
+</SECTION>
+
+<SECTION>
 <FILE>element-taglibmux</FILE>
 <TITLE>taglibmux</TITLE>
 GstTagLibMux
index f67e737..38c959e 100644 (file)
 </ARG>
 
 <ARG>
+<NAME>GstSpectrum::bands</NAME>
+<TYPE>guint</TYPE>
+<RANGE></RANGE>
+<FLAGS>rw</FLAGS>
+<NICK>Bands</NICK>
+<BLURB>number of frequency bands.</BLURB>
+<DEFAULT>128</DEFAULT>
+</ARG>
+
+<ARG>
+<NAME>GstSpectrum::interval</NAME>
+<TYPE>guint64</TYPE>
+<RANGE>>= 1</RANGE>
+<FLAGS>rw</FLAGS>
+<NICK>Interval</NICK>
+<BLURB>Interval of time between message posts (in nanoseconds).</BLURB>
+<DEFAULT>100000000</DEFAULT>
+</ARG>
+
+<ARG>
+<NAME>GstSpectrum::message</NAME>
+<TYPE>gboolean</TYPE>
+<RANGE></RANGE>
+<FLAGS>rw</FLAGS>
+<NICK>Message</NICK>
+<BLURB>Post a level message for each passed interval.</BLURB>
+<DEFAULT>TRUE</DEFAULT>
+</ARG>
+
+<ARG>
+<NAME>GstSpectrum::threshold</NAME>
+<TYPE>gint</TYPE>
+<RANGE><= 0</RANGE>
+<FLAGS>rw</FLAGS>
+<NICK>Threshold</NICK>
+<BLURB>dB threshold for result. All lower values will be set to this.</BLURB>
+<DEFAULT>-60</DEFAULT>
+</ARG>
+
+<ARG>
+<NAME>GstSpectrum::message-magnitude</NAME>
+<TYPE>gboolean</TYPE>
+<RANGE></RANGE>
+<FLAGS>rw</FLAGS>
+<NICK>Magnitude</NICK>
+<BLURB>Post the magnitude of the spectrum.</BLURB>
+<DEFAULT>TRUE</DEFAULT>
+</ARG>
+
+<ARG>
+<NAME>GstSpectrum::message-phase</NAME>
+<TYPE>gboolean</TYPE>
+<RANGE></RANGE>
+<FLAGS>rw</FLAGS>
+<NICK>Phase</NICK>
+<BLURB>Post the phase of the spectrum.</BLURB>
+<DEFAULT>FALSE</DEFAULT>
+</ARG>
+
+<ARG>
 <NAME>GstVideoflip::method</NAME>
 <TYPE>GstVideoflipMethod</TYPE>
 <RANGE></RANGE>
index 5a72aa5..a25fee6 100644 (file)
@@ -54,6 +54,7 @@ GObject
             GstIirEqualizerNBands
             GstIirEqualizer3Bands
             GstIirEqualizer10Bands
+          GstSpectrum
         GstAudioPanorama
         GstCairoTimeOverlay
         GstVideoFilter
diff --git a/docs/plugins/inspect/plugin-spectrum.xml b/docs/plugins/inspect/plugin-spectrum.xml
new file mode 100644 (file)
index 0000000..92f9e79
--- /dev/null
@@ -0,0 +1,34 @@
+<plugin>
+  <name>spectrum</name>
+  <description>Run an FFT on the audio signal, output spectrum data</description>
+  <filename>../../gst/spectrum/.libs/libgstspectrum.so</filename>
+  <basename>libgstspectrum.so</basename>
+  <version>0.10.6.1</version>
+  <license>LGPL</license>
+  <source>gst-plugins-good</source>
+  <package>GStreamer Good Plug-ins CVS/prerelease</package>
+  <origin>Unknown package origin</origin>
+  <elements>
+    <element>
+      <name>spectrum</name>
+      <longname>Spectrum analyzer</longname>
+      <class>Filter/Analyzer/Audio</class>
+      <description>Run an FFT on the audio signal, output spectrum data</description>
+      <author>Erik Walthinsen &lt;omega@cse.ogi.edu&gt;, Stefan Kost &lt;ensonic@users.sf.net&gt;, Sebastian Dröge &lt;slomo@circular-chaos.org&gt;</author>
+      <pads>
+        <caps>
+          <name>src</name>
+          <direction>source</direction>
+          <presence>always</presence>
+          <details>audio/x-raw-int, width=(int)16, depth=(int)16, signed=(boolean)true, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]; audio/x-raw-int, width=(int)32, depth=(int)32, signed=(boolean)true, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]; audio/x-raw-float, width=(int){ 32, 64 }, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]</details>
+        </caps>
+        <caps>
+          <name>sink</name>
+          <direction>sink</direction>
+          <presence>always</presence>
+          <details>audio/x-raw-int, width=(int)16, depth=(int)16, signed=(boolean)true, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]; audio/x-raw-int, width=(int)32, depth=(int)32, signed=(boolean)true, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]; audio/x-raw-float, width=(int){ 32, 64 }, endianness=(int)1234, rate=(int)[ 1, 2147483647 ], channels=(int)[ 1, 2147483647 ]</details>
+        </caps>
+      </pads>
+    </element>
+  </elements>
+</plugin>
\ No newline at end of file
index e161abb..451d36d 100644 (file)
@@ -9,16 +9,4 @@ libgstspectrum_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
 
 noinst_HEADERS = gstspectrum.h
 
-if HAVE_GTK
-noinst_PROGRAMS = demo-osssrc demo-audiotest
-endif
-
-demo_osssrc_SOURCES = demo-osssrc.c
-demo_osssrc_CFLAGS  = $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GTK_CFLAGS)
-demo_osssrc_LDFLAGS = $(GST_BASE_LIBS) $(GST_LIBS) $(GTK_LIBS)
-
-demo_audiotest_SOURCES = demo-audiotest.c
-demo_audiotest_CFLAGS  = $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GTK_CFLAGS)
-demo_audiotest_LDFLAGS = $(GST_BASE_LIBS) $(GST_LIBS) $(GTK_LIBS)
-
 EXTRA_DIST = README
index ff791a6..0a5514a 100644 (file)
@@ -69,6 +69,7 @@ check_PROGRAMS = \
        elements/level \
        elements/matroskamux \
        elements/rtp-payloading \
+       elements/spectrum \
        elements/videocrop \
        elements/videofilter \
        pipelines/simple-launch-lines \
index 1a8a5c5..695d8cf 100644 (file)
@@ -21,6 +21,7 @@ id3v2mux
 level
 matroskamux
 rtp-payloading
+spectrum
 sunaudio
 videocrop
 videofilter
index 1f9144f..aad6dc1 100644 (file)
@@ -1,3 +1,3 @@
-SUBDIRS = level rtp equalizer
+SUBDIRS = equalizer level rtp spectrum
 
-DIST_SUBDIRS = level rtp equalizer
+DIST_SUBDIRS = equalizer level rtp spectrum