/***************************************************************************** Perceptual Evaluation of Speech Quality (PESQ) ITU-T Draft Recommendation P.862. Version 1.1 - 15 November 2000. NOTICE The Perceptual Evaluation of Speech Quality (PESQ) algorithm and the copyright therein is the property of British Telecommunications plc and Royal KPN NV, and is protected by UK, US and other patents. Permission is granted to use PESQ for the purpose of evaluation of ITU-T recommendation P.862. Any other use of this software or the PESQ algorithm requires a license, which may be obtained from: OPTICOM GmbH Michael Keyhl, Am Weichselgarten 7, D- 91058 Erlangen, Germany Phone: +49 9131 691 160 Fax: +49 9131 691 325 E-mail: info@opticom.de PsyTechnics Limited Richard Reynolds, B54 Adastral Park, Ipswich IP5 3RE, UK Phone: +44 1473 644 730 or +44 7730 426 251 Fax: +44 1473 645 663 E-mail: richard.reynolds@psytechnics.com Patent-only licences should be obtained from Opticom. PsyTechnics or Opticom can provide licences, and further information, for other PESQ products. Further information is also available from: www.pesq.org By using this software you acknowledge that PESQ is protected by copyright and by patents and is being made available to you for the purpose of evaluation of ITU-T Recommendation P.862. You must not use PESQ for any other purpose without first obtaining a written license from British Telecommunications plc and Royal KPN NV, from their agents listed above. You must not disclose, reproduce or otherwise release PESQ to any third party without the prior written permission of British Telecommunications plc and Royal KPN NV. Authors: Antony Rix (BT) Mike Hollier (BT) Andries Hekstra (KPN Research) John Beerends (KPN Research) *****************************************************************************/ #ifndef min #define min(a,b) (((a) < (b)) ? (a) : (b)) #endif #ifndef max #define max(a,b) (((a) > (b)) ? (a) : (b)) #endif #ifndef DSP_INCLUDED #define DSP_INCLUDED void *safe_malloc (unsigned long); void safe_free (void *); void IIRFilt( float * h, unsigned long Nsos, float * z, float * x, unsigned long Nx, float * y ); unsigned long nextpow2(unsigned long X); int ispow2(unsigned long X); int intlog2(unsigned long X); void FFTInit(unsigned long N); void FFTFree(void); void RealFFT(float * x, unsigned long N); void RealIFFT(float * x, unsigned long N); unsigned long FFTNXCorr( float * x1, unsigned long n1, float * x2, unsigned long n2, float * y ); void IIRsos( float * x, unsigned long Nx, float b0, float b1, float b2, float a1, float a2, float * tz1, float * tz2 ); void IIRFilt( float * h, unsigned long Nsos, float * z, float * x, unsigned long Nx, float * y ); #endif /* END OF FILE */