view libgsmefr/dec_wrap.c @ 282:9ee8ad3d4d30

frtest: rm gsmfr-hand-test and gsmfr-max-out utils These hack programs were never properly documented and were written only as part of a debug chase, in pursuit of a bug that ultimately turned out to be in our then-hacky patch to osmo-bts-sysmo, before beginning of proper patches in Osmocom. These hack programs need to be dropped from the present sw package because they depend on old libgsm, and we are eliminating that dependency.
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 14 Apr 2024 05:44:47 +0000
parents f80a3202c8ff
children
line wrap: on
line source

/*
 * This module contains our EFR_decode_frame() function, which is the primary
 * (most common, most useful) interface to our EFR decoder.
 */

#include "gsm_efr.h"

void EFR_decode_frame(struct EFR_decoder_state *st, const uint8_t *frame,
		      int bfi, int taf, int16_t *pcm_out)
{
	int16_t params[EFR_NUM_PARAMS];
	int sid;

	EFR_frame2params(frame, params);
	sid = EFR_sid_classify(frame);
	EFR_decode_params(st, params, bfi, sid, taf, pcm_out);
}