diff libgsmfr2/pp_internal.h @ 262:573afa985df6

libgsmfr2: split pp_state.h from pp_internal.h
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 13 Apr 2024 00:43:36 +0000
parents a33edf624061
children
line wrap: on
line diff
--- a/libgsmfr2/pp_internal.h	Fri Apr 12 23:29:18 2024 +0000
+++ b/libgsmfr2/pp_internal.h	Sat Apr 13 00:43:36 2024 +0000
@@ -1,30 +1,8 @@
 /*
- * This header file is internal to libgsmfr2;
- * here we define our state structure for the Rx DTX preprocessor component.
+ * This header file is internal to libgsmfr2; it contains declarations
+ * of internal functions for the Rx DTX preprocessor component.
  */
 
-enum rx_dtx_st {
-	NO_DATA = 0,
-	SPEECH,
-	SPEECH_MUTING,
-	COMFORT_NOISE,
-	LOST_SID,
-	CN_MUTING,
-};
-
-struct gsmfr_preproc_state {
-	enum rx_dtx_st	rx_state;
-	uint8_t		speech_frame[GSMFR_RTP_FRAME_LEN];
-	uint8_t		sid_prefix[5];
-	uint8_t		sid_xmaxc;
-	uint32_t	cn_random_lfsr;
-	unsigned	cn_random_6fold;
-};
-
-/* we use the same LFSR PRNG for CN as ETSI EFR implementation */
-#define PN_INITIAL_SEED 0x70816958L   /* Pseudo noise generator seed value  */
-
-/* internal functions */
 extern void gsmfr_preproc_gen_cn(struct gsmfr_preproc_state *state,
 				 uint8_t *frame);
 extern void gsmfr_preproc_sid2cn(struct gsmfr_preproc_state *state,