2
Copyright (C) 2008-2011 Nicolas Bourdaud <nicolas.bourdaud@epfl.ch>
4
This file is part of the rtfilter library
6
The rtfilter library is free software: you can redistribute it and/or
7
modify it under the terms of the version 3 of the GNU Lesser General
8
Public License as published by the Free Software Foundation.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU Lesser General Public License for more details.
15
You should have received a copy of the GNU Lesser General Public License
16
along with this program. If not, see <http://www.gnu.org/licenses/>.
27
/* Data type specifications */
32
#define RTF_PRECISION_MASK 1
33
#define RTF_COMPLEX_MASK 2
35
//! Handle to a filter. Used by all the functions to manipulate a filter.
36
typedef const struct rtf_filter* hfilter;
38
//! create a digital filter
39
hfilter rtf_create_filter(unsigned int nchann, int proctype,
40
unsigned int num_len, const void *num,
41
unsigned int denum_len, const void *denum,
43
//! filter chunk of data
44
unsigned int rtf_filter(hfilter filt, const void* x, void* y,
46
//! initialize a filter with particular data
47
void rtf_init_filter(hfilter filt, const void* data);
49
void rtf_destroy_filter(hfilter filt);
50
//! Return the type of the input or output of a filter
51
int rtf_get_type(hfilter filt, int in);
53
// Creates a filter that downsample signals
54
hfilter rtf_create_downsampler(unsigned int nch, int type, unsigned int r);
56
//! Return the version of the library in a string
57
size_t rtf_get_version(char* string, size_t len, unsigned int line);