FreeCalypso > hg > gsm-codec-lib
view libgsmfrp/internal.h @ 36:b5726d659915
libgsmefr: rename sidclass.c to sid_class.c,
in preparation for adding sid_insert.c
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 24 Nov 2022 02:36:47 +0000 |
parents | 286d5f097eb4 |
children | 3b64f255689a |
line wrap: on
line source
/* * This header file is internal to libgsmfrp; * here we define our state structure. */ enum rx_state { NO_DATA = 0, SPEECH, SPEECH_MUTING, COMFORT_NOISE, LOST_SID, }; struct gsmfr_preproc_state { enum rx_state rx_state; int got_valid_sid; gsm_frame speech_frame; gsm_byte sid_prefix[5]; uint8_t sid_xmaxc[4]; 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 function */ extern void gsmfr_preproc_gen_cn(struct gsmfr_preproc_state *state, gsm_byte *frame);