FreeCalypso > hg > gsm-codec-lib
annotate frtest/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 | b26df31124a4 |
children |
rev | line source |
---|---|
296
e0d42e87da96
frtest: new utility gsmfr-decode-rb
Mychaela Falconia <falcon@freecalypso.org>
parents:
290
diff
changeset
|
1 PROGS= gsmfr-cod2std gsmfr-decode gsmfr-decode-r gsmfr-decode-rb \ |
538
4d596bfdf8d9
frtest: new program gsmfr-decode-tw5-r
Mychaela Falconia <falcon@freecalypso.org>
parents:
537
diff
changeset
|
2 gsmfr-decode-tw5 gsmfr-decode-tw5-r gsmfr-dlcap-gsmx gsmfr-dlcap-parse \ |
546
b26df31124a4
frtest: new program gsmfr-tfo-xfrm
Mychaela Falconia <falcon@freecalypso.org>
parents:
538
diff
changeset
|
3 gsmfr-dlcap-sync gsmfr-encode gsmfr-encode-r gsmfr-preproc \ |
b26df31124a4
frtest: new program gsmfr-tfo-xfrm
Mychaela Falconia <falcon@freecalypso.org>
parents:
538
diff
changeset
|
4 gsmfr-tfo-xfrm |
283
25649b3a83e9
gsmfr-cod2std: convert to libgsmfr2
Mychaela Falconia <falcon@freecalypso.org>
parents:
282
diff
changeset
|
5 LIBFR2= ../libgsmfr2/libgsmfr2.a |
14
69ed7af28473
gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
6 LIBTEST=../libtest/libtest.a |
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 |
283
25649b3a83e9
gsmfr-cod2std: convert to libgsmfr2
Mychaela Falconia <falcon@freecalypso.org>
parents:
282
diff
changeset
|
12 gsmfr-cod2std: cod2std.o ${LIBFR2} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
296
diff
changeset
|
13 ${CC} ${CFLAGS} -o $@ $^ |
245
6de564ef70d3
frtest: new program gsmfr-cod2std
Mychaela Falconia <falcon@freecalypso.org>
parents:
167
diff
changeset
|
14 |
284
8d3cfa65a6c2
gsmfr-decode: convert to libgsmfr2
Mychaela Falconia <falcon@freecalypso.org>
parents:
283
diff
changeset
|
15 gsmfr-decode: decode.o ${LIBTEST} ${LIBFR2} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
296
diff
changeset
|
16 ${CC} ${CFLAGS} -o $@ $^ |
14
69ed7af28473
gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
17 |
285
cfa3006a66da
gsmfr-decode-r: convert to libgsmfr2
Mychaela Falconia <falcon@freecalypso.org>
parents:
284
diff
changeset
|
18 gsmfr-decode-r: decode-r.o ${LIBTEST} ${LIBFR2} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
296
diff
changeset
|
19 ${CC} ${CFLAGS} -o $@ $^ |
153
14b627682458
gsmfr-decode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
139
diff
changeset
|
20 |
296
e0d42e87da96
frtest: new utility gsmfr-decode-rb
Mychaela Falconia <falcon@freecalypso.org>
parents:
290
diff
changeset
|
21 gsmfr-decode-rb: decode-rb.o ${LIBTEST} ${LIBFR2} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
296
diff
changeset
|
22 ${CC} ${CFLAGS} -o $@ $^ |
296
e0d42e87da96
frtest: new utility gsmfr-decode-rb
Mychaela Falconia <falcon@freecalypso.org>
parents:
290
diff
changeset
|
23 |
537
f9eefb61fb2f
frtest: new program gsmfr-decode-tw5
Mychaela Falconia <falcon@freecalypso.org>
parents:
474
diff
changeset
|
24 gsmfr-decode-tw5: decode-tw5.o ${LIBTEST} ${LIBFR2} |
f9eefb61fb2f
frtest: new program gsmfr-decode-tw5
Mychaela Falconia <falcon@freecalypso.org>
parents:
474
diff
changeset
|
25 ${CC} ${CFLAGS} -o $@ $^ |
f9eefb61fb2f
frtest: new program gsmfr-decode-tw5
Mychaela Falconia <falcon@freecalypso.org>
parents:
474
diff
changeset
|
26 |
538
4d596bfdf8d9
frtest: new program gsmfr-decode-tw5-r
Mychaela Falconia <falcon@freecalypso.org>
parents:
537
diff
changeset
|
27 gsmfr-decode-tw5-r: decode-tw5-r.o ${LIBTEST} ${LIBFR2} |
4d596bfdf8d9
frtest: new program gsmfr-decode-tw5-r
Mychaela Falconia <falcon@freecalypso.org>
parents:
537
diff
changeset
|
28 ${CC} ${CFLAGS} -o $@ $^ |
4d596bfdf8d9
frtest: new program gsmfr-decode-tw5-r
Mychaela Falconia <falcon@freecalypso.org>
parents:
537
diff
changeset
|
29 |
165
ef3ea52a190f
rename gsmfr-cvt-dlcap to gsmfr-dlcap-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents:
155
diff
changeset
|
30 gsmfr-dlcap-gsmx: dlcap-gsmx.o tidsp.o ${LIBTEST} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
296
diff
changeset
|
31 ${CC} ${CFLAGS} -o $@ $^ |
165
ef3ea52a190f
rename gsmfr-cvt-dlcap to gsmfr-dlcap-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents:
155
diff
changeset
|
32 |
286
251aed72925e
gsmfr-dlcap-parse: convert to libgsmfr2
Mychaela Falconia <falcon@freecalypso.org>
parents:
285
diff
changeset
|
33 gsmfr-dlcap-parse: dlcap-parse.o tidsp.o ${LIBTEST} ${LIBFR2} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
296
diff
changeset
|
34 ${CC} ${CFLAGS} -o $@ $^ |
167
80c93ef82a51
gsmfr-dlcap-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
165
diff
changeset
|
35 |
474
285381a001fc
new program gsmfr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents:
460
diff
changeset
|
36 gsmfr-dlcap-sync: dlcap-sync.o sync-from-pcma.o sync-from-pcmu.o tidsp.o \ |
285381a001fc
new program gsmfr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents:
460
diff
changeset
|
37 ${LIBTEST} ${LIBFR2} |
285381a001fc
new program gsmfr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents:
460
diff
changeset
|
38 ${CC} ${CFLAGS} -o $@ $^ |
285381a001fc
new program gsmfr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents:
460
diff
changeset
|
39 |
287
f00925b533b7
gsmfr-encode: convert to libgsmfr2
Mychaela Falconia <falcon@freecalypso.org>
parents:
286
diff
changeset
|
40 gsmfr-encode: encode.o ${LIBTEST} ${LIBFR2} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
296
diff
changeset
|
41 ${CC} ${CFLAGS} -o $@ $^ |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 |
288
e0b46ac2c326
gsmfr-encode-r: convert to libgsmfr2
Mychaela Falconia <falcon@freecalypso.org>
parents:
287
diff
changeset
|
43 gsmfr-encode-r: encode-r.o ${LIBTEST} ${LIBFR2} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
296
diff
changeset
|
44 ${CC} ${CFLAGS} -o $@ $^ |
155
9814041e8096
gsmfr-encode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
153
diff
changeset
|
45 |
289
18229558c8bf
gsmfr-preproc: convert to libgsmfr2
Mychaela Falconia <falcon@freecalypso.org>
parents:
288
diff
changeset
|
46 gsmfr-preproc: preproc.o ${LIBTEST} ${LIBFR2} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
296
diff
changeset
|
47 ${CC} ${CFLAGS} -o $@ $^ |
24
94f18b720f1e
new debug utility gsmfr-preproc
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
48 |
546
b26df31124a4
frtest: new program gsmfr-tfo-xfrm
Mychaela Falconia <falcon@freecalypso.org>
parents:
538
diff
changeset
|
49 gsmfr-tfo-xfrm: tfo-xfrm.o ${LIBTEST} ${LIBFR2} |
b26df31124a4
frtest: new program gsmfr-tfo-xfrm
Mychaela Falconia <falcon@freecalypso.org>
parents:
538
diff
changeset
|
50 ${CC} ${CFLAGS} -o $@ $^ |
b26df31124a4
frtest: new program gsmfr-tfo-xfrm
Mychaela Falconia <falcon@freecalypso.org>
parents:
538
diff
changeset
|
51 |
17
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
52 install: |
460
cb1d1ea7f2c5
new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
53 mkdir -p ${DESTDIR}${bindir} |
cb1d1ea7f2c5
new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
54 install -c ${PROGS} ${DESTDIR}${bindir} |
17
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
55 |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 clean: |
27
896ce7f1d271
frtest: cn-debug is now gsmfr-max-out
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
57 rm -f *.o *.out ${PROGS} |