comparison spandsp-0.0.6pre17/src/filter_tools.h @ 4:26cd8f1ef0b1

import spandsp-0.0.6pre17
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Fri, 25 Jun 2010 15:50:58 +0200
parents
children
comparison
equal deleted inserted replaced
3:c6c5a16ce2f2 4:26cd8f1ef0b1
1 /*
2 * SpanDSP - a series of DSP components for telephony
3 *
4 * filter_tools.h - A collection of routines used for filter design.
5 *
6 * Written by Steve Underwood <steveu@coppice.org>
7 *
8 * Copyright (C) 2008 Steve Underwood
9 *
10 * Based on:
11 * mkshape -- design raised cosine FIR filter
12 * A.J. Fisher, University of York <fisher@minster.york.ac.uk>, November 1996
13 *
14 * All rights reserved.
15 *
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU Lesser General Public License version 2.1,
18 * as published by the Free Software Foundation.
19 *
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU Lesser General Public License for more details.
24 *
25 * You should have received a copy of the GNU Lesser General Public
26 * License along with this program; if not, write to the Free Software
27 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 *
29 * $Id: filter_tools.h,v 1.3 2008/04/17 14:26:56 steveu Exp $
30 */
31
32 #if !defined(_FILTER_TOOLS_H_)
33 #define _FILTER_TOOLS_H_
34
35 #if defined(__cplusplus)
36 extern "C"
37 {
38 #endif
39
40 void ifft(complex_t data[], int len);
41 void apply_hamming_window(double coeffs[], int len);
42 void truncate_coeffs(double coeffs[], int len, int bits, int hilbert);
43
44 void compute_raised_cosine_filter(double coeffs[],
45 int len,
46 int root,
47 int sinc_compensate,
48 double alpha,
49 double beta);
50
51 void compute_hilbert_transform(double coeffs[], int len);
52
53
54 #if defined(__cplusplus)
55 }
56 #endif
57
58 #endif
59 /*- End of file ------------------------------------------------------------*/

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.