FreeCalypso > hg > gsm-codec-lib
comparison libgsmfrp/internal.h @ 108:3b64f255689a
libgsmfrp: factor out PRNG into its own module,
in preparation for using it as part of speech muting too
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 28 Nov 2022 04:00:18 +0000 |
parents | 286d5f097eb4 |
children | f081a6850fb5 |
comparison
equal
deleted
inserted
replaced
107:41f1ae68d253 | 108:3b64f255689a |
---|---|
22 }; | 22 }; |
23 | 23 |
24 /* we use the same LFSR PRNG for CN as ETSI EFR implementation */ | 24 /* we use the same LFSR PRNG for CN as ETSI EFR implementation */ |
25 #define PN_INITIAL_SEED 0x70816958L /* Pseudo noise generator seed value */ | 25 #define PN_INITIAL_SEED 0x70816958L /* Pseudo noise generator seed value */ |
26 | 26 |
27 /* internal function */ | 27 /* internal functions */ |
28 extern void gsmfr_preproc_gen_cn(struct gsmfr_preproc_state *state, | 28 extern void gsmfr_preproc_gen_cn(struct gsmfr_preproc_state *state, |
29 gsm_byte *frame); | 29 gsm_byte *frame); |
30 extern uint16_t gsmfr_preproc_prng(struct gsmfr_preproc_state *state, | |
31 uint16_t no_bits); |