FreeCalypso > hg > gsm-codec-lib
diff libgsmefr/codec.h @ 94:d80e9f12a1d1
libgsmefr: decoder main function put together
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 26 Nov 2022 18:52:49 +0000 |
parents | cb080ec1817e |
children |
line wrap: on
line diff
--- a/libgsmefr/codec.h Sat Nov 26 17:56:24 2022 +0000 +++ b/libgsmefr/codec.h Sat Nov 26 18:52:49 2022 +0000 @@ -10,10 +10,10 @@ void Decoder_12k2 ( struct EFR_decoder_state *st, - Word16 bfi, /* input : Bad Frame Indication */ - Word16 parm[], /* input : vector of synthesis parameters */ - Word16 synth[], /* output: synthesis speech */ - Word16 A_t[], /* output: decoded LP filter in 4 subframes */ + Word16 bfi, /* input : Bad Frame Indication */ + const Word16 parm[], /* input : vector of synthesis parameters */ + Word16 synth[], /* output: synthesis speech */ + Word16 A_t[], /* output: decoded LP filter in 4 subframes */ Word16 TAF, Word16 SID_flag ); @@ -36,8 +36,8 @@ Word16 indx[] /* (o) : index of 10 pulses (sign + position) */ ); void dec_10i40_35bits ( - Word16 index[], /* (i) : index of 10 pulses (sign+position) */ - Word16 cod[] /* (o) : algebraic (fixed) codebook excitation */ + const Word16 index[],/* (i) : index of 10 pulses (sign+position) */ + Word16 cod[] /* (o) : algebraic (fixed) codebook excitation */ ); Word16 Dec_lag6 ( /* output: return integer pitch lag */ @@ -77,11 +77,11 @@ ); void D_plsf_5 ( struct EFR_decoder_state *st, - Word16 *indice, /* input : quantization indices of 5 submatrices */ - Word16 *lsp1_q, /* output: quantized 1st LSP vector */ - Word16 *lsp2_q, /* output: quantized 2nd LSP vector */ - Word16 bfi, /* input : bad frame indicator (set to 1 if a bad - frame is received) */ + const Word16 *indice,/* input : quantization indices of 5 submatrices */ + Word16 *lsp1_q, /* output: quantized 1st LSP vector */ + Word16 *lsp2_q, /* output: quantized 2nd LSP vector */ + Word16 bfi, /* input : bad frame indicator (set to 1 if a bad + frame is received) */ Word16 rxdtx_ctrl, Word16 rx_dtx_state );