FreeCalypso > hg > gsm-codec-lib
view libtwamr/dhf_subst.c @ 602:72cdae602d6e
libgsmhr1/dec_func.c: rm unused static functions
In the original code, sp_dec.c held two kinds of functions: those
needed only as part of the decoder, and those used by both decoder
and encoder engines. In this library, we have moved the latter
class of functions to dec_func.c module. Almost all static functions
from the original sp_dec.c, with the exception of aToRc(), are
needed only on sp_dec.c side of the new divide - remove them from
dec_func.c, where they became dead code.
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 04 Dec 2025 18:58:22 +0000 |
| parents | f0496507d409 |
| children |
line wrap: on
line source
/* * The function implemented in this module is an aid for AMR-EFR interworking: * it is meant to be invoked directly after amr_encode_frame(), it checks * the encoder output for MR122 DHF, and if the generated frame exactly * matches MR122 DHF, it is changed to GSM-EFR DHF. */ #include <stdint.h> #include <string.h> #include "tw_amr.h" void amr_dhf_subst_efr(struct amr_param_frame *frame) { if (frame->type != TX_SPEECH_GOOD) return; if (frame->mode != MR122) return; if (memcmp(frame->param, amr_dhf_mr122, AMR_MAX_PRM * sizeof(int16_t))) return; memcpy(frame->param, amr_dhf_gsmefr, AMR_MAX_PRM * sizeof(int16_t)); }
