FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/ex_ctrl.h @ 364:3f27ca24c620
libtwamr: integrate ex_ctrl.c
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Mon, 06 May 2024 02:54:36 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 363:0349de7c45b7 | 364:3f27ca24c620 |
|---|---|
| 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 : ex_ctrl.h | |
| 11 * Purpose : Excitation Control module in background noise | |
| 12 * | |
| 13 ******************************************************************************** | |
| 14 */ | |
| 15 #ifndef ex_ctrl_h | |
| 16 #define ex_ctrl_h "$Id $" | |
| 17 | |
| 18 /* | |
| 19 ******************************************************************************** | |
| 20 * INCLUDE FILES | |
| 21 ******************************************************************************** | |
| 22 */ | |
| 23 #include "typedef.h" | |
| 24 #include "cnst.h" | |
| 25 | |
| 26 /* | |
| 27 ******************************************************************************** | |
| 28 * LOCAL VARIABLES AND TABLES | |
| 29 ******************************************************************************** | |
| 30 */ | |
| 31 #define L_ENERGYHIST 60 | |
| 32 | |
| 33 /* | |
| 34 ******************************************************************************** | |
| 35 * DEFINITION OF DATA TYPES | |
| 36 ******************************************************************************** | |
| 37 */ | |
| 38 | |
| 39 /* | |
| 40 ******************************************************************************** | |
| 41 * DECLARATION OF PROTOTYPES | |
| 42 ******************************************************************************** | |
| 43 */ | |
| 44 | |
| 45 /* | |
| 46 ************************************************************************** | |
| 47 * | |
| 48 * Function : Ex_ctrl | |
| 49 * Purpose : Charaterice synthesis speech and detect background noise | |
| 50 * Returns : background noise decision; 0 = bgn, 1 = no bgn | |
| 51 * | |
| 52 ************************************************************************** | |
| 53 */ | |
| 54 Word16 Ex_ctrl (Word16 excitation[], /*i/o: Current subframe excitation */ | |
| 55 Word16 excEnergy, /* i : Exc. Energy, sqrt(totEx*totEx)*/ | |
| 56 Word16 exEnergyHist[], /* i : History of subframe energies */ | |
| 57 Word16 voicedHangover, /* i : # of fr. after last voiced fr.*/ | |
| 58 Word16 prevBFI, /* i : Set i previous BFI */ | |
| 59 Word16 carefulFlag /* i : Restrict dymamic in scaling */ | |
| 60 ); | |
| 61 | |
| 62 #endif |
