view libgsmhr1/err_conc.h @ 603:27df1cef042c

libgsmhr1: put aToRc() only in dec_func.c This function was originally static in sp_dec.c, but now it is needed both in sp_dec.c and in dec_func.c shared decoder+encoder functions. Solution: give it intermodule linkage, and let it reside in dec_func.c only.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 04 Dec 2025 19:05:38 +0000
parents 5a7d04bf26f5
children
line wrap: on
line source

#ifndef __ERR_CONC
#define __ERR_CONC

#include "typedefs.h"
#include "tw_gsmhr.h"

/*_________________________________________________________________________
 |                                                                         |
 |                            Function Prototypes                          |
 |_________________________________________________________________________|
*/

  Shortword level_calc(Shortword swInd, Longword *pl_en);

  void   level_estimator_det(struct gsmhr_decoder_state *st,
                                Shortword *pswLevelMean,
                                Shortword *pswLevelMax);

  void   level_estimator_upd(struct gsmhr_decoder_state *st,
                                Shortword pswDecodedSpeechFrame[]);

  void   signal_conceal_sub(Shortword pswPPFExcit[],
                     Shortword ppswSynthAs[], Shortword pswSynthFiltState[],
                       Shortword pswLtpStateOut[], Shortword pswPPreState[],
                                Shortword swLevelMean, Shortword swLevelMax,
                            Shortword swErrorFlag1, Shortword swMuteFlagOld,
                            Shortword *pswMuteFlag, Shortword swMutePermit);

#endif