comparison libgsmefr/dec_wrap.c @ 95:f80a3202c8ff

libgsmefr: implement main decoder wrapper
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 26 Nov 2022 18:58:56 +0000
parents
children
comparison
equal deleted inserted replaced
94:d80e9f12a1d1 95:f80a3202c8ff
1 /*
2 * This module contains our EFR_decode_frame() function, which is the primary
3 * (most common, most useful) interface to our EFR decoder.
4 */
5
6 #include "gsm_efr.h"
7
8 void EFR_decode_frame(struct EFR_decoder_state *st, const uint8_t *frame,
9 int bfi, int taf, int16_t *pcm_out)
10 {
11 int16_t params[EFR_NUM_PARAMS];
12 int sid;
13
14 EFR_frame2params(frame, params);
15 sid = EFR_sid_classify(frame);
16 EFR_decode_params(st, params, bfi, sid, taf, pcm_out);
17 }