v2.0.0
Loading...
Searching...
No Matches
filterio.h
Go to the documentation of this file.
1//=============================================================================================================
23
24#ifndef FILTERIO_H
25#define FILTERIO_H
26
27//=============================================================================================================
28// INCLUDES
29//=============================================================================================================
30
31#include "dsp_global.h"
32#include "filterkernel.h"
33
34//=============================================================================================================
35// QT INCLUDES
36//=============================================================================================================
37
38#include <QSharedPointer>
39#include <QString>
40
41//=============================================================================================================
42// DEFINE NAMESPACE UTILSLIB
43//=============================================================================================================
44
45namespace UTILSLIB
46{
47
48//=============================================================================================================
49// DEFINES
50//=============================================================================================================
51
52//=============================================================================================================
53// DEFINE FORWARD DECLARATIONS
54//=============================================================================================================
55
56class FilterKernel;
57
58//=============================================================================================================
65{
66public:
67 typedef QSharedPointer<FilterIO> SPtr;
68 typedef QSharedPointer<const FilterIO> ConstSPtr;
69
70 //=========================================================================================================
74 FilterIO();
75
76 //=========================================================================================================
85 static bool readFilter(QString path, FilterKernel &filter);
86
87 //=========================================================================================================
96 static bool writeFilter(const QString &path, const FilterKernel &filter);
97
98private:
99};
100} // NAMESPACE UTILSLIB
101
102#endif // FILTERIO_H
Linear-phase FIR filter kernel with overlap-add FFT convolution back-end.
Export/import macros and namespace declaration for the DSP library.
#define DSPSHARED_EXPORT
Definition dsp_global.h:50
Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms).
static bool readFilter(QString path, FilterKernel &filter)
Definition filterio.cpp:45
QSharedPointer< FilterIO > SPtr
Definition filterio.h:67
static bool writeFilter(const QString &path, const FilterKernel &filter)
Definition filterio.cpp:130
QSharedPointer< const FilterIO > ConstSPtr
Definition filterio.h:68
The FilterKernel class provides methods to create/design a FIR filter kernel.