Group: convolution¶
C¶
functionkfr::dft_resampler<T>::compute_block_size(size_t, T, T) Computes the minimal power-of-2 block size required for the given filter parameters (Kaiser formula).variablekfr::dft_resampler_params::cutoff Resampling factor expressed as a power of 2 (e.g. 1 for 2x, -1 for 0.5x, 0 for filter-only)
D¶
structkfr::dft_resampler_paramsconstructorkfr::dft_resampler_params::dft_resampler_params(int, fbase, fbase, fbase)classkfr::dft_resampler<T>constructorkfr::dft_resampler<T>::dft_resampler<T>(const dft_resampler_params &)
F¶
functionkfr::dft_resampler_params::factor()functionkfr::dft_resampler<T>::factor()functionkfr::dft_resampler<T>::filter_length()
I¶
variablekfr::dft_resampler_params::input_block_sizefunctionkfr::dft_resampler<T>::input_block_size()functionkfr::dft_resampler<T>::input_hop()functionkfr::dft_resampler_params::is_downsampling()functionkfr::dft_resampler<T>::is_downsampling()
K¶
functionkfr::dft_resampler<T>::kaiser_beta_from_attenuation(T) Computes Kaiser beta from desired stopband attenuation (dB). Uses the Kaiser formula (same as samplerate_converter::window_param).
O¶
P¶
functionkfr::dft_resampler<T>::process_frame(const T *)functionkfr::dft_resampler<T>::process_frame(T *, const T *) Process one frame via overlap-save. FFTs m_input_buffer, applies spectral shaping, IFFTs, discards circular artefacts, writes valid output directly.functionkfr::dft_resampler<T>::process(int, int) Process arbitrary-sized input and produce resampled output.
R¶
functionkfr::dft_resampler<T>::reset() Resets the resampler to its freshly-constructed state, clearing all buffered input without changing filter parameters.
S¶
variablekfr::dft_resampler_params::shiftfunctionkfr::dft_resampler_params::stage_factor()variablekfr::dft_resampler_params::stopband_atten_db Normalised cutoff frequency (0..1], where 1.0 = Nyquist of the output rate.
T¶
variablekfr::dft_resampler_params::transition_width Desired stopband attenuation in dB (e.g. 144). Controls Kaiser beta.