FreeCalypso > hg > gsmhr-codec-ref
comparison vad.h @ 0:9008dbc8ca74
import original C code from GSM 06.06
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 14 Jun 2024 23:27:16 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:9008dbc8ca74 |
---|---|
1 #ifndef __VAD | |
2 #define __VAD | |
3 | |
4 #include "typedefs.h" | |
5 | |
6 | |
7 /*_________________________________________________________________________ | |
8 | | | |
9 | Function Prototypes | | |
10 |_________________________________________________________________________| | |
11 */ | |
12 | |
13 void vad_reset(void); | |
14 | |
15 void vad_algorithm | |
16 ( | |
17 Longword pL_acf[9], | |
18 Shortword swScaleAcf, | |
19 Shortword pswRc[4], | |
20 Shortword swPtch, | |
21 Shortword *pswVadFlag | |
22 ); | |
23 | |
24 void energy_computation | |
25 ( | |
26 Longword pL_acf[], | |
27 Shortword swScaleAcf, | |
28 Shortword pswRvad[], | |
29 Shortword swNormRvad, | |
30 Shortword *pswM_pvad, | |
31 Shortword *pswE_pvad, | |
32 Shortword *pswM_acf0, | |
33 Shortword *pswE_acf0 | |
34 ); | |
35 | |
36 | |
37 void average_acf | |
38 ( | |
39 Longword pL_acf[], | |
40 Shortword swScaleAcf, | |
41 Longword pL_av0[], | |
42 Longword pL_av1[] | |
43 ); | |
44 | |
45 void predictor_values | |
46 ( | |
47 Longword pL_av1[], | |
48 Shortword pswRav1[], | |
49 Shortword *pswNormRav1 | |
50 ); | |
51 | |
52 void schur_recursion | |
53 ( | |
54 Longword pL_av1[], | |
55 Shortword pswVpar[] | |
56 ); | |
57 | |
58 void step_up | |
59 ( | |
60 Shortword swNp, | |
61 Shortword pswVpar[], | |
62 Shortword pswAav1[] | |
63 ); | |
64 | |
65 void compute_rav1 | |
66 ( | |
67 Shortword pswAav1[], | |
68 Shortword pswRav1[], | |
69 Shortword *pswNormRav1 | |
70 ); | |
71 | |
72 void spectral_comparison | |
73 ( | |
74 Shortword pswRav1[], | |
75 Shortword swNormRav1, | |
76 Longword pL_av0[], | |
77 Shortword *pswStat | |
78 ); | |
79 | |
80 void tone_detection | |
81 ( | |
82 Shortword pswRc[4], | |
83 Shortword *pswTone | |
84 ); | |
85 | |
86 | |
87 void threshold_adaptation | |
88 ( | |
89 Shortword swStat, | |
90 Shortword swPtch, | |
91 Shortword swTone, | |
92 Shortword pswRav1[], | |
93 Shortword swNormRav1, | |
94 Shortword swM_pvad, | |
95 Shortword swE_pvad, | |
96 Shortword swM_acf0, | |
97 Shortword swE_acf0, | |
98 Shortword pswRvad[], | |
99 Shortword *pswNormRvad, | |
100 Shortword *pswM_thvad, | |
101 Shortword *pswE_thvad | |
102 ); | |
103 | |
104 void vad_decision | |
105 ( | |
106 Shortword swM_pvad, | |
107 Shortword swE_pvad, | |
108 Shortword swM_thvad, | |
109 Shortword swE_thvad, | |
110 Shortword *pswVvad | |
111 ); | |
112 | |
113 void vad_hangover | |
114 ( | |
115 Shortword swVvad, | |
116 Shortword *pswVadFlag | |
117 ); | |
118 | |
119 void periodicity_update | |
120 ( | |
121 Shortword pswLags[4], | |
122 Shortword *pswPtch | |
123 ); | |
124 | |
125 #endif |