comparison libgsmefr/dtx.h @ 52:988fd7ff514f

libgsmefr: add state pointers to ETSI function prototypes
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 25 Nov 2022 08:22:41 +0000
parents 36e1363ad885
children a18782a7d270
comparison
equal deleted inserted replaced
51:722959d9410f 52:988fd7ff514f
45 #define RX_DTX_MUTING 0x0080 45 #define RX_DTX_MUTING 0x0080
46 #define RX_PREV_DTX_MUTING 0x0100 46 #define RX_PREV_DTX_MUTING 0x0100
47 #define RX_CNI_BFI 0x0200 47 #define RX_CNI_BFI 0x0200
48 #define RX_FIRST_SP_FLAG 0x0400 48 #define RX_FIRST_SP_FLAG 0x0400
49 49
50 void reset_tx_dtx (void); /* Reset tx dtx variables */ 50 void reset_tx_dtx (struct EFR_encoder_state *st); /* Reset tx dtx variables */
51 void reset_rx_dtx (void); /* Reset rx dtx variables */ 51 void reset_rx_dtx (struct EFR_decoder_state *st); /* Reset rx dtx variables */
52 52
53 void tx_dtx ( 53 void tx_dtx (
54 Word16 VAD_flag, 54 struct EFR_encoder_state *st,
55 Word16 *txdtx_ctrl 55 Word16 VAD_flag
56 ); 56 );
57 57
58 void rx_dtx ( 58 void rx_dtx (
59 Word16 *rxdtx_ctrl, 59 struct EFR_decoder_state *st,
60 Word16 TAF, 60 Word16 TAF,
61 Word16 bfi, 61 Word16 bfi,
62 Word16 SID_flag 62 Word16 SID_flag
63 ); 63 );
64 64
65 void CN_encoding ( 65 void CN_encoding (
66 struct EFR_encoder_state *st,
66 Word16 params[], 67 Word16 params[],
67 Word16 txdtx_ctrl 68 Word16 txdtx_ctrl
68 ); 69 );
69 70
70 void update_lsf_history ( 71 void update_lsf_history (
84 Word16 lsf2[M], 85 Word16 lsf2[M],
85 Word16 lsf_aver[M] 86 Word16 lsf_aver[M]
86 ); 87 );
87 88
88 void update_gain_code_history_tx ( 89 void update_gain_code_history_tx (
90 struct EFR_encoder_state *st,
89 Word16 new_gain_code, 91 Word16 new_gain_code,
90 Word16 gain_code_old_tx[4 * DTX_HANGOVER] 92 Word16 gain_code_old_tx[4 * DTX_HANGOVER]
91 ); 93 );
92 94
93 void update_gain_code_history_rx ( 95 void update_gain_code_history_rx (
96 struct EFR_decoder_state *st,
94 Word16 new_gain_code, 97 Word16 new_gain_code,
95 Word16 gain_code_old_rx[4 * DTX_HANGOVER] 98 Word16 gain_code_old_rx[4 * DTX_HANGOVER]
96 ); 99 );
97 100
98 Word16 compute_CN_excitation_gain ( 101 Word16 compute_CN_excitation_gain (