FreeCalypso > hg > gsm-codec-lib
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 93:b651adfce60d | 94:d80e9f12a1d1 |
|---|---|
| 8 | 8 |
| 9 void Init_Decoder_12k2 (struct EFR_decoder_state *st); | 9 void Init_Decoder_12k2 (struct EFR_decoder_state *st); |
| 10 | 10 |
| 11 void Decoder_12k2 ( | 11 void Decoder_12k2 ( |
| 12 struct EFR_decoder_state *st, | 12 struct EFR_decoder_state *st, |
| 13 Word16 bfi, /* input : Bad Frame Indication */ | 13 Word16 bfi, /* input : Bad Frame Indication */ |
| 14 Word16 parm[], /* input : vector of synthesis parameters */ | 14 const Word16 parm[], /* input : vector of synthesis parameters */ |
| 15 Word16 synth[], /* output: synthesis speech */ | 15 Word16 synth[], /* output: synthesis speech */ |
| 16 Word16 A_t[], /* output: decoded LP filter in 4 subframes */ | 16 Word16 A_t[], /* output: decoded LP filter in 4 subframes */ |
| 17 Word16 TAF, | 17 Word16 TAF, |
| 18 Word16 SID_flag | 18 Word16 SID_flag |
| 19 ); | 19 ); |
| 20 | 20 |
| 21 void Init_Post_Filter (struct EFR_decoder_state *st); | 21 void Init_Post_Filter (struct EFR_decoder_state *st); |
| 34 Word16 cod[], /* (o) : algebraic (fixed) codebook excitation */ | 34 Word16 cod[], /* (o) : algebraic (fixed) codebook excitation */ |
| 35 Word16 y[], /* (o) : filtered fixed codebook excitation */ | 35 Word16 y[], /* (o) : filtered fixed codebook excitation */ |
| 36 Word16 indx[] /* (o) : index of 10 pulses (sign + position) */ | 36 Word16 indx[] /* (o) : index of 10 pulses (sign + position) */ |
| 37 ); | 37 ); |
| 38 void dec_10i40_35bits ( | 38 void dec_10i40_35bits ( |
| 39 Word16 index[], /* (i) : index of 10 pulses (sign+position) */ | 39 const Word16 index[],/* (i) : index of 10 pulses (sign+position) */ |
| 40 Word16 cod[] /* (o) : algebraic (fixed) codebook excitation */ | 40 Word16 cod[] /* (o) : algebraic (fixed) codebook excitation */ |
| 41 ); | 41 ); |
| 42 | 42 |
| 43 Word16 Dec_lag6 ( /* output: return integer pitch lag */ | 43 Word16 Dec_lag6 ( /* output: return integer pitch lag */ |
| 44 struct EFR_decoder_state *st, | 44 struct EFR_decoder_state *st, |
| 45 Word16 index, /* input : received pitch index */ | 45 Word16 index, /* input : received pitch index */ |
| 75 Word16 rx_dtx_state | 75 Word16 rx_dtx_state |
| 76 | 76 |
| 77 ); | 77 ); |
| 78 void D_plsf_5 ( | 78 void D_plsf_5 ( |
| 79 struct EFR_decoder_state *st, | 79 struct EFR_decoder_state *st, |
| 80 Word16 *indice, /* input : quantization indices of 5 submatrices */ | 80 const Word16 *indice,/* input : quantization indices of 5 submatrices */ |
| 81 Word16 *lsp1_q, /* output: quantized 1st LSP vector */ | 81 Word16 *lsp1_q, /* output: quantized 1st LSP vector */ |
| 82 Word16 *lsp2_q, /* output: quantized 2nd LSP vector */ | 82 Word16 *lsp2_q, /* output: quantized 2nd LSP vector */ |
| 83 Word16 bfi, /* input : bad frame indicator (set to 1 if a bad | 83 Word16 bfi, /* input : bad frame indicator (set to 1 if a bad |
| 84 frame is received) */ | 84 frame is received) */ |
| 85 Word16 rxdtx_ctrl, | 85 Word16 rxdtx_ctrl, |
| 86 Word16 rx_dtx_state | 86 Word16 rx_dtx_state |
| 87 ); | 87 ); |
| 88 | 88 |
| 89 Word16 Enc_lag6 ( /* output: Return index of encoding */ | 89 Word16 Enc_lag6 ( /* output: Return index of encoding */ |
