view libgsmhr1/dtx_enc.h @ 618:e6e9d5104503

libgsmhr1: integrate DTX encoder function lpcCorrQntz()
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 05 Mar 2026 20:11:30 +0000
parents 7ce83c70ec5f
children
line wrap: on
line source

#ifndef __DTX_ENC
#define __DTX_ENC

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

/*________________________________________________________________________
 |                                                                        |
 |                      Function Prototypes                               |
 |________________________________________________________________________|
*/

void avgCNHist(Longword pL_R0History[],
		Longword ppL_CorrHistory[OVERHANG][NP + 1],
		Longword *pL_AvgdR0, Longword pL_AvgdCorrSeq[]);

Shortword swComfortNoise(struct gsmhr_encoder_state *st, Shortword swVadFlag,
			 Longword L_UnqntzdR0, Longword *pL_UnqntzdCorr);

void updateCNHist(struct gsmhr_encoder_state *st, Longword L_UnqntzdR0,
		  Longword *pL_UnqntzdCorr, Longword pL_R0Hist[],
		  Longword ppL_CorrHist[OVERHANG][NP + 1]);

void lpcCorrQntz(struct gsmhr_encoder_state *st, Longword pL_CorrelSeq[],
		 Shortword pswFinalRc[], int piVQCodewds[]);

#endif