FreeCalypso > hg > gsm-codec-lib
annotate libgsmefr/Makefile @ 242:f081a6850fb5
libgsmfrp: new refined implementation
The previous implementation exhibited the following defects,
which are now fixed:
1) The last received valid SID was cached forever for the purpose of
handling future invalid SIDs - we could have received some valid
SID ages ago, then lots of speech or NO_DATA, and if we then get
an invalid SID, we would resurrect the last valid SID from ancient
history - a bad design. In our new design, we handle invalid SID
based on the current state, much like BFI.
2) GSM 06.11 spec says clearly that after the second lost SID
(received BFI=1 && TAF=1 in CN state) we need to gradually decrease
the output level, rather than jump directly to emitting silence
frames - we previously failed to implement such logic.
3) Per GSM 06.12 section 5.2, Xmaxc should be the same in all 4 subframes
in a SID frame. What should we do if we receive an otherwise valid
SID frame with different Xmaxc? Our previous approach would
replicate this Xmaxc oddity in every subsequent generated CN frame,
which is rather bad. In our new design, the very first CN frame
(which can be seen as a transformation of the SID frame itself)
retains the original 4 distinct Xmaxc, but all subsequent CN frames
are based on the Xmaxc from the last subframe of the most recent SID.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 09 May 2023 05:16:31 +0000 |
parents | 0494279ae379 |
children | 1c514150c033 |
rev | line source |
---|---|
2
2b5770c715ee
libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
2b5770c715ee
libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
99
7152cc7d1ca3
libgsmefr: implement EFR_decode_bfi_nodata()
Mychaela Falconia <falcon@freecalypso.org>
parents:
95
diff
changeset
|
3 OBJS= agc.o autocorr.o az_lsp.o basicop2.o bfi_nodata.o c1035pf.o cod_12k2.o \ |
7152cc7d1ca3
libgsmefr: implement EFR_decode_bfi_nodata()
Mychaela Falconia <falcon@freecalypso.org>
parents:
95
diff
changeset
|
4 convolve.o d1035pf.o d_gains.o d_homing.o d_plsf_5.o dec_12k2.o \ |
119
c1d53064b410
libgsmefr: split dtx.c into dtx_{common,dec,enc}.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
5 dec_create.o dec_lag6.o dec_main.o dec_wrap.o dtx_common.o dtx_dec.o \ |
c1d53064b410
libgsmefr: split dtx.c into dtx_{common,dec,enc}.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
6 dtx_enc.o e_homing.o enc_create.o enc_lag6.o enc_main.o enc_wrap.o \ |
c1d53064b410
libgsmefr: split dtx.c into dtx_{common,dec,enc}.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
7 frame2params.o g_code.o g_pitch.o int_lpc.o inter_6.o inv_sqrt.o \ |
c1d53064b410
libgsmefr: split dtx.c into dtx_{common,dec,enc}.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
8 lag_wind.o levinson.o log2.o lsp_az.o lsp_lsf.o oper_32b.o \ |
c1d53064b410
libgsmefr: split dtx.c into dtx_{common,dec,enc}.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
9 params2frame.o pitch_f6.o pitch_ol.o pow2.o pre_proc.o pred_lt6.o \ |
c1d53064b410
libgsmefr: split dtx.c into dtx_{common,dec,enc}.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
10 preemph.o pstfilt2.o q_gains.o q_plsf5_tab.o q_plsf_5.o reorder.o \ |
c1d53064b410
libgsmefr: split dtx.c into dtx_{common,dec,enc}.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
11 residu.o sid_class.o sid_insert.o syn_filt.o tls_flags.o vad.o \ |
c1d53064b410
libgsmefr: split dtx.c into dtx_{common,dec,enc}.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
12 weight_a.o |
c1d53064b410
libgsmefr: split dtx.c into dtx_{common,dec,enc}.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
118
diff
changeset
|
13 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
|
14 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
|
15 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
|
16 LIB= libgsmefr.a |
2
2b5770c715ee
libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 |
20
93ed41fb4038
libgsmfrp/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
6
diff
changeset
|
18 INSTALL_PREFIX= /usr/local |
93ed41fb4038
libgsmfrp/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
6
diff
changeset
|
19 |
2
2b5770c715ee
libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 all: ${LIB} |
2b5770c715ee
libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 |
40
0f1fe48bdb46
libgsmefr/Makefile: add header file dependencies
Mychaela Falconia <falcon@freecalypso.org>
parents:
38
diff
changeset
|
22 ${OBJS}: ${HDRS} |
0f1fe48bdb46
libgsmefr/Makefile: add header file dependencies
Mychaela Falconia <falcon@freecalypso.org>
parents:
38
diff
changeset
|
23 |
2
2b5770c715ee
libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 ${LIB}: ${OBJS} |
2b5770c715ee
libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 ar rcu $@ ${OBJS} |
2b5770c715ee
libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 ranlib $@ |
2b5770c715ee
libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 |
20
93ed41fb4038
libgsmfrp/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
6
diff
changeset
|
28 install: |
204
0494279ae379
libgsmefr/Makefile: enable library install
Mychaela Falconia <falcon@freecalypso.org>
parents:
119
diff
changeset
|
29 mkdir -p ${INSTALL_PREFIX}/include |
0494279ae379
libgsmefr/Makefile: enable library install
Mychaela Falconia <falcon@freecalypso.org>
parents:
119
diff
changeset
|
30 install -c -m 444 gsm_efr.h ${INSTALL_PREFIX}/include |
0494279ae379
libgsmefr/Makefile: enable library install
Mychaela Falconia <falcon@freecalypso.org>
parents:
119
diff
changeset
|
31 mkdir -p ${INSTALL_PREFIX}/lib |
0494279ae379
libgsmefr/Makefile: enable library install
Mychaela Falconia <falcon@freecalypso.org>
parents:
119
diff
changeset
|
32 install -c -m 444 ${LIB} ${INSTALL_PREFIX}/lib |
20
93ed41fb4038
libgsmfrp/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
6
diff
changeset
|
33 |
2
2b5770c715ee
libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 clean: |
2b5770c715ee
libgsmfrp: compiling utility functions
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 rm -f *.[oa] errs |