comparison libgsmefr/bfi_nodata.c @ 99:7152cc7d1ca3

libgsmefr: implement EFR_decode_bfi_nodata()
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 26 Nov 2022 21:51:52 +0000
parents
children eefef9f6d533
comparison
equal deleted inserted replaced
98:18866c0354ef 99:7152cc7d1ca3
1 /*
2 * In the expected usage mode of our libgsmefr decoder as part of "soft TRAU"
3 * uplink implementation, there will be times when the radio subsystem tells
4 * us that a frame has been lost, but we don't have any errored bits to feed
5 * to the decoder as ETSI canon calls for. We could of course call
6 * EFR_decode_frame() with a dummy frame of all zeros and BFI=1, but the
7 * EFR_decode_bfi_nodata() function provided in this module accomplishes
8 * the same effect more efficiently.
9 */
10
11 #include <string.h>
12 #include "gsm_efr.h"
13
14 void EFR_decode_bfi_nodata(struct EFR_decoder_state *st, int taf,
15 int16_t *pcm_out)
16 {
17 int16_t params[EFR_NUM_PARAMS];
18
19 memset(params, 0, sizeof(int16_t) * EFR_NUM_PARAMS);
20 EFR_decode_params(st, params, 1, 0, taf, pcm_out);
21 }