diff options
author | jofret | 2009-04-28 06:57:25 +0000 |
---|---|---|
committer | jofret | 2009-04-28 06:57:25 +0000 |
commit | 5bb72c97b02e1cea0dbf008ec16029491956f971 (patch) | |
tree | a3b38e2ad33af5514091e67f57e8a60e0fe0cef3 /src/signalProcessing/includes | |
parent | 5868a7f86c42335cdad7252ea55117acf7bafe83 (diff) | |
download | scilab2c-5bb72c97b02e1cea0dbf008ec16029491956f971.tar.gz scilab2c-5bb72c97b02e1cea0dbf008ec16029491956f971.tar.bz2 scilab2c-5bb72c97b02e1cea0dbf008ec16029491956f971.zip |
Moving source code
Diffstat (limited to 'src/signalProcessing/includes')
-rw-r--r-- | src/signalProcessing/includes/conv.h | 41 | ||||
-rw-r--r-- | src/signalProcessing/includes/conv2d.h | 38 | ||||
-rw-r--r-- | src/signalProcessing/includes/crossCorr.h | 37 | ||||
-rw-r--r-- | src/signalProcessing/includes/dynlib_signalprocessing.h | 26 | ||||
-rw-r--r-- | src/signalProcessing/includes/fft.h | 57 | ||||
-rw-r--r-- | src/signalProcessing/includes/fftshift.h | 76 | ||||
-rw-r--r-- | src/signalProcessing/includes/hilbert.h | 43 | ||||
-rw-r--r-- | src/signalProcessing/includes/ifft.h | 59 | ||||
-rw-r--r-- | src/signalProcessing/includes/lev.h | 50 | ||||
-rw-r--r-- | src/signalProcessing/includes/levin.h | 31 | ||||
-rw-r--r-- | src/signalProcessing/includes/lpc2cep.h | 44 |
11 files changed, 0 insertions, 502 deletions
diff --git a/src/signalProcessing/includes/conv.h b/src/signalProcessing/includes/conv.h deleted file mode 100644 index c7fd1d5e..00000000 --- a/src/signalProcessing/includes/conv.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#ifndef __CONV_H__ -#define __CONV_H__ - -#include <math.h> -#include <malloc.h> -#include "dynlib_signalprocessing.h" -#include "floatComplex.h" -#include "doubleComplex.h" -#include "multiplication.h" -#include "ifft.h" -#include "fft.h" - -#ifdef __cplusplus -extern "C" { -#endif -/* Computes the convolution between VECTORS */ - -EXTERN_SIGPROC void sconva(float *in1, int size1, float *in2,int size2, float *out); - -EXTERN_SIGPROC void dconva(double *in1, int size1, double *in2,int size2, double *out); - -EXTERN_SIGPROC void cconva(floatComplex *in1, int size1, floatComplex *in2,int size2, floatComplex *out); - -EXTERN_SIGPROC void zconva(doubleComplex *in1, int size1, doubleComplex *in2,int size2, doubleComplex *out); -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /* !__CONV_H__ */ diff --git a/src/signalProcessing/includes/conv2d.h b/src/signalProcessing/includes/conv2d.h deleted file mode 100644 index ed71d924..00000000 --- a/src/signalProcessing/includes/conv2d.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#ifndef __CONV2D_H__ -#define __CONV2D_H__ - -#include "dynlib_signalprocessing.h" -#include "floatComplex.h" -#include "doubleComplex.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* Computes the convolution between MATRICES */ - -EXTERN_SIGPROC void sconv2da(float *in1, int lines1, int columns1, float *in2, int lines2, int columns2, float *out); - -EXTERN_SIGPROC void dconv2da(double *in1, int lines1, int columns1, double *in2, int lines2, int columns2, double *out); - -EXTERN_SIGPROC void cconv2da(floatComplex *in1, int lines1, int columns1, floatComplex *in2, int lines2, int columns2, floatComplex *out); - -EXTERN_SIGPROC void zconv2da(doubleComplex *in1, int lines1, int columns1, doubleComplex *in2, int lines2, int columns2, doubleComplex *out); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /* !__CONV2D_H__ */ diff --git a/src/signalProcessing/includes/crossCorr.h b/src/signalProcessing/includes/crossCorr.h deleted file mode 100644 index c44d6666..00000000 --- a/src/signalProcessing/includes/crossCorr.h +++ /dev/null @@ -1,37 +0,0 @@ - -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#ifndef __CROSSCORR_H__ -#define __CROSSCORR_H__ - -#include "dynlib_signalprocessing.h" -#include "floatComplex.h" -#include "doubleComplex.h" - -#ifdef __cplusplus -extern "C" { -#endif - -EXTERN_SIGPROC void scrossCorra(float* in1, int rows1, int cols1, float* in2, int rows2, int cols2, float* out); - -EXTERN_SIGPROC void dcrossCorra(double* in1, int rows1, int cols1, double* in2, int rows2, int cols2, double* out); - -EXTERN_SIGPROC void ccrossCorra(floatComplex* in1, int rows1, int cols1, floatComplex* in2, int rows2, int cols2, floatComplex* out); - -EXTERN_SIGPROC void zcrossCorra(doubleComplex* in1, int rows1, int cols1, doubleComplex* in2, int rows2, int cols2, doubleComplex* out); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /* __CROSSCORR_H__ */ diff --git a/src/signalProcessing/includes/dynlib_signalprocessing.h b/src/signalProcessing/includes/dynlib_signalprocessing.h deleted file mode 100644 index e01e8d85..00000000 --- a/src/signalProcessing/includes/dynlib_signalprocessing.h +++ /dev/null @@ -1,26 +0,0 @@ -/*
-* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-* Copyright (C) 2009 - DIGITEO - Allan CORNET
-*
-* This file must be used under the terms of the CeCILL.
-* This source file is licensed as described in the file COPYING, which
-* you should have received as part of this distribution. The terms
-* are also available at
-* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
-*
-*/
-
-#ifndef __DYNLIB_SIGNALPROCESSING_H__
-#define __DYNLIB_SIGNALPROCESSING_H__
-
-#ifdef _MSC_VER
- #if SIGNALPROCESSING_EXPORTS
- #define EXTERN_SIGPROC __declspec (dllexport)
- #else
- #define EXTERN_SIGPROC __declspec (dllimport)
- #endif
-#else
- #define EXTERN_SIGPROC
-#endif
-
-#endif /* __DYNLIB_SIGNALPROCESSING_H__ */
\ No newline at end of file diff --git a/src/signalProcessing/includes/fft.h b/src/signalProcessing/includes/fft.h deleted file mode 100644 index efc85c09..00000000 --- a/src/signalProcessing/includes/fft.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Allan SIMON - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#ifndef __FFT_H__ -#define __FFT_H__ - -#include "dynlib_signalprocessing.h" -#include "floatComplex.h" -#include "doubleComplex.h" - - -#define sffts(in) in -#define dffts(in) in -#define cffts(in) in -#define zffts(in) in - -#ifdef __cplusplus -extern "C" { -#endif - -EXTERN_SIGPROC void sfftma(float* in,int rows,int columns,float* out); - -EXTERN_SIGPROC void dfftma(double* in,int rows,int columns,double* out); - -/* -** compute the fast fourier transform of a vector -** param in : the input matrix in complex float precision -** param rows: number of rows of the input matrix -** param cols: number of cols of the input matrix -** param out : the transformed matrix in complex float precision -*/ - -EXTERN_SIGPROC void cfftma ( floatComplex* in , int rows, int cols, floatComplex* out); -/* -** compute the fast fourier transform of a vector -** param in : the input matrix in complex double precision -** param rows: number of rows of the input matrix -** param cols: number of cols of the input matrix -** param out : the transformed matrix in complex double precision -*/ -EXTERN_SIGPROC void zfftma ( doubleComplex* in , int rows, int cols, doubleComplex* out); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /* !__FFT_H__ */ - diff --git a/src/signalProcessing/includes/fftshift.h b/src/signalProcessing/includes/fftshift.h deleted file mode 100644 index 242e7ff7..00000000 --- a/src/signalProcessing/includes/fftshift.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Allan SIMON - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#ifndef __FFTSHIFT_H__ -#define __FFTSHIFT_H__ - - -#include "dynlib_signalprocessing.h" - -/* - fftshift rearrange the result of fft(x) - it's call like that : fftshift(y), y=ff(x) -*/ -#include "floatComplex.h" -#include "doubleComplex.h" - - -#define sfftshifts(in) in -#define dfftshifts(in) in -#define cfftshifts(in) in -#define zfftshifts(in) in - -#ifdef __cplusplus -extern "C" { -#endif - -EXTERN_SIGPROC void sfftshifta(float* in,int rows,int columns,float* out); - -EXTERN_SIGPROC void dfftshifta(double* in,int rows,int columns,double* out); - -EXTERN_SIGPROC void cfftshifta ( floatComplex* in , int rows, int cols, floatComplex* out); - -EXTERN_SIGPROC void zfftshifta ( doubleComplex* in , int rows, int cols, doubleComplex* out); - - -#define srowfftshifts(in) in -#define drowfftshifts(in) in -#define crowfftshifts(in) in -#define zrowfftshifts(in) in - -EXTERN_SIGPROC void srowfftshifta(float* in,int rows,int columns,float* out); - -EXTERN_SIGPROC void drowfftshifta(double* in,int rows,int columns,double* out); - -EXTERN_SIGPROC void crowfftshifta ( floatComplex* in , int rows, int cols, floatComplex* out); - -EXTERN_SIGPROC void zrowfftshifta ( doubleComplex* in , int rows, int cols, doubleComplex* out); - -#define scolumnfftshifts(in) in -#define dcolumnfftshifts(in) in -#define ccolumnfftshifts(in) in -#define zcolumnfftshifts(in) in - -EXTERN_SIGPROC void scolumnfftshifta(float* in,int rows,int columns,float* out); - -EXTERN_SIGPROC void dcolumnfftshifta(double* in,int rows,int columns,double* out); - -EXTERN_SIGPROC void ccolumnfftshifta ( floatComplex* in , int rows, int cols, floatComplex* out); - -EXTERN_SIGPROC void zcolumnfftshifta ( doubleComplex* in , int rows, int cols, doubleComplex* out); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /* !__FFTSHIFT_H__ */ - diff --git a/src/signalProcessing/includes/hilbert.h b/src/signalProcessing/includes/hilbert.h deleted file mode 100644 index 38264e3b..00000000 --- a/src/signalProcessing/includes/hilbert.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - - -#ifndef __HILBERT_H__ -#define __HILBERT_H__ - -#include "dynlib_signalprocessing.h" -#include "floatComplex.h" -#include "doubleComplex.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* FIXME : input : real - output : complex - Is this true all time? - Or must we do input : real, output :real? -*/ - -EXTERN_SIGPROC float shilberts(float in); - -EXTERN_SIGPROC void shilberta (float* in, int rows, int cols, floatComplex *out); - -EXTERN_SIGPROC double dhilberts(double in); - -EXTERN_SIGPROC void dhilberta (double* in, int rows, int cols, doubleComplex *out); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /* __HILBERT_H__ */ diff --git a/src/signalProcessing/includes/ifft.h b/src/signalProcessing/includes/ifft.h deleted file mode 100644 index 6954c7f9..00000000 --- a/src/signalProcessing/includes/ifft.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008-2008 - INRIA - Allan SIMON - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#ifndef __IFFT_H__ -#define __IFFT_H__ - -#include "dynlib_signalprocessing.h" -#include "floatComplex.h" -#include "doubleComplex.h" - -#define siffts(in) in -#define diffts(in) in -#define ciffts(in) in -#define ziffts(in) in - - -#ifdef __cplusplus -extern "C" { -#endif - -EXTERN_SIGPROC void sifftma ( float* in , int rows, int cols, float* out); - -EXTERN_SIGPROC void difftma ( double* in , int rows, int cols, double* out); - -/* -** compute the inverse fast fourier transform of a vector -** param in : the input matrix in complex double precision -** param rows: number of rows of the input matrix -** param cols: number of cols of the input matrix -** param out : the transformed matrix in complex double precision -*/ - - -EXTERN_SIGPROC void zifftma ( doubleComplex* in , int rows, int cols, doubleComplex* out); -/* -** compute the inverse fast fourier transform of a vector -** param in : the input matrix in complex float precision -** param rows: number of rows of the input matrix -** param cols: number of cols of the input matrix -** param out : the transformed matrix in complex float precision -*/ - -EXTERN_SIGPROC void cifftma ( floatComplex* in , int rows, int cols, floatComplex* out); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /* !__IFFT_H__ */ - diff --git a/src/signalProcessing/includes/lev.h b/src/signalProcessing/includes/lev.h deleted file mode 100644 index 32a81782..00000000 --- a/src/signalProcessing/includes/lev.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#ifndef __LEV_H__ -#define __LEV_H__ - -#include "dynlib_signalprocessing.h" -#include "floatComplex.h" -#include "doubleComplex.h" - -#ifdef __cplusplus -extern "C" { -#endif - -/* - function Scilab : - [out1,y,out3]=lev(in) - y : result of the function -*/ -EXTERN_SIGPROC float sleva (float* in,int size, float* out1, float* out3); -EXTERN_SIGPROC double dleva (double* in, int size, double* out1, double* out3); -EXTERN_SIGPROC floatComplex cleva (floatComplex* in,int size, floatComplex* out1, floatComplex* out3); -EXTERN_SIGPROC doubleComplex zleva (doubleComplex* in,int size, doubleComplex* out1, doubleComplex* out3); - - -/* - function Scilab : - [out1,y]=lev(in) - y : result of the function -*/ -EXTERN_SIGPROC float sleva2 (float* in,int size, float* out1); -EXTERN_SIGPROC double dleva2 (double* in, int size, double* out1); -EXTERN_SIGPROC floatComplex cleva2 (floatComplex* in,int size, floatComplex* out1); -EXTERN_SIGPROC doubleComplex zleva2 (doubleComplex* in,int size, doubleComplex* out1); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__LEV_H__*/ - diff --git a/src/signalProcessing/includes/levin.h b/src/signalProcessing/includes/levin.h deleted file mode 100644 index 864fb076..00000000 --- a/src/signalProcessing/includes/levin.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#ifndef __LEVIN_H__ -#define __LEVIN_H__ - -#include "dynlib_signalprocessing.h" - -#ifdef __cplusplus -extern "C" { -#endif - -EXTERN_SIGPROC void dlevina (int n, double* cov, int lCov, int cCov, double* la, double* sig, double* lb); - -EXTERN_SIGPROC void slevina (int n, float* cov, int lCov, int cCov, float* la, float* sig, float* lb); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__LEVIN_H__*/ - diff --git a/src/signalProcessing/includes/lpc2cep.h b/src/signalProcessing/includes/lpc2cep.h deleted file mode 100644 index bfb3a357..00000000 --- a/src/signalProcessing/includes/lpc2cep.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#ifndef __LPC2CEP_H__ -#define __LPC2CEP_H__ - -#include "dynlib_signalprocessing.h" -#include "floatComplex.h" -#include "doubleComplex.h" - -/* Matrices on input are squared because matricial logarithm - works only with squared matrices (and logm is used in lcp2cep) - So we just have to pass one parametre on input for the size of - the input matrix, this parametre is size and it's the numbers of - rows(or columns) -*/ - -#ifdef __cplusplus -extern "C" { -#endif - -EXTERN_SIGPROC void slpc2cepa(float* in, int size, float* out); - -EXTERN_SIGPROC void dlpc2cepa(double* in, int size, double* out); - -EXTERN_SIGPROC void clpc2cepa(floatComplex* in, int size, floatComplex* out); - -EXTERN_SIGPROC void zlpc2cepa(doubleComplex* in, int size, doubleComplex* out); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__LPC2CEP_H__*/ - |