/**************************************************************************/ /* File: spectrum_prms.h */ /**************************************************************************/ /* Project: Computing spectrum of a given signal Class: EE 8993 Spring 96 */ /* Author: Neeraj Deshmukh Date: March 2, 1996 */ /**************************************************************************/ /*======================================================================== This file declares the various parameters and the classes for spectral computation of any given signal ========================================================================*/ /*------------------------------------------------------------------------ make sure definitions are only made once ------------------------------------------------------------------------*/ #ifndef __ISIP_SPECTRUM_PRMS #define __ISIP_SPECTRUM_PRMS /*------------------------------------------------------------------------ system and ISIP include files these are sourced from a local standard definitions file in ~deshmukh/source/standard_files/ ------------------------------------------------------------------------*/ #include "my_std_defs.h" /*------------------------------------------------------------------------ declaration of global constants ------------------------------------------------------------------------*/ #define DEFAULT_SAMPLE_FREQUENCY 8000 // sampling rate #define DEFAULT_MAX_FRAMES 1500 // total frames #define DEFAULT_FFT_ORDER 1024 #define DEFAULT_SAMPLE_SCALE_FACTOR 3.05185e-05 // normalize samples #define LOG_2_FACTOR 3.3219281 /*------------------------------------------------------------------------ declaration of global functions ------------------------------------------------------------------------*/ extern void debias_signal_cc (int_2 *input_fr_l, int_2 win_dur_l); extern void compute_twiddle_factors_cc (float_4 *tw_real_l, float_4 *tw_imag_l, int_2 fft_ord_l); extern void compute_fft_cc (float_4 *fft_fr_l, float_4 *twid_real_l, float_4 *twid_imag_l, int_2 fft_ord_l); extern void compute_dft_cc (float_4 *fft_fr_l, float_4 *twid_real_l, float_4 *twid_imag_l, int_2 fft_ord_l); extern float_4 compute_lp_cc (float_4 *lp_pred_l, int_2 lp_ord_l, float_4 *autocorr_l); extern void lp_response_cc (float_4 *lp_pred_l, float_4 *twid_real_l, float_4 *twid_imag_l, float_4 *lp_spectrum_l, int_2 lp_ord_l, int_2 freq_ord_l); #endif