Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Speex
Commits
785e61a5
Commit
785e61a5
authored
Aug 04, 2008
by
Jean-Marc Valin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sorting out #include "" from #include <> and using relative paths for including
installed headers
parent
c97e4c00
Changes
43
Hide whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
107 additions
and
62 deletions
+107
-62
configure.ac
configure.ac
+2
-0
include/speex/speex.h
include/speex/speex.h
+7
-2
include/speex/speex_buffer.h
include/speex/speex_buffer.h
+5
-1
include/speex/speex_callbacks.h
include/speex/speex_callbacks.h
+5
-1
include/speex/speex_echo.h
include/speex/speex_echo.h
+5
-1
include/speex/speex_header.h
include/speex/speex_header.h
+5
-1
include/speex/speex_jitter.h
include/speex/speex_jitter.h
+5
-1
include/speex/speex_preprocess.h
include/speex/speex_preprocess.h
+5
-1
include/speex/speex_resampler.h
include/speex/speex_resampler.h
+5
-1
include/speex/speex_stereo.h
include/speex/speex_stereo.h
+8
-2
include/speex/speex_types.h
include/speex/speex_types.h
+4
-0
libspeex/Makefile.am
libspeex/Makefile.am
+1
-1
libspeex/arch.h
libspeex/arch.h
+1
-1
libspeex/bits.c
libspeex/bits.c
+1
-1
libspeex/buffer.c
libspeex/buffer.c
+1
-1
libspeex/cb_search.h
libspeex/cb_search.h
+1
-1
libspeex/jitter.c
libspeex/jitter.c
+3
-3
libspeex/ltp.c
libspeex/ltp.c
+1
-1
libspeex/ltp.h
libspeex/ltp.h
+1
-1
libspeex/mdf.c
libspeex/mdf.c
+2
-2
libspeex/modes.h
libspeex/modes.h
+2
-2
libspeex/nb_celp.c
libspeex/nb_celp.c
+2
-2
libspeex/nb_celp.h
libspeex/nb_celp.h
+2
-2
libspeex/preprocess.c
libspeex/preprocess.c
+2
-2
libspeex/quant_lsp.h
libspeex/quant_lsp.h
+1
-1
libspeex/resample.c
libspeex/resample.c
+1
-1
libspeex/sb_celp.h
libspeex/sb_celp.h
+1
-1
libspeex/scal.c
libspeex/scal.c
+1
-1
libspeex/speex_callbacks.c
libspeex/speex_callbacks.c
+1
-1
libspeex/speex_header.c
libspeex/speex_header.c
+2
-2
libspeex/stereo.c
libspeex/stereo.c
+2
-2
libspeex/testdenoise.c
libspeex/testdenoise.c
+1
-1
libspeex/testecho.c
libspeex/testecho.c
+2
-2
libspeex/testenc.c
libspeex/testenc.c
+2
-2
libspeex/testenc_uwb.c
libspeex/testenc_uwb.c
+2
-2
libspeex/testenc_wb.c
libspeex/testenc_wb.c
+2
-2
libspeex/testjitter.c
libspeex/testjitter.c
+1
-1
libspeex/testresample.c
libspeex/testresample.c
+1
-1
src/Makefile.am
src/Makefile.am
+1
-1
src/speexdec.c
src/speexdec.c
+4
-4
src/speexenc.c
src/speexenc.c
+4
-4
src/wav_io.c
src/wav_io.c
+1
-1
src/wav_io.h
src/wav_io.h
+1
-1
No files found.
configure.ac
View file @
785e61a5
...
...
@@ -273,6 +273,8 @@ fi
AC_SUBST(SIZE16)
AC_SUBST(SIZE32)
AC_DEFINE([_BUILD_SPEEX], [], [Defined only when Speex itself is build built])
AC_OUTPUT([Makefile libspeex/Makefile src/Makefile doc/Makefile Speex.spec
include/Makefile include/speex/Makefile speex.pc speexdsp.pc
win32/Makefile win32/libspeex/Makefile win32/speexenc/Makefile
...
...
include/speex/speex.h
View file @
785e61a5
...
...
@@ -40,8 +40,13 @@
* @{
*/
#include "speex/speex_bits.h"
#include "speex/speex_types.h"
#ifdef _BUILD_SPEEX
# include "speex_types.h"
# include "speex_bits.h"
#else
# include <speex/speex_types.h>
# include <speex/speex_bits.h>
#endif
#ifdef __cplusplus
extern
"C"
{
...
...
include/speex/speex_buffer.h
View file @
785e61a5
...
...
@@ -34,7 +34,11 @@
#ifndef SPEEX_BUFFER_H
#define SPEEX_BUFFER_H
#include "speex/speex_types.h"
#ifdef _BUILD_SPEEX
# include "speex_types.h"
#else
# include <speex/speex_types.h>
#endif
#ifdef __cplusplus
extern
"C"
{
...
...
include/speex/speex_callbacks.h
View file @
785e61a5
...
...
@@ -39,7 +39,11 @@
* @{
*/
#include "speex.h"
#ifdef _BUILD_SPEEX
# include "speex.h"
#else
# include <speex/speex.h>
#endif
#ifdef __cplusplus
extern
"C"
{
...
...
include/speex/speex_echo.h
View file @
785e61a5
...
...
@@ -37,7 +37,11 @@
* This is the acoustic echo canceller module.
* @{
*/
#include "speex/speex_types.h"
#ifdef _BUILD_SPEEX
# include "speex_types.h"
#else
# include <speex/speex_types.h>
#endif
#ifdef __cplusplus
extern
"C"
{
...
...
include/speex/speex_header.h
View file @
785e61a5
...
...
@@ -41,7 +41,11 @@
* @{
*/
#include "speex/speex_types.h"
#ifdef _BUILD_SPEEX
# include "speex_types.h"
#else
# include <speex/speex_types.h>
#endif
#ifdef __cplusplus
extern
"C"
{
...
...
include/speex/speex_jitter.h
View file @
785e61a5
...
...
@@ -41,7 +41,11 @@
* @{
*/
#include "speex/speex_types.h"
#ifdef _BUILD_SPEEX
# include "speex_types.h"
#else
# include <speex/speex_types.h>
#endif
#ifdef __cplusplus
extern
"C"
{
...
...
include/speex/speex_preprocess.h
View file @
785e61a5
...
...
@@ -43,7 +43,11 @@
* @{
*/
#include "speex/speex_types.h"
#ifdef _BUILD_SPEEX
# include "speex_types.h"
#else
# include <speex/speex_types.h>
#endif
#ifdef __cplusplus
extern
"C"
{
...
...
include/speex/speex_resampler.h
View file @
785e61a5
...
...
@@ -84,7 +84,11 @@
#else
/* OUTSIDE_SPEEX */
#include "speex/speex_types.h"
#ifdef _BUILD_SPEEX
# include "speex_types.h"
#else
# include <speex/speex_types.h>
#endif
#endif
/* OUTSIDE_SPEEX */
...
...
include/speex/speex_stereo.h
View file @
785e61a5
...
...
@@ -39,8 +39,14 @@
* @{
*/
#include "speex/speex_types.h"
#include "speex/speex_bits.h"
#ifdef _BUILD_SPEEX
# include "speex_types.h"
# include "speex_bits.h"
#else
# include <speex/speex_types.h>
# include <speex/speex_bits.h>
#endif
#ifdef __cplusplus
extern
"C"
{
...
...
include/speex/speex_types.h
View file @
785e61a5
...
...
@@ -119,7 +119,11 @@
#else
# ifdef _BUILD_SPEEX
# include "include/speex/speex_config_types.h"
#else
# include <speex/speex_config_types.h>
#endif
#endif
...
...
libspeex/Makefile.am
View file @
785e61a5
...
...
@@ -4,7 +4,7 @@
EXTRA_DIST
=
echo_diagnostic.m
INCLUDES
=
-I
$(top_srcdir)
/include
-I
$(top_builddir)
/include
-I
$(top_builddir)
@OGG_CFLAGS@ @FFT_CFLAGS@
INCLUDES
=
-I
$(top_builddir)
/include
-I
$(top_builddir)
@OGG_CFLAGS@ @FFT_CFLAGS@
lib_LTLIBRARIES
=
libspeex.la libspeexdsp.la
...
...
libspeex/arch.h
View file @
785e61a5
...
...
@@ -75,7 +75,7 @@
#endif
#ifndef OUTSIDE_SPEEX
#include "speex/speex_types.h"
#include "
../include/
speex/speex_types.h"
#endif
#define ABS(x) ((x) < 0 ? (-(x)) : (x))
/**< Absolute integer value. */
...
...
libspeex/bits.c
View file @
785e61a5
...
...
@@ -36,7 +36,7 @@
#include "config.h"
#endif
#include
<
speex/speex_bits.h
>
#include
"../include/
speex/speex_bits.h
"
#include "arch.h"
#include "os_support.h"
...
...
libspeex/buffer.c
View file @
785e61a5
...
...
@@ -38,7 +38,7 @@
#include "os_support.h"
#include "arch.h"
#include
<
speex/speex_buffer.h
>
#include
"../include/
speex/speex_buffer.h
"
struct
SpeexBuffer_
{
char
*
data
;
...
...
libspeex/cb_search.h
View file @
785e61a5
...
...
@@ -35,7 +35,7 @@
#ifndef CB_SEARCH_H
#define CB_SEARCH_H
#include
<
speex/speex_bits.h
>
#include
"../include/
speex/speex_bits.h
"
#include "arch.h"
/** Split codebook parameters. */
...
...
libspeex/jitter.c
View file @
785e61a5
...
...
@@ -55,9 +55,9 @@ TODO:
#include "arch.h"
#include
<
speex/speex.h
>
#include
<
speex/speex_bits.h
>
#include
<
speex/speex_jitter.h
>
#include
"../include/
speex/speex.h
"
#include
"../include/
speex/speex_bits.h
"
#include
"../include/
speex/speex_jitter.h
"
#include "os_support.h"
#ifndef NULL
...
...
libspeex/ltp.c
View file @
785e61a5
...
...
@@ -38,7 +38,7 @@
#include "ltp.h"
#include "stack_alloc.h"
#include "filters.h"
#include
<
speex/speex_bits.h
>
#include
"../include/
speex/speex_bits.h
"
#include "math_approx.h"
#include "os_support.h"
...
...
libspeex/ltp.h
View file @
785e61a5
...
...
@@ -32,7 +32,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include
<
speex/speex_bits.h
>
#include
"../include/
speex/speex_bits.h
"
#include "arch.h"
/** LTP parameters. */
...
...
libspeex/mdf.c
View file @
785e61a5
...
...
@@ -42,7 +42,7 @@
Valin, J.-M., On Adjusting the Learning Rate in Frequency Domain Echo
Cancellation With Double-Talk. IEEE Transactions on Audio,
Speech and Language Processing, Vol. 15, No. 3, pp. 1030-1034, 2007.
Speech and Language Processing, V
<
ol. 15, No. 3, pp. 1030-1034, 2007.
http://people.xiph.org/~jm/papers/valin_taslp2006.pdf
There is no explicit double-talk detection, but a continuous variation
...
...
@@ -70,7 +70,7 @@
#endif
#include "arch.h"
#include "speex/speex_echo.h"
#include "
../include/
speex/speex_echo.h"
#include "fftwrap.h"
#include "pseudofloat.h"
#include "math_approx.h"
...
...
libspeex/modes.h
View file @
785e61a5
...
...
@@ -36,8 +36,8 @@
#ifndef MODES_H
#define MODES_H
#include
<
speex/speex.h
>
#include
<
speex/speex_bits.h
>
#include
"../include/
speex/speex.h
"
#include
"../include/
speex/speex_bits.h
"
#include "arch.h"
#define NB_SUBMODES 16
...
...
libspeex/nb_celp.c
View file @
785e61a5
...
...
@@ -43,12 +43,12 @@
#include "filters.h"
#include "stack_alloc.h"
#include "vq.h"
#include
<
speex/speex_bits.h
>
#include
"../include/
speex/speex_bits.h
"
#include "vbr.h"
#include "arch.h"
#include "math_approx.h"
#include "os_support.h"
#include
<
speex/speex_callbacks.h
>
#include
"../include/
speex/speex_callbacks.h
"
#ifdef VORBIS_PSYCHO
#include "vorbis_psy.h"
...
...
libspeex/nb_celp.h
View file @
785e61a5
...
...
@@ -37,8 +37,8 @@
#define NB_CELP_H
#include "modes.h"
#include
<
speex/speex_bits.h
>
#include
<
speex/speex_callbacks.h
>
#include
"../include/
speex/speex_bits.h
"
#include
"../include/
speex/speex_callbacks.h
"
#include "vbr.h"
#include "filters.h"
...
...
libspeex/preprocess.c
View file @
785e61a5
...
...
@@ -60,8 +60,8 @@
#endif
#include <math.h>
#include "speex/speex_preprocess.h"
#include "speex/speex_echo.h"
#include "
../include/
speex/speex_preprocess.h"
#include "
../include/
speex/speex_echo.h"
#include "arch.h"
#include "fftwrap.h"
#include "filterbank.h"
...
...
libspeex/quant_lsp.h
View file @
785e61a5
...
...
@@ -35,7 +35,7 @@
#ifndef QUANT_LSP_H
#define QUANT_LSP_H
#include
<
speex/speex_bits.h
>
#include
"../include/
speex/speex_bits.h
"
#include "arch.h"
#define MAX_LSP_SIZE 20
...
...
libspeex/resample.c
View file @
785e61a5
...
...
@@ -70,7 +70,7 @@ static void speex_free (void *ptr) {free(ptr);}
#include "arch.h"
#else
/* OUTSIDE_SPEEX */
#include "speex/speex_resampler.h"
#include "
../include/
speex/speex_resampler.h"
#include "arch.h"
#include "os_support.h"
#endif
/* OUTSIDE_SPEEX */
...
...
libspeex/sb_celp.h
View file @
785e61a5
...
...
@@ -37,7 +37,7 @@
#define SB_CELP_H
#include "modes.h"
#include
<
speex/speex_bits.h
>
#include
"../include/
speex/speex_bits.h
"
#include "nb_celp.h"
/**Structure representing the full state of the sub-band encoder*/
...
...
libspeex/scal.c
View file @
785e61a5
...
...
@@ -44,7 +44,7 @@ The algorithm implemented here is described in:
#include "config.h"
#endif
#include "speex/speex_echo.h"
#include "
../include/
speex/speex_echo.h"
#include "vorbis_psy.h"
#include "arch.h"
#include "os_support.h"
...
...
libspeex/speex_callbacks.c
View file @
785e61a5
...
...
@@ -36,7 +36,7 @@
#include "config.h"
#endif
#include
<
speex/speex_callbacks.h
>
#include
"../include/
speex/speex_callbacks.h
"
#include "arch.h"
#include "os_support.h"
...
...
libspeex/speex_header.c
View file @
785e61a5
...
...
@@ -36,8 +36,8 @@
#endif
#include "arch.h"
#include
<
speex/speex_header.h
>
#include
<
speex/speex.h
>
#include
"../include/
speex/speex_header.h
"
#include
"../include/
speex/speex.h
"
#include "os_support.h"
#ifndef NULL
...
...
libspeex/stereo.c
View file @
785e61a5
...
...
@@ -33,8 +33,8 @@
#include "config.h"
#endif
#include
<
speex/speex_stereo.h
>
#include
<
speex/speex_callbacks.h
>
#include
"../include/
speex/speex_stereo.h
"
#include
"../include/
speex/speex_callbacks.h
"
#include "math_approx.h"
#include "vq.h"
#include <math.h>
...
...
libspeex/testdenoise.c
View file @
785e61a5
...
...
@@ -2,7 +2,7 @@
#include "config.h"
#endif
#include
<
speex/speex_preprocess.h
>
#include
"../include/
speex/speex_preprocess.h
"
#include <stdio.h>
#define NN 160
...
...
libspeex/testecho.c
View file @
785e61a5
...
...
@@ -7,8 +7,8 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "speex/speex_echo.h"
#include "speex/speex_preprocess.h"
#include "
../include/
speex/speex_echo.h"
#include "
../include/
speex/speex_preprocess.h"
#define NN 128
...
...
libspeex/testenc.c
View file @
785e61a5
...
...
@@ -2,10 +2,10 @@
#include "config.h"
#endif
#include
<
speex/speex.h
>
#include
"../include/
speex/speex.h
"
#include <stdio.h>
#include <stdlib.h>
#include
<
speex/speex_callbacks.h
>
#include
"../include/
speex/speex_callbacks.h
"
#ifdef FIXED_DEBUG
extern
long
long
spx_mips
;
...
...
libspeex/testenc_uwb.c
View file @
785e61a5
...
...
@@ -2,10 +2,10 @@
#include "config.h"
#endif
#include
<
speex/speex.h
>
#include
"../include/
speex/speex.h
"
#include <stdio.h>
#include <stdlib.h>
#include
<
speex/speex_callbacks.h
>
#include
"../include/
speex/speex_callbacks.h
"
#ifdef FIXED_DEBUG
extern
long
long
spx_mips
;
...
...
libspeex/testenc_wb.c
View file @
785e61a5
...
...
@@ -2,10 +2,10 @@
#include "config.h"
#endif
#include
<
speex/speex.h
>
#include
"../include/
speex/speex.h
"
#include <stdio.h>
#include <stdlib.h>
#include
<
speex/speex_callbacks.h
>
#include
"../include/
speex/speex_callbacks.h
"
#ifdef FIXED_DEBUG
extern
long
long
spx_mips
;
...
...
libspeex/testjitter.c
View file @
785e61a5
...
...
@@ -2,7 +2,7 @@
#include "config.h"
#endif
#include
<
speex/speex_jitter.h
>
#include
"../include/
speex/speex_jitter.h
"
#include <stdio.h>
union
jbpdata
{
...
...
libspeex/testresample.c
View file @
785e61a5
...
...
@@ -35,7 +35,7 @@
#endif
#include <stdio.h>
#include "speex/speex_resampler.h"
#include "
../include/
speex/speex_resampler.h"
#include <math.h>
#include <stdlib.h>
...
...
src/Makefile.am
View file @
785e61a5
...
...
@@ -5,7 +5,7 @@
# Disable automatic dependency tracking if using other tools than gcc and gmake
#AUTOMAKE_OPTIONS = no-dependencies
INCLUDES
=
-I
$(top_srcdir)
/include
-I
$(top_builddir)
/include
-I
$(top_builddir)
@OGG_CFLAGS@
INCLUDES
=
-I
$(top_builddir)
@OGG_CFLAGS@
man_MANS
=
speexenc.1 speexdec.1
...
...
src/speexdec.c
View file @
785e61a5
...
...
@@ -46,7 +46,7 @@
#include <stdlib.h>
#include <string.h>
#include
<
speex/speex.h
>
#include
"../include/
speex/speex.h
"
#include <ogg/ogg.h>
#if defined WIN32 || defined _WIN32
...
...
@@ -81,9 +81,9 @@
#include <string.h>
#include "wav_io.h"
#include
<
speex/speex_header.h
>
#include
<
speex/speex_stereo.h
>
#include
<
speex/speex_callbacks.h
>
#include
"../include/
speex/speex_header.h
"
#include
"../include/
speex/speex_stereo.h
"
#include
"../include/
speex/speex_callbacks.h
"
#define MAX_FRAME_SIZE 2000
...
...
src/speexenc.c
View file @
785e61a5
...
...
@@ -47,12 +47,12 @@
#include <string.h>
#include <time.h>
#include
<
speex/speex.h
>
#include
"../include/
speex/speex.h
"
#include <ogg/ogg.h>
#include "wav_io.h"
#include
<
speex/speex_header.h
>
#include
<
speex/speex_stereo.h
>
#include
<
speex/speex_preprocess.h
>
#include
"../include/
speex/speex_header.h
"
#include
"../include/
speex/speex_stereo.h
"
#include
"../include/
speex/speex_preprocess.h
"
#if defined WIN32 || defined _WIN32
/* We need the following two to set stdout to binary */
...
...
src/wav_io.c
View file @
785e61a5
...
...
@@ -36,7 +36,7 @@
#include <stdio.h>
#include <string.h>
#include "speex/speex_types.h"
#include "
../include/
speex/speex_types.h"
#include "wav_io.h"
...
...
src/wav_io.h
View file @
785e61a5
...
...
@@ -33,7 +33,7 @@
#define WAV_IO_H
#include <stdio.h>
#include "speex/speex_types.h"
#include "
../include/
speex/speex_types.h"
#if !defined(__LITTLE_ENDIAN__) && ( defined(WORDS_BIGENDIAN) || defined(__BIG_ENDIAN__) )
#define le_short(s) ((short) ((unsigned short) (s) << 8) | ((unsigned short) (s) >> 8))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment