FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/hp_max.h @ 379:176a44ff94a1
libtwamr: integrate hp_max.c
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Mon, 06 May 2024 05:10:03 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 378:ccba5812fa44 | 379:176a44ff94a1 |
|---|---|
| 1 /* | |
| 2 ******************************************************************************** | |
| 3 * | |
| 4 * GSM AMR-NB speech codec R98 Version 7.6.0 December 12, 2001 | |
| 5 * R99 Version 3.3.0 | |
| 6 * REL-4 Version 4.1.0 | |
| 7 * | |
| 8 ******************************************************************************** | |
| 9 * | |
| 10 * File : hp_max.h | |
| 11 * Purpose : Find the maximum correlation of scal_sig[] in a given | |
| 12 * delay range. | |
| 13 * | |
| 14 ******************************************************************************** | |
| 15 */ | |
| 16 #ifndef hp_max_h | |
| 17 #define hp_max_h "$Id $" | |
| 18 | |
| 19 /* | |
| 20 ******************************************************************************** | |
| 21 * INCLUDE FILES | |
| 22 ******************************************************************************** | |
| 23 */ | |
| 24 #include "typedef.h" | |
| 25 | |
| 26 /* | |
| 27 ******************************************************************************** | |
| 28 * DECLARATION OF PROTOTYPES | |
| 29 ******************************************************************************** | |
| 30 */ | |
| 31 /************************************************************************* | |
| 32 * | |
| 33 * FUNCTION: hp_max | |
| 34 * | |
| 35 * PURPOSE: Find the maximum high-pass filtered correlation of | |
| 36 * signal scal_sig[] in a given delay range. | |
| 37 * | |
| 38 * DESCRIPTION: | |
| 39 * The correlation is given by | |
| 40 * corr[t] = <scal_sig[n],scal_sig[n-t]>, t=lag_min,...,lag_max | |
| 41 * The functions outputs the maximum high-pass filtered correlation | |
| 42 * after normalization. | |
| 43 * | |
| 44 *************************************************************************/ | |
| 45 Word16 hp_max ( | |
| 46 Word32 corr[], /* i : correlation vector. */ | |
| 47 Word16 scal_sig[], /* i : scaled signal. */ | |
| 48 Word16 L_frame, /* i : length of frame to compute pitch */ | |
| 49 Word16 lag_max, /* i : maximum lag */ | |
| 50 Word16 lag_min, /* i : minimum lag */ | |
| 51 Word16 *cor_hp_max /* o : max high-pass filtered norm. correlation */ | |
| 52 ); | |
| 53 #endif |
