Functions
K
function ::kfr_allocate_aligned(size_t, size_t) function ::kfr_allocate(size_t) function ::kfr_biquad_allpass_f32(kfr_f32, kfr_f32, kfr_f32 *) Designs an all-pass biquad section (single precision). function ::kfr_biquad_allpass_f64(kfr_f64, kfr_f64, kfr_f64 *) Designs an all-pass biquad section (double precision). function ::kfr_biquad_bandpass_f32(kfr_f32, kfr_f32, kfr_f32 *) Designs a band-pass biquad section (single precision). function ::kfr_biquad_bandpass_f64(kfr_f64, kfr_f64, kfr_f64 *) Designs a band-pass biquad section (double precision). function ::kfr_biquad_highpass_f32(kfr_f32, kfr_f32, kfr_f32 *) Designs a high-pass biquad section (single precision). function ::kfr_biquad_highpass_f64(kfr_f64, kfr_f64, kfr_f64 *) Designs a high-pass biquad section (double precision). function ::kfr_biquad_highshelf_f32(kfr_f32, kfr_f32, kfr_f32 *) Designs a high-shelf biquad section (single precision). function ::kfr_biquad_highshelf_f64(kfr_f64, kfr_f64, kfr_f64 *) Designs a high-shelf biquad section (double precision). function ::kfr_biquad_lowpass_f32(kfr_f32, kfr_f32, kfr_f32 *) Designs a low-pass biquad section (single precision). function ::kfr_biquad_lowpass_f64(kfr_f64, kfr_f64, kfr_f64 *) Designs a low-pass biquad section (double precision). function ::kfr_biquad_lowshelf_f32(kfr_f32, kfr_f32, kfr_f32 *) Designs a low-shelf biquad section (single precision). function ::kfr_biquad_lowshelf_f64(kfr_f64, kfr_f64, kfr_f64 *) Designs a low-shelf biquad section (double precision). function ::kfr_biquad_notch_f32(kfr_f32, kfr_f32, kfr_f32 *) Designs a notch biquad section (single precision). function ::kfr_biquad_notch_f64(kfr_f64, kfr_f64, kfr_f64 *) Designs a notch biquad section (double precision). function ::kfr_biquad_peak_f32(kfr_f32, kfr_f32, kfr_f32, kfr_f32 *) Designs a peaking EQ biquad section (single precision). function ::kfr_biquad_peak_f64(kfr_f64, kfr_f64, kfr_f64, kfr_f64 *) Designs a peaking EQ biquad section (double precision). function ::kfr_convolve_f32(kfr_f32 *, const kfr_f32 *, size_t, const kfr_f32 *, size_t) Computes the linear convolution of two signals (single precision). function ::kfr_convolve_f64(kfr_f64 *, const kfr_f64 *, size_t, const kfr_f64 *, size_t) Computes the linear convolution of two signals (double precision). function ::kfr_current_arch() Returns the current architecture in use. function ::kfr_dct_create_plan_f32(size_t) Creates a DCT-II plan (single precision). function ::kfr_dct_create_plan_f64(size_t) Creates a DCT-II plan (double precision). function ::kfr_dct_delete_plan_f32(KFR_DCT_PLAN_F32 *) Deletes a DCT plan. function ::kfr_dct_delete_plan_f64(KFR_DCT_PLAN_F64 *) Deletes a DCT plan. function ::kfr_dct_dump_f32(KFR_DCT_PLAN_F32 *) Dumps details of the DCT plan to stdout for inspection. function ::kfr_dct_dump_f64(KFR_DCT_PLAN_F64 *) Dumps details of the DCT plan to stdout for inspection. function ::kfr_dct_execute_f32(KFR_DCT_PLAN_F32 *, kfr_f32 *, const kfr_f32 *, uint8_t *) function ::kfr_dct_execute_f64(KFR_DCT_PLAN_F64 *, kfr_f64 *, const kfr_f64 *, uint8_t *) function ::kfr_dct_execute_inverse_f32(KFR_DCT_PLAN_F32 *, kfr_f32 *, const kfr_f32 *, uint8_t *) function ::kfr_dct_execute_inverse_f64(KFR_DCT_PLAN_F64 *, kfr_f64 *, const kfr_f64 *, uint8_t *) function ::kfr_dct_get_size_f32(KFR_DCT_PLAN_F32 *) Returns the size of a DCT plan. function ::kfr_dct_get_size_f64(KFR_DCT_PLAN_F64 *) Returns the size of a DCT plan. function ::kfr_dct_get_temp_size_f32(KFR_DCT_PLAN_F32 *) Returns the temporary (scratch) buffer size required by the DCT plan. function ::kfr_dct_get_temp_size_f64(KFR_DCT_PLAN_F64 *) Returns the temporary (scratch) buffer size required by the DCT plan. function ::kfr_deallocate(void *) function ::kfr_dft_create_2d_plan_f32(size_t, size_t) Creates a 2D complex DFT plan (single precision). function ::kfr_dft_create_2d_plan_f64(size_t, size_t) Creates a 2D complex DFT plan (double precision). function ::kfr_dft_create_3d_plan_f32(size_t, size_t, size_t) Creates a 3D complex DFT plan (single precision). function ::kfr_dft_create_3d_plan_f64(size_t, size_t, size_t) Creates a 3D complex DFT plan (double precision). function ::kfr_dft_create_md_plan_f32(size_t, const unsigned int *) Creates an N-dimensional complex DFT plan (single precision). function ::kfr_dft_create_md_plan_f64(size_t, const unsigned int *) Creates an N-dimensional complex DFT plan (double precision). function ::kfr_dft_create_plan_f32(size_t) Creates a complex DFT plan (single precision). function ::kfr_dft_create_plan_f64(size_t) Creates a complex DFT plan (double precision). function ::kfr_dft_delete_plan_f32(KFR_DFT_PLAN_F32 *) Deletes a complex DFT plan. function ::kfr_dft_delete_plan_f64(KFR_DFT_PLAN_F64 *) Deletes a complex DFT plan. function ::kfr_dft_dump_f32(KFR_DFT_PLAN_F32 *) Dumps details of the DFT plan to stdout for inspection. function ::kfr_dft_dump_f64(KFR_DFT_PLAN_F64 *) Dumps details of the DFT plan to stdout for inspection. function ::kfr_dft_execute_f32(KFR_DFT_PLAN_F32 *, kfr_c32 *, const kfr_c32 *, uint8_t *) function ::kfr_dft_execute_f64(KFR_DFT_PLAN_F64 *, kfr_c64 *, const kfr_c64 *, uint8_t *) function ::kfr_dft_execute_inverse_f32(KFR_DFT_PLAN_F32 *, kfr_c32 *, const kfr_c32 *, uint8_t *) function ::kfr_dft_execute_inverse_f64(KFR_DFT_PLAN_F64 *, kfr_c64 *, const kfr_c64 *, uint8_t *) function ::kfr_dft_f32(kfr_c32 *, const kfr_c32 *, size_t) Computes the forward complex DFT in one call (single precision). No scaling is applied. function ::kfr_dft_f64(kfr_c64 *, const kfr_c64 *, size_t) Computes the forward complex DFT in one call (double precision). No scaling is applied. function ::kfr_dft_get_size_f32(KFR_DFT_PLAN_F32 *) Returns the size of the DFT plan, in complex numbers. function ::kfr_dft_get_size_f64(KFR_DFT_PLAN_F64 *) Returns the size of the DFT plan, in complex numbers. function ::kfr_dft_get_temp_size_f32(KFR_DFT_PLAN_F32 *) Returns the temporary (scratch) buffer size required by the DFT plan. function ::kfr_dft_get_temp_size_f64(KFR_DFT_PLAN_F64 *) Returns the temporary (scratch) buffer size required by the DFT plan. function ::kfr_dft_real_create_2d_plan_f32(size_t, size_t, kfr_bool) Creates a 2D real DFT plan (single precision). function ::kfr_dft_real_create_2d_plan_f64(size_t, size_t, kfr_bool) Creates a 2D real DFT plan (double precision). function ::kfr_dft_real_create_3d_plan_f32(size_t, size_t, size_t, kfr_bool) Creates a 3D real DFT plan (single precision). function ::kfr_dft_real_create_3d_plan_f64(size_t, size_t, size_t, kfr_bool) Creates a 3D real DFT plan (double precision). function ::kfr_dft_real_create_md_plan_f32(size_t, const unsigned int *, kfr_bool) Creates an N-dimensional real DFT plan (single precision). function ::kfr_dft_real_create_md_plan_f64(size_t, const unsigned int *, kfr_bool) Creates an N-dimensional real DFT plan (double precision). function ::kfr_dft_real_create_plan_f32(size_t, KFR_DFT_PACK_FORMAT) Creates a real DFT plan (single precision). function ::kfr_dft_real_create_plan_f64(size_t, KFR_DFT_PACK_FORMAT) Creates a real DFT plan (double precision). function ::kfr_dft_real_delete_plan_f32(KFR_DFT_REAL_PLAN_F32 *) Deletes a real DFT plan. function ::kfr_dft_real_delete_plan_f64(KFR_DFT_REAL_PLAN_F64 *) Deletes a real DFT plan. function ::kfr_dft_real_dump_f32(KFR_DFT_REAL_PLAN_F32 *) Dumps details of the real DFT plan to stdout for inspection. function ::kfr_dft_real_dump_f64(KFR_DFT_REAL_PLAN_F64 *) Dumps details of the real DFT plan to stdout for inspection. function ::kfr_dft_real_execute_f32(KFR_DFT_REAL_PLAN_F32 *, kfr_c32 *, const kfr_f32 *, uint8_t *) function ::kfr_dft_real_execute_f64(KFR_DFT_REAL_PLAN_F64 *, kfr_c64 *, const kfr_f64 *, uint8_t *) function ::kfr_dft_real_execute_inverse_f32(KFR_DFT_REAL_PLAN_F32 *, kfr_f32 *, const kfr_c32 *, uint8_t *) function ::kfr_dft_real_execute_inverse_f64(KFR_DFT_REAL_PLAN_F64 *, kfr_f64 *, const kfr_c64 *, uint8_t *) function ::kfr_dft_real_get_size_f32(KFR_DFT_REAL_PLAN_F32 *) Returns the size of a real DFT plan. function ::kfr_dft_real_get_size_f64(KFR_DFT_REAL_PLAN_F64 *) Returns the size of a real DFT plan. function ::kfr_dft_real_get_temp_size_f32(KFR_DFT_REAL_PLAN_F32 *) Returns the temporary (scratch) buffer size required by the real DFT plan (single precision). function ::kfr_dft_real_get_temp_size_f64(KFR_DFT_REAL_PLAN_F64 *) Returns the temporary (scratch) buffer size required by the real DFT plan (double precision). function ::kfr_enabled_archs() Returns the list of enabled architectures as a string. function ::kfr_filter_create_convolution_plan_f32(const kfr_f32 *, size_t, size_t) Creates a convolution filter plan (single precision). function ::kfr_filter_create_convolution_plan_f64(const kfr_f64 *, size_t, size_t) Creates a convolution filter plan (double precision). function ::kfr_filter_create_fir_plan_f32(const kfr_f32 *, size_t) Creates a FIR filter plan (single precision). function ::kfr_filter_create_fir_plan_f64(const kfr_f64 *, size_t) Creates a FIR filter plan (double precision). function ::kfr_filter_create_iir_plan_f32(const kfr_f32 *, size_t) Creates an IIR filter plan (single precision) from a cascade of second-order sections. function ::kfr_filter_create_iir_plan_f64(const kfr_f64 *, size_t) Creates an IIR filter plan (double precision) from a cascade of second-order sections. function ::kfr_filter_delete_plan_f32(KFR_FILTER_F32 *) Deletes a filter plan. function ::kfr_filter_delete_plan_f64(KFR_FILTER_F64 *) Deletes a filter plan. function ::kfr_filter_process_f32(KFR_FILTER_F32 *, kfr_f32 *, const kfr_f32 *, size_t) Processes input data with a filter. function ::kfr_filter_process_f64(KFR_FILTER_F64 *, kfr_f64 *, const kfr_f64 *, size_t) Processes input data with a filter. function ::kfr_filter_reset_f32(KFR_FILTER_F32 *) Resets the internal state of a filter plan, including its delay line. function ::kfr_filter_reset_f64(KFR_FILTER_F64 *) Resets the internal state of a filter plan, including its delay line. function ::kfr_filtfilt_f32(const kfr_f32 *, size_t, kfr_f32 *, size_t) Applies zero-phase forward-backward IIR filtering in place (single precision). function ::kfr_filtfilt_f64(const kfr_f64 *, size_t, kfr_f64 *, size_t) Applies zero-phase forward-backward IIR filtering in place (double precision). function ::kfr_fir_design_f32(KFR_FIR_RESPONSE, KFR_WINDOW_TYPE, kfr_f32, kfr_f32, kfr_f32, kfr_f32, kfr_bool, kfr_f32 *, size_t) Designs a linear-phase FIR filter by the window method (single precision). function ::kfr_fir_design_f64(KFR_FIR_RESPONSE, KFR_WINDOW_TYPE, kfr_f64, kfr_f64, kfr_f64, kfr_f64, kfr_bool, kfr_f64 *, size_t) Designs a linear-phase FIR filter by the window method (double precision). function ::kfr_idft_f32(kfr_c32 *, const kfr_c32 *, size_t) Computes the inverse complex DFT in one call (single precision). No scaling is applied. function ::kfr_idft_f64(kfr_c64 *, const kfr_c64 *, size_t) Computes the inverse complex DFT in one call (double precision). No scaling is applied. function ::kfr_iir_design_f32(KFR_IIR_PROTOTYPE, KFR_IIR_RESPONSE, int, kfr_f32, kfr_f32, kfr_f32, kfr_f32, kfr_f32, kfr_f32 *, size_t) Designs a digital IIR filter and returns it as second-order sections (single precision). function ::kfr_iir_design_f64(KFR_IIR_PROTOTYPE, KFR_IIR_RESPONSE, int, kfr_f64, kfr_f64, kfr_f64, kfr_f64, kfr_f64, kfr_f64 *, size_t) Designs a digital IIR filter and returns it as second-order sections (double precision). function ::kfr_irealdft_f32(kfr_f32 *, const kfr_c32 *, size_t) Computes the inverse real DFT in one call (single precision). No scaling is applied. function ::kfr_irealdft_f64(kfr_f64 *, const kfr_c64 *, size_t) Computes the inverse real DFT in one call (double precision). No scaling is applied. function ::kfr_last_error() Returns the last error message. function ::kfr_realdft_f32(kfr_c32 *, const kfr_f32 *, size_t) Computes the forward real DFT in one call (single precision). No scaling is applied. function ::kfr_realdft_f64(kfr_c64 *, const kfr_f64 *, size_t) Computes the forward real DFT in one call (double precision). No scaling is applied. function ::kfr_src_create_explicit_f32(int, int64_t, int64_t, kfr_f32, kfr_f32, kfr_f32, kfr_f32) Creates a single-precision sample rate converter from explicit filter parameters. function ::kfr_src_create_explicit_f64(int, int64_t, int64_t, kfr_f64, kfr_f64, kfr_f64, kfr_f64) Creates a double-precision sample rate converter from explicit filter parameters. function ::kfr_src_create_f32(KFR_SRC_QUALITY, int64_t, int64_t, kfr_f32, kfr_f32) Creates a single-precision sample rate converter from a quality preset. function ::kfr_src_create_f64(KFR_SRC_QUALITY, int64_t, int64_t, kfr_f64, kfr_f64) Creates a double-precision sample rate converter from a quality preset. function ::kfr_src_delete_f32(KFR_SRC_F32 *) Releases a single-precision sample rate converter. function ::kfr_src_delete_f64(KFR_SRC_F64 *) Releases a double-precision sample rate converter. function ::kfr_src_filter_order(KFR_SRC_QUALITY) Returns the filter order for a quality preset. function ::kfr_src_get_delay_f32(const KFR_SRC_F32 *) Returns the integer delay in output samples (leading output samples to discard). function ::kfr_src_get_delay_f64(const KFR_SRC_F64 *) Returns the integer delay in output samples (leading output samples to discard). function ::kfr_src_get_fractional_delay_f32(const KFR_SRC_F32 *) Returns the fractional group delay in output samples. function ::kfr_src_get_fractional_delay_f64(const KFR_SRC_F64 *) Returns the fractional group delay in output samples. function ::kfr_src_input_position_to_intermediate_f32(const KFR_SRC_F32 *, int64_t) Converts an input position to the intermediate (interpolated) rate. function ::kfr_src_input_position_to_intermediate_f64(const KFR_SRC_F64 *, int64_t) Converts an input position to the intermediate (interpolated) rate. function ::kfr_src_input_position_to_output_f32(const KFR_SRC_F32 *, int64_t) Converts an input position to the output position that consumes it (floor division). function ::kfr_src_input_position_to_output_f64(const KFR_SRC_F64 *, int64_t) Converts an input position to the output position that consumes it (floor division). function ::kfr_src_input_size_for_output_f32(const KFR_SRC_F32 *, int64_t) Returns the number of input samples required to produce a number of output samples. function ::kfr_src_input_size_for_output_f64(const KFR_SRC_F64 *, int64_t) Returns the number of input samples required to produce a number of output samples. function ::kfr_src_output_position_to_input_f32(const KFR_SRC_F32 *, int64_t) Converts an output position to the input position needed to produce it (floor division). function ::kfr_src_output_position_to_input_f64(const KFR_SRC_F64 *, int64_t) Converts an output position to the input position needed to produce it (floor division). function ::kfr_src_output_position_to_intermediate_f32(const KFR_SRC_F32 *, int64_t) Converts an output position to the intermediate (interpolated) rate. function ::kfr_src_output_position_to_intermediate_f64(const KFR_SRC_F64 *, int64_t) Converts an output position to the intermediate (interpolated) rate. function ::kfr_src_output_size_for_input_f32(const KFR_SRC_F32 *, int64_t) Returns the number of output samples produced for a number of input samples. function ::kfr_src_output_size_for_input_f64(const KFR_SRC_F64 *, int64_t) Returns the number of output samples produced for a number of input samples. function ::kfr_src_process_f32(KFR_SRC_F32 *, kfr_f32 *, size_t, const kfr_f32 *, size_t) Resamples input into output and advances the converter state. function ::kfr_src_process_f64(KFR_SRC_F64 *, kfr_f64 *, size_t, const kfr_f64 *, size_t) Resamples input into output and advances the converter state. function ::kfr_src_reset_f32(KFR_SRC_F32 *) Resets the input and output positions and the delay line. Filter coefficients are kept. function ::kfr_src_reset_f64(KFR_SRC_F64 *) Resets the input and output positions and the delay line. Filter coefficients are kept. function ::kfr_src_sidelobe_attenuation(KFR_SRC_QUALITY) Returns the stopband attenuation in dB for a quality preset. function ::kfr_src_skip_f32(KFR_SRC_F32 *, size_t, const kfr_f32 *, size_t) Advances the converter by output_size output samples without producing output. function ::kfr_src_skip_f64(KFR_SRC_F64 *, size_t, const kfr_f64 *, size_t) Advances the converter by output_size output samples without producing output. function ::kfr_src_transition_width(KFR_SRC_QUALITY) Returns the transition width in radians for a quality preset. function ::kfr_src_window_param_from_attenuation(kfr_f64) Returns the Kaiser window parameter for a stopband attenuation. function ::kfr_src_window_param_from_quality(KFR_SRC_QUALITY) Returns the Kaiser window parameter for a quality preset. function ::kfr_version() Returns the library version as an integer. function ::kfr_version_string() Returns the library version as a string. function ::kfr_window_f32(KFR_WINDOW_TYPE, size_t, kfr_f32, kfr_bool, kfr_f32 *) Generates a window function (single precision). function ::kfr_window_f64(KFR_WINDOW_TYPE, size_t, kfr_f64, kfr_bool, kfr_f64 *) Generates a window function (double precision).