The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
fftfilterbank::fftfb_plug_t Class Reference
Inheritance diagram for fftfilterbank::fftfb_plug_t:
Inheritance graph

Public Member Functions

 fftfb_plug_t (MHAOvlFilter::overlap_save_filterbank_t::vars_t &, mhaconfig_t chcfg, MHA_AC::algo_comm_t &ac, std::string alg, bool return_imag)
 
mha_spec_tprocess (mha_spec_t *)
 
mha_wave_tprocess (mha_wave_t *)
 
void insert ()
 
- Public Member Functions inherited from MHAOvlFilter::overlap_save_filterbank_analytic_t
 overlap_save_filterbank_analytic_t (MHAOvlFilter::overlap_save_filterbank_t::vars_t &fbpar, mhaconfig_t channelconfig_in)
 
void filter_analytic (const mha_wave_t *sIn, mha_wave_t **fltRe, mha_wave_t **fltIm)
 
- Public Member Functions inherited from MHAOvlFilter::overlap_save_filterbank_t
 overlap_save_filterbank_t (MHAOvlFilter::overlap_save_filterbank_t::vars_t &fbpar, mhaconfig_t channelconfig_in)
 
mhaconfig_t get_channelconfig () const
 
- Public Member Functions inherited from MHAOvlFilter::fftfb_t
 fftfb_t (MHAOvlFilter::fftfb_vars_t &par, unsigned int nfft, mha_real_t fs)
 Constructor for a FFT-based overlapping filter bank. More...
 
 ~fftfb_t ()
 
void apply_gains (mha_spec_t *s_out, const mha_spec_t *s_in, const mha_wave_t *gains)
 
void get_fbpower (mha_wave_t *fbpow, const mha_spec_t *s_in)
 
void get_fbpower_db (mha_wave_t *fbpow, const mha_spec_t *s_in)
 
std::vector< mha_real_tget_ltass_gain_db () const
 
unsigned int bin1 (unsigned int band) const
 Return index of first non-zero filter shape window. More...
 
unsigned int bin2 (unsigned int band) const
 Return index of first zero filter shape window above center frequency. More...
 
unsigned int get_fftlen () const
 Return fft length. More...
 
mha_real_t w (unsigned int k, unsigned int b) const
 Return filter shape window at index k in band b. More...
 
- Public Member Functions inherited from MHAOvlFilter::fspacing_t
 fspacing_t (const MHAOvlFilter::fftfb_vars_t &par, unsigned int nfft, mha_real_t fs)
 
std::vector< unsigned int > get_cf_fftbin () const
 
std::vector< mha_real_tget_cf_hz () const
 
std::vector< mha_real_tget_ef_hz () const
 
unsigned int nbands () const
 Return number of bands in filter bank. More...
 
- Public Member Functions inherited from MHAFilter::fftfilterbank_t
 fftfilterbank_t (unsigned int fragsize, unsigned int inputchannels, unsigned int firchannels, unsigned int fftlen)
 Constructor. More...
 
 ~fftfilterbank_t ()
 
void update_coeffs (const mha_wave_t *h)
 Update the set of coefficients. More...
 
void filter (const mha_wave_t *s_in, mha_wave_t **s_out, const mha_wave_t *h)
 Apply filter with changing coefficients to a waveform fragment. More...
 
void filter (const mha_wave_t *s_in, mha_wave_t **s_out)
 Apply filter to waveform fragment, without changing the coefficients. More...
 
const mha_wave_tget_irs () const
 Return the current IRS. More...
 

Private Attributes

MHAOvlFilter::fftfb_ac_info_t fb_acinfo
 
MHASignal::spectrum_t s_out
 
MHA_AC::waveform_t imag
 
bool return_imag_
 

Additional Inherited Members

- Protected Member Functions inherited from MHAOvlFilter::fspacing_t
void fail_on_nonmonotonic_cf ()
 
void fail_on_unique_fftbins ()
 
- Protected Attributes inherited from MHAOvlFilter::fspacing_t
std::vector< MHAOvlFilter::band_descriptor_tbands
 
mha_real_t(* symmetry_scale )(mha_real_t)
 

Constructor & Destructor Documentation

◆ fftfb_plug_t()

fftfilterbank::fftfb_plug_t::fftfb_plug_t ( MHAOvlFilter::overlap_save_filterbank_t::vars_t vars,
mhaconfig_t  chcfg,
MHA_AC::algo_comm_t ac,
std::string  alg,
bool  return_imag 
)

Member Function Documentation

◆ process() [1/2]

mha_spec_t * fftfilterbank::fftfb_plug_t::process ( mha_spec_t s)

◆ process() [2/2]

mha_wave_t * fftfilterbank::fftfb_plug_t::process ( mha_wave_t s)

◆ insert()

void fftfilterbank::fftfb_plug_t::insert ( )

Member Data Documentation

◆ fb_acinfo

MHAOvlFilter::fftfb_ac_info_t fftfilterbank::fftfb_plug_t::fb_acinfo
private

◆ s_out

MHASignal::spectrum_t fftfilterbank::fftfb_plug_t::s_out
private

◆ imag

MHA_AC::waveform_t fftfilterbank::fftfb_plug_t::imag
private

◆ return_imag_

bool fftfilterbank::fftfb_plug_t::return_imag_
private

The documentation for this class was generated from the following file: