FreeCalypso > hg > gsmhr-codec-ref
view dtx.h @ 5:59fc7fc126d0
mv utils.c reid.c
In the original GSM 06.06 code drop, reid.c resides in the "utilities"
collection (Dir_UTIL.zip), but there is also a copy of reid.c named
utils.c in the "C" collection (Dir_C.zip), even though it is never
compiled or linked as such.
When I originally created the present Hg repository, I did not intend
to include REID, only the main body of the codec - but I overlooked
that utils.c copy, so it got imported. In the present time, however,
it has become useful to have REID code in Hg for easier public study
and discussion - so let's have it under its proper name.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 22 Jul 2024 18:43:12 +0000 |
parents | 9008dbc8ca74 |
children |
line wrap: on
line source
#ifndef __DTX #define __DTX #include "typedefs.h" #define PN_INIT_SEED (Longword)0x1091988L /* initial seed for Comfort * noise pn-generator */ #define CNINTPER 12 /* inperpolation period of CN * parameters */ #define SPEECH 1 #define CNIFIRSTSID 2 #define CNICONT 3 #define CNIBFI 4 #define VALIDSID 11 #define INVALIDSID 22 #define GOODSPEECH 33 #define UNUSABLE 44 /*________________________________________________________________________ | | | Function Prototypes | |________________________________________________________________________| */ void avgCNHist(Longword pL_R0History[], Longword ppL_CorrHistory[OVERHANG][NP + 1], Longword *pL_AvgdR0, Longword pL_AvgdCorrSeq[]); void avgGsHistQntz(Longword pL_GsHistory[], Longword *pL_GsAvgd); Shortword swComfortNoise(Shortword swVadFlag, Longword L_UnqntzdR0, Longword *pL_UnqntzdCorr); Shortword getPnBits(int iBits, Longword *L_PnSeed); Shortword gsQuant(Longword L_GsIn, Shortword swVoicingMode); void updateCNHist(Longword L_UnqntzdR0, Longword *pL_UnqntzdCorr, Longword pL_R0Hist[], Longword ppL_CorrHist[OVERHANG][NP + 1]); void lpcCorrQntz(Longword pL_CorrelSeq[], Shortword pswFinalRc[], int piVQCodewds[]); Longword linInterpSid(Longword L_New, Longword L_Old, Shortword swDtxState); Shortword linInterpSidShort(Shortword swNew, Shortword swOld, Shortword swDtxState); void rxInterpR0Lpc(Shortword *pswOldKs, Shortword *pswNewKs, Shortword swRxDTXState, Shortword swDecoMode, Shortword swFrameType); #endif