gstreamer/gst/speexresample
Sebastian Dröge 153406eef5 Rename the moved speexresample to audioresample, integrate into the build system and remove the old audioresample fro...
Original commit message from CVS:
* configure.ac:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-base-plugins-sections.txt:
* docs/plugins/gst-plugins-base-plugins.args:
* docs/plugins/gst-plugins-base-plugins.hierarchy:
* docs/plugins/gst-plugins-base-plugins.interfaces:
* docs/plugins/gst-plugins-base-plugins.prerequisites:
* docs/plugins/inspect/plugin-adder.xml:
* docs/plugins/inspect/plugin-alsa.xml:
* docs/plugins/inspect/plugin-audioconvert.xml:
* docs/plugins/inspect/plugin-audiorate.xml:
* docs/plugins/inspect/plugin-audioresample.xml:
* docs/plugins/inspect/plugin-audiotestsrc.xml:
* docs/plugins/inspect/plugin-cdparanoia.xml:
* docs/plugins/inspect/plugin-decodebin.xml:
* docs/plugins/inspect/plugin-ffmpegcolorspace.xml:
* docs/plugins/inspect/plugin-gdp.xml:
* docs/plugins/inspect/plugin-gio.xml:
* docs/plugins/inspect/plugin-gnomevfs.xml:
* docs/plugins/inspect/plugin-libvisual.xml:
* docs/plugins/inspect/plugin-ogg.xml:
* docs/plugins/inspect/plugin-pango.xml:
* docs/plugins/inspect/plugin-playback.xml:
* docs/plugins/inspect/plugin-queue2.xml:
* docs/plugins/inspect/plugin-subparse.xml:
* docs/plugins/inspect/plugin-tcp.xml:
* docs/plugins/inspect/plugin-theora.xml:
* docs/plugins/inspect/plugin-typefindfunctions.xml:
* docs/plugins/inspect/plugin-uridecodebin.xml:
* docs/plugins/inspect/plugin-video4linux.xml:
* docs/plugins/inspect/plugin-videorate.xml:
* docs/plugins/inspect/plugin-videoscale.xml:
* docs/plugins/inspect/plugin-videotestsrc.xml:
* docs/plugins/inspect/plugin-volume.xml:
* docs/plugins/inspect/plugin-vorbis.xml:
* docs/plugins/inspect/plugin-ximagesink.xml:
* docs/plugins/inspect/plugin-xvimagesink.xml:
* gst/speexresample/gstspeexresample.c: (plugin_init):
* gst/speexresample/Makefile.am:
* tests/check/Makefile.am:
* tests/check/elements/speexresample.c: (setup_speexresample),
(GST_START_TEST), (test_pipeline):
Rename the moved speexresample to audioresample, integrate into the
build system and remove the old audioresample from the build system.
Fixes bug #558124, #385061, #346218, #116051.
2008-11-27 16:57:09 +00:00
..
arch.h Add support for double samples as input and refactor the usage of the different compilation flavors of the speex resa... 2008-10-30 12:43:44 +00:00
fixed_arm4.h gst/speexresample/: Update Speex resampler with latest version from Speex GIT. 2008-10-28 11:46:28 +00:00
fixed_arm5e.h gst/speexresample/: Update Speex resampler with latest version from Speex GIT. 2008-10-28 11:46:28 +00:00
fixed_bfin.h gst/speexresample/: Update Speex resampler with latest version from Speex GIT. 2008-10-28 11:46:28 +00:00
fixed_debug.h gst/speexresample/: Update Speex resampler with latest version from Speex GIT. 2008-10-28 11:46:28 +00:00
fixed_generic.h gst/speexresample/: Update Speex resampler with latest version from Speex GIT. 2008-10-28 11:46:28 +00:00
gstspeexresample.c Rename the moved speexresample to audioresample, integrate into the build system and remove the old audioresample fro... 2008-11-27 16:57:09 +00:00
gstspeexresample.h gst/speexresample/: Add missing headers to Makefile.am. 2008-11-01 19:38:36 +00:00
Makefile.am Rename the moved speexresample to audioresample, integrate into the build system and remove the old audioresample fro... 2008-11-27 16:57:09 +00:00
README gst/speexresample/: Update Speex resampler with latest version from Speex GIT. 2008-10-28 11:46:28 +00:00
resample.c gst/speexresample/: Add missing headers to Makefile.am. 2008-11-01 19:38:36 +00:00
resample_sse.h gst/speexresample/gstspeexresample.c: Fix format string and arguments. 2008-11-02 09:19:24 +00:00
speex_resampler.h Add support for double samples as input and refactor the usage of the different compilation flavors of the speex resa... 2008-10-30 12:43:44 +00:00
speex_resampler_double.c gst/speexresample/: Add missing headers to Makefile.am. 2008-11-01 19:38:36 +00:00
speex_resampler_float.c gst/speexresample/: Add missing headers to Makefile.am. 2008-11-01 19:38:36 +00:00
speex_resampler_int.c gst/speexresample/: Add missing headers to Makefile.am. 2008-11-01 19:38:36 +00:00
speex_resampler_wrapper.h gst/speexresample/: Add missing headers to Makefile.am. 2008-11-01 19:38:36 +00:00

 arch.h            
 fixed_arm4.h      
 fixed_arm5e.h     
 fixed_bfin.h      
 fixed_debug.h     
 fixed_generic.h   
 resample.c        
 speex_resampler.h 

are taken from http://git.xiph.org/speex.git/ as of 2008-10-28.

The only changes are:

--- arch.h	2008-10-28 12:21:37.000000000 +0100
+++ arch.h	2008-10-28 12:27:56.000000000 +0100
@@ -78,7 +78,10 @@
 #include "../include/speex/speex_types.h"
 #endif
 
+#ifndef ABS
 #define ABS(x) ((x) < 0 ? (-(x)) : (x))      /**< Absolute integer value. */
+#endif
+
 #define ABS16(x) ((x) < 0 ? (-(x)) : (x))    /**< Absolute 16-bit value.  */
 #define MIN16(a,b) ((a) < (b) ? (a) : (b))   /**< Maximum 16-bit value.   */
 #define MAX16(a,b) ((a) > (b) ? (a) : (b))   /**< Maximum 16-bit value.   */
--- resample.c	2008-10-28 12:21:35.000000000 +0100
+++ resample.c	2008-10-28 12:33:46.000000000 +0100
@@ -63,22 +63,27 @@
 
 #ifdef OUTSIDE_SPEEX
 #include <stdlib.h>
-static void *
+
+#include <glib.h>
+
+#define EXPORT
+
+static inline void *
 speex_alloc (int size)
 {
-  return calloc (size, 1);
+  return g_malloc0 (size);
 }
 
-static void *
+static inline void *
 speex_realloc (void *ptr, int size)
 {
-  return realloc (ptr, size);
+  return g_realloc (ptr, size);
 }
 
-static void
+static inline void
 speex_free (void *ptr)
 {
-  free (ptr);
+  g_free (ptr);
 }
 
 #include "speex_resampler.h"
@@ -90,7 +95,6 @@
 #include "os_support.h"
 #endif /* OUTSIDE_SPEEX */
 
-#include "stack_alloc.h"
 #include <math.h>
 
 #ifndef M_PI
--- speex_resampler.h	2008-10-28 12:21:37.000000000 +0100
+++ speex_resampler.h	2008-10-28 12:30:48.000000000 +0100
@@ -77,10 +77,10 @@
 #define speex_resampler_reset_mem CAT_PREFIX(RANDOM_PREFIX,_resampler_reset_mem)
 #define speex_resampler_strerror CAT_PREFIX(RANDOM_PREFIX,_resampler_strerror)
 
-#define spx_int16_t short
-#define spx_int32_t int
-#define spx_uint16_t unsigned short
-#define spx_uint32_t unsigned int
+#define spx_int16_t gint16
+#define spx_int32_t gint32
+#define spx_uint16_t guint16
+#define spx_uint32_t guint32
 
 #else /* OUTSIDE_SPEEX */