comparison sp_sfrm.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 __SP_SFRM
2 #define __SP_SFRM
3
4 #include "typedefs.h"
5
6 /*_________________________________________________________________________
7 | |
8 | Function Prototypes |
9 |_________________________________________________________________________|
10 */
11
12 Shortword g_corr2(Shortword *pswIn, Shortword *pswIn2,
13 Longword *pL_out);
14
15 int closedLoopLagSearch(Shortword pswLagList[],
16 int iNumLags,
17 Shortword pswLtpState[],
18 Shortword pswHCoefs[],
19 Shortword pswPVect[],
20 Shortword *pswLag,
21 Shortword *pswLtpShift);
22
23 void decorr(int iNumVects,
24 Shortword pswGivenVect[],
25 Shortword pswVects[]);
26
27 Shortword g_quant_vl(Shortword swUVCode,
28 Shortword pswWInput[],
29 Shortword swWIShift,
30 Shortword pswWLTPVec[],
31 Shortword pswWVSVec1[],
32 Shortword pswWVSVec2[],
33 struct NormSw snsRs00,
34 struct NormSw snsRs11,
35 struct NormSw snsRs22);
36
37 void gainTweak(struct NormSw *psErrorTerm);
38
39 void hnwFilt(Shortword pswInSample[],
40 Shortword pswOutSample[],
41 Shortword pswState[],
42 Shortword pswInCoef[],
43 int iStateOffset,
44 Shortword swZeroState,
45 int iNumSamples);
46
47 void sfrmAnalysis(Shortword *pswWSpeech,
48 Shortword swVoicingMode,
49 struct NormSw snsSqrtRs,
50 Shortword *pswHCoefs,
51 Shortword *pswLagList,
52 short siNumLags,
53 Shortword swPitch,
54 Shortword swHNWCoef,
55 short *psiLagCode,
56 short *psiVSCode1,
57 short *psiVSCode2,
58 short *psiGsp0Code,
59 Shortword swSP);
60
61 Shortword v_srch(Shortword pswWInput[],
62 Shortword pswWBasisVecs[],
63 short int siNumBasis);
64
65 #endif