SAF
Loading...
Searching...
No Matches
saf_utility_qmf.h File Reference

An implementation of the complex Quadrature Mirror Filterbank (QMF) described in [1]. More...

Go to the source code of this file.

Enumerations

enum  QMF_FDDATA_FORMAT { QMF_BANDS_CH_TIME , QMF_TIME_CH_BANDS }
 Options for how the frequency domain data is permuted when using qmf. More...
 

Functions

void qmf_create (void **const phQMF, int nCHin, int nCHout, int hopsize, int hybridmode, QMF_FDDATA_FORMAT format)
 Creates an instance of the qmf filterbank.
 
void qmf_destroy (void **const phQMF)
 Destroys an instance of the qmf filterbank.
 
void qmf_analysis (void *const hQMF, float **dataTD, int framesize, float_complex ***dataFD)
 Performs QMF analysis of the input time-domain signals.
 
void qmf_synthesis (void *const hQMF, float_complex ***dataFD, int framesize, float **dataTD)
 Performs QMF synthesis of the input frequency-domain signals.
 
void qmf_channelChange (void *const hQMF, int new_nCHin, int new_nCHout)
 Changes the number input and/or output channels.
 
void qmf_clearBuffers (void *const hQMF)
 Flushes the analysis and synthesis buffers with zeros.
 
int qmf_getProcDelay (void *const hQMF)
 Returns the processing delay in samples.
 
int qmf_getNBands (void *const hQMF)
 Returns the number of frequency bands.
 
void qmf_getCentreFreqs (void *const hQMF, float fs, int nBands, float *centreFreq)
 Computes the QMF/hybrid-QMF centre frequencies.
 
void qmf_FIRtoFilterbankCoeffs (float *hIR, int N_dirs, int nCH, int ir_len, int hopSize, int hybridmode, float_complex *hFB)
 Converts FIR filters into Filterbank Coefficients by passing them through the QMF filterbank.
 

Detailed Description

An implementation of the complex Quadrature Mirror Filterbank (QMF) described in [1].

See also
[1] Herre, J., Purnhagen, H., Breebaart, J., Faller, C., Disch, S., Kjörling, K., Schuijers, E., Hilpert, J. and Myburg, F., 2005. The reference model architecture for MPEG spatial audio coding.
Author
Leo McCormack
Date
14.07.2020
License
ISC

Definition in file saf_utility_qmf.h.