~ubuntu-branches/ubuntu/karmic/gst-plugins-bad0.10/karmic-proposed

« back to all changes in this revision

Viewing changes to gst/speexresample/README

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2009-01-08 07:59:36 UTC
  • mto: (18.1.3 sid) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20090108075936-dpmodc3g7ko1scwd
Tags: upstream-0.10.9.2
Import upstream version 0.10.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
resample.c
2
 
arch.h
3
 
fixed_generic.h
4
 
speex_resampler.h
5
 
 
6
 
are taken from http://svn.xiph.org/trunk/speex/ revision 14232.
7
 
 
8
 
The only changes are:
9
 
 
10
 
--- speex/libspeex/arch.h       2007-11-21 11:05:46.000000000 +0100
11
 
+++ speexresample/arch.h      2007-11-20 05:41:09.000000000 +0100
12
 
@@ -78,7 +78,9 @@
13
 
 #include "speex/speex_types.h"
14
 
 #endif
15
 
 
16
 
+#ifndef ABS
17
 
 #define ABS(x) ((x) < 0 ? (-(x)) : (x))      /**< Absolute integer value. */
18
 
+#endif
19
 
 #define ABS16(x) ((x) < 0 ? (-(x)) : (x))    /**< Absolute 16-bit value.  */
20
 
 #define MIN16(a,b) ((a) < (b) ? (a) : (b))   /**< Maximum 16-bit value.   */
21
 
 #define MAX16(a,b) ((a) > (b) ? (a) : (b))   /**< Maximum 16-bit value.   */
22
 
 
23
 
--- speex/include/speex/speex_resampler.h       2007-11-21 11:05:44.000000000 +0100
24
 
+++ speexresample/speex_resampler.h   2007-11-21 11:10:02.000000000 +0100
25
 
@@ -41,6 +41,8 @@
26
 
 
27
 
 #ifdef OUTSIDE_SPEEX
28
 
 
29
 
+#include <glib.h>
30
 
+
31
 
 /********* WARNING: MENTAL SANITY ENDS HERE *************/
32
 
 
33
 
 /* If the resampler is defined outside of Speex, we change the symbol names so that 
34
 
@@ -75,10 +77,10 @@
35
 
 #define speex_resampler_reset_mem CAT_PREFIX(RANDOM_PREFIX,_resampler_reset_mem)
36
 
 #define speex_resampler_strerror CAT_PREFIX(RANDOM_PREFIX,_resampler_strerror)
37
 
 
38
 
-#define spx_int16_t short
39
 
-#define spx_int32_t int
40
 
-#define spx_uint16_t unsigned short
41
 
-#define spx_uint32_t unsigned int
42
 
+#define spx_int16_t gint16
43
 
+#define spx_int32_t gint32
44
 
+#define spx_uint16_t guint16
45
 
+#define spx_uint32_t guint32
46
 
       
47
 
 #else /* OUTSIDE_SPEEX */
48
 
 
49
 
--- speex/libspeex/resample.c   2007-11-25 14:15:38.000000000 +0100
50
 
+++ speexresample/resample.c    2007-11-25 14:15:31.000000000 +0100
51
 
@@ -62,20 +62,23 @@
52
 
 
53
 
 #ifdef OUTSIDE_SPEEX
54
 
 #include <stdlib.h>
55
 
-static void *
56
 
+#include <glib.h>
57
 
+
58
 
+static inline void *
59
 
 speex_alloc (int size)
60
 
 {
61
 
-  return calloc (size, 1);
62
 
+  return g_malloc0 (size);
63
 
 }
64
 
-static void *
65
 
+static inline void *
66
 
 speex_realloc (void *ptr, int size)
67
 
 {
68
 
-  return realloc (ptr, size);
69
 
+  return g_realloc (ptr, size);
70
 
 }
71
 
-static void
72
 
+
73
 
+static inline void
74
 
 speex_free (void *ptr)
75
 
 {
76
 
-  free (ptr);
77
 
+  g_free (ptr);
78
 
 }
79
 
 
80
 
 #include "speex_resampler.h"