FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/set_sign.h @ 314:15c354f75110
libtwamr: integrate set_sign.c
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 18 Apr 2024 16:58:25 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 313:69b9a1eeb5a2 | 314:15c354f75110 |
|---|---|
| 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 : set_sign.h | |
| 11 * Purpose : Builds sign vector according to "dn[]" and "cn[]". | |
| 12 * | |
| 13 ******************************************************************************** | |
| 14 */ | |
| 15 /* | |
| 16 ******************************************************************************** | |
| 17 * MODULE INCLUDE FILE AND VERSION ID | |
| 18 ******************************************************************************** | |
| 19 */ | |
| 20 #ifndef set_sign_h | |
| 21 #define set_sign_h "@(#)$Id $" | |
| 22 /* | |
| 23 ******************************************************************************** | |
| 24 * INCLUDE FILES | |
| 25 ******************************************************************************** | |
| 26 */ | |
| 27 #include "typedef.h" | |
| 28 | |
| 29 /* | |
| 30 ******************************************************************************** | |
| 31 * DECLARATION OF PROTOTYPES | |
| 32 ******************************************************************************** | |
| 33 */ | |
| 34 void set_sign(Word16 dn[], /* i/o : correlation between target and h[] */ | |
| 35 Word16 sign[], /* o : sign of dn[] */ | |
| 36 Word16 dn2[], /* o : maximum of correlation in each track. */ | |
| 37 Word16 n /* i : # of maximum correlations in dn2[] */ | |
| 38 ); | |
| 39 | |
| 40 void set_sign12k2 ( | |
| 41 Word16 dn[], /* i/o : correlation between target and h[] */ | |
| 42 Word16 cn[], /* i : residual after long term prediction */ | |
| 43 Word16 sign[], /* o : sign of d[n] */ | |
| 44 Word16 pos_max[], /* o : position of maximum correlation */ | |
| 45 Word16 nb_track, /* i : number of tracks tracks */ | |
| 46 Word16 ipos[], /* o : starting position for each pulse */ | |
| 47 Word16 step /* i : the step size in the tracks */ | |
| 48 ); | |
| 49 | |
| 50 #endif |
