diff --git a/include/speex/speexdsp_config_types.h b/include/speex/speexdsp_config_types.h new file mode 100644 index 0000000..ca1f5a3 --- /dev/null +++ b/include/speex/speexdsp_config_types.h @@ -0,0 +1,12 @@ +#ifndef __SPEEX_TYPES_H__ +#define __SPEEX_TYPES_H__ + +#include + +typedef int16_t spx_int16_t; +typedef uint16_t spx_uint16_t; +typedef int32_t spx_int32_t; +typedef uint32_t spx_uint32_t; + +#endif + diff --git a/lutin_speexdsp.py b/lutin_speexdsp.py new file mode 100644 index 0000000..700b408 --- /dev/null +++ b/lutin_speexdsp.py @@ -0,0 +1,68 @@ +#!/usr/bin/python +import lutinModule as module +import lutinTools as tools + +def get_desc(): + return "speex dsp : Algorithm of speex codec" + + +def create(target): + myModule = module.Module(__file__, 'speexdsp', 'LIBRARY') + # add extra compilation flags : + #myModule.add_extra_compile_flags() + # add the file to compile: + myModule.add_src_file([ + 'libspeexdsp/filterbank.c', + 'libspeexdsp/resample.c', + 'libspeexdsp/scal.c', + 'libspeexdsp/fftwrap.c', + 'libspeexdsp/jitter.c', + 'libspeexdsp/mdf.c', + 'libspeexdsp/preprocess.c', + 'libspeexdsp/smallft.c', + 'libspeexdsp/buffer.c', + 'libspeexdsp/kiss_fft.c', + 'libspeexdsp/kiss_fftr.c' + ]) + # name of the dependency + myModule.add_module_depend('z') + + myModule.add_export_path(tools.get_current_path(__file__) + "/include") + # configure library : + + # Make use of ARM4 assembly optimizations + #myModule.compile_flags_CC("-DARM4_ASM=1") + # Make use of ARM5E assembly optimizations + #myModule.compile_flags_CC("-DARM5E_ASM=1") + # Make use of Blackfin assembly optimizations + #myModule.compile_flags_CC("-DBFIN_ASM=1") + # Disable all parts of the API that are using floats + #myModule.compile_flags_CC("-DDISABLE_FLOAT_API=1") + # Enable valgrind extra checks + #myModule.compile_flags_CC("-DENABLE_VALGRIND=1") + # Symbol visibility prefix */ + #define EXPORT __attribute__((visibility("default"))) + myModule.compile_flags_CC("-DEXPORT=''") + # Debug fixed-point implementation */ + #myModule.compile_flags_CC("-DFIXED_DEBUG=1") + # Compile as fixed-point / floating-point + if True: + myModule.compile_flags_CC("-DFIXED_POINT") + else: + myModule.compile_flags_CC("-DFLOATING_POINT") + # Enable NEON support */ + #myModule.compile_flags_CC("-D_USE_NEON=1") + # Enable SSE support */ + myModule.compile_flags_CC("-D_USE_SSE=1") + # Enable SSE2 support */ + myModule.compile_flags_CC("-D_USE_SSE2=1") + # Define to 1 if you have the header file. + myModule.compile_flags_CC("-DHAVE_ALLOCA_H=1") + # Use FFT from OggVorbis */ + myModule.compile_flags_CC("-DUSE_SMALLFT=1") + # Use C99 variable-size arrays */ + myModule.compile_flags_CC("-DVAR_ARRAYS=1") + + return myModule + + diff --git a/lutin_speextestdenoise.py b/lutin_speextestdenoise.py new file mode 100644 index 0000000..7efc026 --- /dev/null +++ b/lutin_speextestdenoise.py @@ -0,0 +1,24 @@ +#!/usr/bin/python +import lutinModule as module +import lutinTools as tools + +def get_desc(): + return "speex dsp (test): denoise test algorithm" + + +def create(target): + myModule = module.Module(__file__, 'speextestdenoise', 'BINARY') + # add extra compilation flags : + myModule.add_extra_compile_flags() + # add the file to compile: + myModule.add_src_file([ + 'libspeexdsp/testdenoise.c' + ]) + + # name of the dependency + myModule.add_module_depend('speexdsp') + + # add the currrent module at the + return myModule + + diff --git a/lutin_speextestecho.py b/lutin_speextestecho.py new file mode 100644 index 0000000..3fa4653 --- /dev/null +++ b/lutin_speextestecho.py @@ -0,0 +1,24 @@ +#!/usr/bin/python +import lutinModule as module +import lutinTools as tools + +def get_desc(): + return "speex dsp (test): echo test algorithm" + + +def create(target): + myModule = module.Module(__file__, 'speextestecho', 'BINARY') + # add extra compilation flags : + myModule.add_extra_compile_flags() + # add the file to compile: + myModule.add_src_file([ + 'libspeexdsp/testecho.c' + ]) + + # name of the dependency + myModule.add_module_depend('speexdsp') + + # add the currrent module at the + return myModule + + diff --git a/lutin_speextestjitter.py b/lutin_speextestjitter.py new file mode 100644 index 0000000..19cbbf7 --- /dev/null +++ b/lutin_speextestjitter.py @@ -0,0 +1,24 @@ +#!/usr/bin/python +import lutinModule as module +import lutinTools as tools + +def get_desc(): + return "speex dsp (test): jitter test algorithm" + + +def create(target): + myModule = module.Module(__file__, 'speextestjitter', 'BINARY') + # add extra compilation flags : + myModule.add_extra_compile_flags() + # add the file to compile: + myModule.add_src_file([ + 'libspeexdsp/testjitter.c' + ]) + + # name of the dependency + myModule.add_module_depend('speexdsp') + + # add the currrent module at the + return myModule + + diff --git a/lutin_speextestresample.py b/lutin_speextestresample.py new file mode 100644 index 0000000..c7e1fd5 --- /dev/null +++ b/lutin_speextestresample.py @@ -0,0 +1,24 @@ +#!/usr/bin/python +import lutinModule as module +import lutinTools as tools + +def get_desc(): + return "speex dsp (test): resample test algorithm" + + +def create(target): + myModule = module.Module(__file__, 'speextestresample', 'BINARY') + # add extra compilation flags : + myModule.add_extra_compile_flags() + # add the file to compile: + myModule.add_src_file([ + 'libspeexdsp/testresample.c' + ]) + + # name of the dependency + myModule.add_module_depend('speexdsp') + + # add the currrent module at the + return myModule + +