/usr/include/rtf_common.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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | /*
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 COMMON_FILTERS_H
#define COMMON_FILTERS_H
#ifdef __cplusplus
extern "C" {
#endif
#include <rtfilter.h>
/**
* Enumeration specifying some kernel windows
*/
typedef enum {
BLACKMAN_WINDOW,
HAMMING_WINDOW,
RECT_WINDOW
} KernelWindow;
//! Create a local mean filter based on a sliding window
hfilter rtf_create_fir_mean(unsigned int nchann, int proctype,
unsigned int nsamples);
//! Lowpass windowed sinc filter
hfilter rtf_create_fir_lowpass(unsigned int nchann, int proctype,
double fc, unsigned int half_length,
KernelWindow window);
//! Highpass windowed sinc filter
hfilter rtf_create_fir_highpass(unsigned int nchann, int proctype,
double fc, unsigned int half_length,
KernelWindow window);
//! Bandpass windowed sinc filter
hfilter rtf_create_fir_bandpass(unsigned int nchann, int proctype,
double fc_low, double fc_high,
unsigned int half_length,
KernelWindow window);
//! Butterworth filter (IIR filter)
hfilter rtf_create_butterworth(unsigned int nchann, int proctype,
double fc, unsigned int num_pole,
int highpass);
//! Chebychev filter (IIR filter)
hfilter rtf_create_chebychev(unsigned int nchann, int proctype,
double fc, unsigned int num_pole,
int highpass, double ripple);
//! Simple first order integral filter (IIR filter)
hfilter rtf_create_integral(unsigned int nchann, int proctype, double fs);
hfilter rtf_create_bandpass_analytic(unsigned int nchann,
int proctype,
double fl, double fh,
unsigned int num_pole);
#ifdef __cplusplus
}
#endif
#endif /*COMMON_FILTERS_H*/
|