annotate libgsmefr/Makefile @ 581:e2d5cad04cbf

libgsmhr1 RxFE: store CN R0+LPC separately from speech In the original GSM 06.06 code the ECU for speech mode is entirely separate from the CN generator, maintaining separate state. (The main intertie between them is the speech vs CN state variable, distinguishing between speech and CN BFIs, in addition to the CN-specific function of distinguishing between initial and update SIDs.) In the present RxFE implementation I initially thought that we could use the same saved_frame buffer for both ECU and CN, overwriting just the first 4 params (R0 and LPC) when a valid SID comes in. However, I now realize it was a bad idea: the original code has a corner case (long sequence of speech-mode BFIs to put the ECU in state 6, then SID and CN-mode BFIs, then a good speech frame) that would be broken by that buffer reuse approach. We could eliminate this corner case by resetting the ECU state when passing through a CN insertion period, but doing so would needlessly increase the behavioral diffs between GSM 06.06 and our version. Solution: use a separate CN-specific buffer for CN R0+LPC parameters, and match the behavior of GSM 06.06 code in this regard.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 13 Feb 2025 10:02:45 +0000
parents f2d0f2f15d5f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
347
1c514150c033 libgsmefr: first big perf opt: inline most basic_op.h functions
Mychaela Falconia <falcon@freecalypso.org>
parents: 204
diff changeset
1 OBJS= agc.o autocorr.o az_lsp.o basicops.o bfi_nodata.o c1035pf.o cod_12k2.o \
99
7152cc7d1ca3 libgsmefr: implement EFR_decode_bfi_nodata()
Mychaela Falconia <falcon@freecalypso.org>
parents: 95
diff changeset
2 convolve.o d1035pf.o d_gains.o d_homing.o d_plsf_5.o dec_12k2.o \
542
f2d0f2f15d5f libgsmefr: add wrapper for TW-TS-001 RTP input
Mychaela Falconia <falcon@freecalypso.org>
parents: 470
diff changeset
3 dec_create.o dec_lag6.o dec_main.o dec_rtp_in.o dec_wrap.o dhf.o \
f2d0f2f15d5f libgsmefr: add wrapper for TW-TS-001 RTP input
Mychaela Falconia <falcon@freecalypso.org>
parents: 470
diff changeset
4 dtx_common.o dtx_dec.o dtx_enc.o e_homing.o enc_create.o enc_lag6.o \
f2d0f2f15d5f libgsmefr: add wrapper for TW-TS-001 RTP input
Mychaela Falconia <falcon@freecalypso.org>
parents: 470
diff changeset
5 enc_main.o enc_wrap.o frame2params.o g_code.o g_pitch.o int_lpc.o \
f2d0f2f15d5f libgsmefr: add wrapper for TW-TS-001 RTP input
Mychaela Falconia <falcon@freecalypso.org>
parents: 470
diff changeset
6 inter_6.o inv_sqrt.o lag_wind.o levinson.o log2.o lsp_az.o lsp_lsf.o \
f2d0f2f15d5f libgsmefr: add wrapper for TW-TS-001 RTP input
Mychaela Falconia <falcon@freecalypso.org>
parents: 470
diff changeset
7 oper_32b.o params2frame.o pitch_f6.o pitch_ol.o pow2.o pre_proc.o \
f2d0f2f15d5f libgsmefr: add wrapper for TW-TS-001 RTP input
Mychaela Falconia <falcon@freecalypso.org>
parents: 470
diff changeset
8 pred_lt6.o preemph.o pstfilt2.o q_gains.o q_plsf5_tab.o q_plsf_5.o \
f2d0f2f15d5f libgsmefr: add wrapper for TW-TS-001 RTP input
Mychaela Falconia <falcon@freecalypso.org>
parents: 470
diff changeset
9 reorder.o residu.o sid_class.o sid_insert.o syn_filt.o tls_flags.o \
f2d0f2f15d5f libgsmefr: add wrapper for TW-TS-001 RTP input
Mychaela Falconia <falcon@freecalypso.org>
parents: 470
diff changeset
10 vad.o weight_a.o
119
c1d53064b410 libgsmefr: split dtx.c into dtx_{common,dec,enc}.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 118
diff changeset
11 HDRS= basic_op.h cnst.h codec.h d_homing.h dec_state.h dtx.h dtx_defs.h \
c1d53064b410 libgsmefr: split dtx.c into dtx_{common,dec,enc}.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 118
diff changeset
12 e_homing.h enc_state.h gains_tb.h gsm_efr.h memops.h namespace.h \
c1d53064b410 libgsmefr: split dtx.c into dtx_{common,dec,enc}.c
Mychaela Falconia <falcon@freecalypso.org>
parents: 118
diff changeset
13 no_count.h oper_32b.h q_plsf5_tab.h sig_proc.h typedef.h vad.h
31
19a90fa1f608 libgsmefr: implement SID classification
Mychaela Falconia <falcon@freecalypso.org>
parents: 22
diff changeset
14 LIB= libgsmefr.a
2
2b5770c715ee libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15
453
19f1aa01ea10 new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents: 347
diff changeset
16 include ../config.defs
20
93ed41fb4038 libgsmfrp/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 6
diff changeset
17
2
2b5770c715ee libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 all: ${LIB}
2b5770c715ee libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19
40
0f1fe48bdb46 libgsmefr/Makefile: add header file dependencies
Mychaela Falconia <falcon@freecalypso.org>
parents: 38
diff changeset
20 ${OBJS}: ${HDRS}
0f1fe48bdb46 libgsmefr/Makefile: add header file dependencies
Mychaela Falconia <falcon@freecalypso.org>
parents: 38
diff changeset
21
2
2b5770c715ee libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 ${LIB}: ${OBJS}
2b5770c715ee libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 ar rcu $@ ${OBJS}
2b5770c715ee libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 ranlib $@
2b5770c715ee libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25
20
93ed41fb4038 libgsmfrp/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 6
diff changeset
26 install:
460
cb1d1ea7f2c5 new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents: 453
diff changeset
27 mkdir -p ${DESTDIR}${includedir}
cb1d1ea7f2c5 new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents: 453
diff changeset
28 install -c -m 444 gsm_efr.h ${DESTDIR}${includedir}
cb1d1ea7f2c5 new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents: 453
diff changeset
29 mkdir -p ${DESTDIR}${libdir}
cb1d1ea7f2c5 new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents: 453
diff changeset
30 install -c -m 444 ${LIB} ${DESTDIR}${libdir}
20
93ed41fb4038 libgsmfrp/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 6
diff changeset
31
2
2b5770c715ee libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32 clean:
2b5770c715ee libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 rm -f *.[oa] errs