FreeCalypso > hg > gsm-codec-lib
view libgsmhr1/dec_state.h @ 602:72cdae602d6e
libgsmhr1/dec_func.c: rm unused static functions
In the original code, sp_dec.c held two kinds of functions: those
needed only as part of the decoder, and those used by both decoder
and encoder engines. In this library, we have moved the latter
class of functions to dec_func.c module. Almost all static functions
from the original sp_dec.c, with the exception of aToRc(), are
needed only on sp_dec.c side of the new divide - remove them from
dec_func.c, where they became dead code.
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 04 Dec 2025 18:58:22 +0000 |
| parents | c7c03231002d |
| children |
line wrap: on
line source
/* * This library-internal header file provides definition for * struct gsmhr_decoder_state, the state structure for our speech * decoder engine - the full endpoint version, as opposed to TFO * transform. */ #ifndef dec_state_h #define dec_state_h #include "typedefs.h" #include "rxfe.h" #define LTP_LEN 147 /* 147==0x93 length of LTP history */ struct gsmhr_decoder_state { struct gsmhr_rxfe_state rxfe; int is_homed; /* state variables from err_conc.c */ Longword plSubfrEnergyMem[4]; Shortword swLevelMem[4]; /* state variables from sp_dec.c */ Shortword gswPostFiltAgcGain; Shortword gpswPostFiltStateNum[NP]; Shortword gpswPostFiltStateDenom[NP]; Shortword swPostEmphasisState; Shortword pswSynthFiltState[NP]; Shortword pswOldFrmKsDec[NP]; Shortword pswOldFrmAsDec[NP]; Shortword pswOldFrmPFNum[NP]; Shortword pswOldFrmPFDenom[NP]; Shortword swOldR0Dec; Shortword pswLtpStateBaseDec[LTP_LEN + S_LEN]; Shortword pswPPreState[LTP_LEN + S_LEN]; Shortword swMuteFlagOld; /* comfort noise interpolation */ Shortword swRxDTXState; Shortword swR0OldCN; Longword pL_OldCorrSeq[NP + 1]; Longword pL_NewCorrSeq[NP + 1]; Longword pL_CorrSeq[NP + 1]; }; #endif
