/usr/include/rtfilter.h is in librtfilter-dev 1.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | /*
Copyright (C) 2008-2011 Nicolas Bourdaud <nicolas.bourdaud@epfl.ch>
This file is part of the rtfilter library
The rtfilter library is free software: you can redistribute it and/or
modify it under the terms of the version 3 of the GNU Lesser General
Public License as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef RTFILTER_H
#define RTFILTER_H
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Data type specifications */
#define RTF_FLOAT 0
#define RTF_DOUBLE 1
#define RTF_CFLOAT 2
#define RTF_CDOUBLE 3
#define RTF_PRECISION_MASK 1
#define RTF_COMPLEX_MASK 2
//! Handle to a filter. Used by all the functions to manipulate a filter.
typedef const struct rtf_filter* hfilter;
//! create a digital filter
hfilter rtf_create_filter(unsigned int nchann, int proctype,
unsigned int num_len, const void *num,
unsigned int denum_len, const void *denum,
int type);
//! filter chunk of data
unsigned int rtf_filter(hfilter filt, const void* x, void* y,
unsigned int ns);
//! initialize a filter with particular data
void rtf_init_filter(hfilter filt, const void* data);
//! destroy a filter
void rtf_destroy_filter(hfilter filt);
//! Return the type of the input or output of a filter
int rtf_get_type(hfilter filt, int in);
// Creates a filter that downsample signals
hfilter rtf_create_downsampler(unsigned int nch, int type, unsigned int r);
//! Return the version of the library in a string
size_t rtf_get_version(char* string, size_t len, unsigned int line);
#ifdef __cplusplus
}
#endif
#endif //RTFILTER_H
|