FreeCalypso > hg > gsm-codec-lib
annotate hrutil/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 | b4c4ed4b1b91 |
children | fc7a59deb3c3 |
rev | line source |
---|---|
570
b4c4ed4b1b91
hrutil: new program gsmhr-cod-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
568
diff
changeset
|
1 PROGS= gsmhr-cod-craft gsmhr-cod-parse gsmhr-cod2hex gsmhr-dec-craft \ |
b4c4ed4b1b91
hrutil: new program gsmhr-cod-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
568
diff
changeset
|
2 gsmhr-dec-parse gsmhr-dec2hex gsmhr-hex2dec gsmhr-hex2rpf gsmhr-rpf2hex\ |
b4c4ed4b1b91
hrutil: new program gsmhr-cod-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
568
diff
changeset
|
3 tw5b-dump |
515
bb36ef735f25
hrutil: starting with gsmhr-cod-parse
Mychaela Falconia <falcon@freecalypso.org>
parents:
472
diff
changeset
|
4 LIBHR1= ../libgsmhr1/libgsmhr1.a |
557
129c895a0564
hrutil: new program gsmhr-cod2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
518
diff
changeset
|
5 LIBTEST=../libtest/libtest.a |
562
901753f59f88
gsmhr-cod-parse: read native endian by default
Mychaela Falconia <falcon@freecalypso.org>
parents:
559
diff
changeset
|
6 LIBS= ${LIBHR1} ${LIBTEST} |
453
19f1aa01ea10
new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents:
436
diff
changeset
|
7 |
19f1aa01ea10
new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents:
436
diff
changeset
|
8 include ../config.defs |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 |
27
896ce7f1d271
frtest: cn-debug is now gsmfr-max-out
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
10 all: ${PROGS} |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 |
570
b4c4ed4b1b91
hrutil: new program gsmhr-cod-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
568
diff
changeset
|
12 gsmhr-cod-craft: cod-craft.o ${LIBHR1} |
b4c4ed4b1b91
hrutil: new program gsmhr-cod-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
568
diff
changeset
|
13 ${CC} ${CFLAGS} -o $@ $^ |
b4c4ed4b1b91
hrutil: new program gsmhr-cod-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
568
diff
changeset
|
14 |
562
901753f59f88
gsmhr-cod-parse: read native endian by default
Mychaela Falconia <falcon@freecalypso.org>
parents:
559
diff
changeset
|
15 gsmhr-cod-parse: cod-parse.o print-frame.o read-cod.o ${LIBS} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
435
diff
changeset
|
16 ${CC} ${CFLAGS} -o $@ $^ |
24
94f18b720f1e
new debug utility gsmfr-preproc
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
17 |
562
901753f59f88
gsmhr-cod-parse: read native endian by default
Mychaela Falconia <falcon@freecalypso.org>
parents:
559
diff
changeset
|
18 gsmhr-cod2hex: cod2hex.o read-cod.o tw5b-out-cod.o ${LIBS} |
557
129c895a0564
hrutil: new program gsmhr-cod2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
518
diff
changeset
|
19 ${CC} ${CFLAGS} -o $@ $^ |
129c895a0564
hrutil: new program gsmhr-cod2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
518
diff
changeset
|
20 |
518
087a88d25ba2
new program gsmhr-dec-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
517
diff
changeset
|
21 gsmhr-dec-craft: dec-craft.o ${LIBHR1} |
087a88d25ba2
new program gsmhr-dec-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
517
diff
changeset
|
22 ${CC} ${CFLAGS} -o $@ $^ |
087a88d25ba2
new program gsmhr-dec-craft
Mychaela Falconia <falcon@freecalypso.org>
parents:
517
diff
changeset
|
23 |
564
30c57cf6e87d
gsmhr-dec-parse: read native endian by default
Mychaela Falconia <falcon@freecalypso.org>
parents:
562
diff
changeset
|
24 gsmhr-dec-parse: dec-parse.o print-frame.o read-dec.o ${LIBS} |
517
2d703e1e9107
hrutil: implement gsmhr-dec-parse
Mychaela Falconia <falcon@freecalypso.org>
parents:
515
diff
changeset
|
25 ${CC} ${CFLAGS} -o $@ $^ |
2d703e1e9107
hrutil: implement gsmhr-dec-parse
Mychaela Falconia <falcon@freecalypso.org>
parents:
515
diff
changeset
|
26 |
568
0affb05c2ce2
hrutil: new program gsmhr-dec2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
567
diff
changeset
|
27 gsmhr-dec2hex: dec2hex.o read-dec.o ${LIBS} |
0affb05c2ce2
hrutil: new program gsmhr-dec2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
567
diff
changeset
|
28 ${CC} ${CFLAGS} -o $@ $^ |
0affb05c2ce2
hrutil: new program gsmhr-dec2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
567
diff
changeset
|
29 |
565
ec146b5b9c91
hrutil: new program gsmhr-hex2dec
Mychaela Falconia <falcon@freecalypso.org>
parents:
564
diff
changeset
|
30 gsmhr-hex2dec: hex2dec.o ${LIBS} |
ec146b5b9c91
hrutil: new program gsmhr-hex2dec
Mychaela Falconia <falcon@freecalypso.org>
parents:
564
diff
changeset
|
31 ${CC} ${CFLAGS} -o $@ $^ |
ec146b5b9c91
hrutil: new program gsmhr-hex2dec
Mychaela Falconia <falcon@freecalypso.org>
parents:
564
diff
changeset
|
32 |
566
62fe499ffc15
hrutil: new program gsmhr-hex2rpf
Mychaela Falconia <falcon@freecalypso.org>
parents:
565
diff
changeset
|
33 gsmhr-hex2rpf: hex2rpf.o ${LIBS} |
62fe499ffc15
hrutil: new program gsmhr-hex2rpf
Mychaela Falconia <falcon@freecalypso.org>
parents:
565
diff
changeset
|
34 ${CC} ${CFLAGS} -o $@ $^ |
62fe499ffc15
hrutil: new program gsmhr-hex2rpf
Mychaela Falconia <falcon@freecalypso.org>
parents:
565
diff
changeset
|
35 |
567
2fcb6b27ee9b
hrutil: new program gsmhr-rpf2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
566
diff
changeset
|
36 gsmhr-rpf2hex: rpf2hex.o ${LIBHR1} |
2fcb6b27ee9b
hrutil: new program gsmhr-rpf2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
566
diff
changeset
|
37 ${CC} ${CFLAGS} -o $@ $^ |
2fcb6b27ee9b
hrutil: new program gsmhr-rpf2hex
Mychaela Falconia <falcon@freecalypso.org>
parents:
566
diff
changeset
|
38 |
562
901753f59f88
gsmhr-cod-parse: read native endian by default
Mychaela Falconia <falcon@freecalypso.org>
parents:
559
diff
changeset
|
39 tw5b-dump: print-frame.o tw5b-dump.o ${LIBS} |
559
707d6f7a54dc
hrutil: new program tw5b-dump
Mychaela Falconia <falcon@freecalypso.org>
parents:
557
diff
changeset
|
40 ${CC} ${CFLAGS} -o $@ $^ |
707d6f7a54dc
hrutil: new program tw5b-dump
Mychaela Falconia <falcon@freecalypso.org>
parents:
557
diff
changeset
|
41 |
17
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
42 install: |
460
cb1d1ea7f2c5
new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
43 mkdir -p ${DESTDIR}${bindir} |
cb1d1ea7f2c5
new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
44 install -c ${PROGS} ${DESTDIR}${bindir} |
17
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
45 |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 clean: |
27
896ce7f1d271
frtest: cn-debug is now gsmfr-max-out
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
47 rm -f *.o *.out ${PROGS} |