FreeCalypso > hg > gsm-codec-lib
annotate efrtest/Makefile @ 477:4c9222d95647
libtwamr encoder: always emit frame->mode = mode;
In the original implementation of amr_encode_frame(), the 'mode' member
of the output struct was set to 0xFF if the output frame type is TX_NO_DATA.
This design was made to mimic the mode field (16-bit word) being set to
0xFFFF (or -1) in 3GPP test sequence format - but nothing actually depends
on this struct member being set in any way, and amr_frame_to_tseq()
generates the needed 0xFFFF on its own, based on frame->type being equal
to TX_NO_DATA.
It is simpler and more efficient to always set frame->mode to the actual
encoding mode in amr_encode_frame(), and this new behavior has already
been documented in doc/AMR-library-API description in anticipation of
the present change.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 18 May 2024 22:30:42 +0000 |
parents | d80ccb3c3970 |
children | f9535c1fbf70 |
rev | line source |
---|---|
239
b8e095a9e360
efrtest: new program gsmefr-cod2gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents:
164
diff
changeset
|
1 PROGS= gsmefr-cod-parse gsmefr-cod2gsmx gsmefr-dec-parse gsmefr-decode \ |
b8e095a9e360
efrtest: new program gsmefr-cod2gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents:
164
diff
changeset
|
2 gsmefr-decode-r gsmefr-dlcap-dec gsmefr-dlcap-gsmx gsmefr-dlcap-parse \ |
468
4104b0390fab
efrtest: new program gsmefr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents:
460
diff
changeset
|
3 gsmefr-dlcap-sync gsmefr-encode gsmefr-encode-r gsmefr-etsi-dec \ |
4104b0390fab
efrtest: new program gsmefr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents:
460
diff
changeset
|
4 gsmefr-etsi-enc gsmefr-rec2etsi |
47
89945a3b576e
gsmefr-rec2etsi test program added
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
5 LIBEFR= ../libgsmefr/libgsmefr.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 |
147
90b9c7c3fa3b
gsmefr-cod-parse: use factored-out ETSI bit reader
Mychaela Falconia <falcon@freecalypso.org>
parents:
146
diff
changeset
|
12 gsmefr-cod-parse: cod-parse.o etsi-bit-rd.o ${LIBEFR} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
435
diff
changeset
|
13 ${CC} ${CFLAGS} -o $@ $^ |
115
5a63294fa321
gsmefr-cod-parse test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
114
diff
changeset
|
14 |
239
b8e095a9e360
efrtest: new program gsmefr-cod2gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents:
164
diff
changeset
|
15 gsmefr-cod2gsmx: cod2gsmx.o etsi-bit-rd.o |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
435
diff
changeset
|
16 ${CC} ${CFLAGS} -o $@ $^ |
239
b8e095a9e360
efrtest: new program gsmefr-cod2gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents:
164
diff
changeset
|
17 |
146
0fa0cd251a31
gsmefr-dec-parse: use factored-out ETSI bit reader
Mychaela Falconia <falcon@freecalypso.org>
parents:
145
diff
changeset
|
18 gsmefr-dec-parse: dec-parse.o etsi-bit-rd.o ${LIBEFR} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
435
diff
changeset
|
19 ${CC} ${CFLAGS} -o $@ $^ |
131
615f144b52c6
gsmefr-dec-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
121
diff
changeset
|
20 |
100
d5bab777865a
gsmefr-decode utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
96
diff
changeset
|
21 gsmefr-decode: decode.o ${LIBTEST} ${LIBEFR} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
435
diff
changeset
|
22 ${CC} ${CFLAGS} -o $@ $^ |
100
d5bab777865a
gsmefr-decode utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
96
diff
changeset
|
23 |
154
01ce75ea1c8e
gsmefr-decode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
147
diff
changeset
|
24 gsmefr-decode-r: decode-r.o ${LIBTEST} ${LIBEFR} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
435
diff
changeset
|
25 ${CC} ${CFLAGS} -o $@ $^ |
154
01ce75ea1c8e
gsmefr-decode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
147
diff
changeset
|
26 |
164
5f23cb3f0f8d
gsmefr-dlcap-dec program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
162
diff
changeset
|
27 gsmefr-dlcap-dec: dlcap-dec.o tidsp.o ${LIBTEST} ${LIBEFR} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
435
diff
changeset
|
28 ${CC} ${CFLAGS} -o $@ $^ |
164
5f23cb3f0f8d
gsmefr-dlcap-dec program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
162
diff
changeset
|
29 |
140
5efc377326da
gsmefr-dlcap-gsmx: EFR counterpart to gsmfr-cvt-dlcap
Mychaela Falconia <falcon@freecalypso.org>
parents:
131
diff
changeset
|
30 gsmefr-dlcap-gsmx: dlcap-gsmx.o tidsp.o ${LIBTEST} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
435
diff
changeset
|
31 ${CC} ${CFLAGS} -o $@ $^ |
140
5efc377326da
gsmefr-dlcap-gsmx: EFR counterpart to gsmfr-cvt-dlcap
Mychaela Falconia <falcon@freecalypso.org>
parents:
131
diff
changeset
|
32 |
162
b98aebd94d1f
gsmefr-dlcap-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
156
diff
changeset
|
33 gsmefr-dlcap-parse: dlcap-parse.o tidsp.o ${LIBTEST} ${LIBEFR} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
435
diff
changeset
|
34 ${CC} ${CFLAGS} -o $@ $^ |
162
b98aebd94d1f
gsmefr-dlcap-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
156
diff
changeset
|
35 |
468
4104b0390fab
efrtest: new program gsmefr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents:
460
diff
changeset
|
36 gsmefr-dlcap-sync: dlcap-sync.o sync-from-pcma.o sync-from-pcmu.o tidsp.o \ |
472
d80ccb3c3970
gsmefr-dlcap-sync: use DHF datum in the library
Mychaela Falconia <falcon@freecalypso.org>
parents:
468
diff
changeset
|
37 ${LIBTEST} ${LIBEFR} |
468
4104b0390fab
efrtest: new program gsmefr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents:
460
diff
changeset
|
38 ${CC} ${CFLAGS} -o $@ $^ |
4104b0390fab
efrtest: new program gsmefr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents:
460
diff
changeset
|
39 |
121
b51295fcbbae
gsmefr-encode utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
115
diff
changeset
|
40 gsmefr-encode: encode.o ${LIBTEST} ${LIBEFR} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
435
diff
changeset
|
41 ${CC} ${CFLAGS} -o $@ $^ |
121
b51295fcbbae
gsmefr-encode utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
115
diff
changeset
|
42 |
156
3f3674c27840
gsmefr-encode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
154
diff
changeset
|
43 gsmefr-encode-r: encode-r.o ${LIBTEST} ${LIBEFR} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
435
diff
changeset
|
44 ${CC} ${CFLAGS} -o $@ $^ |
156
3f3674c27840
gsmefr-encode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
154
diff
changeset
|
45 |
435
9f354d2aea13
efrtest: split etsi-dec.c for code reuse
Mychaela Falconia <falcon@freecalypso.org>
parents:
433
diff
changeset
|
46 gsmefr-etsi-dec: etsi-dec.o etsi-bit-rd.o etsi-pcm-out.o ${LIBEFR} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
435
diff
changeset
|
47 ${CC} ${CFLAGS} -o $@ $^ |
96
9cf1355bc071
gsmefr-etsi-dec test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
47
diff
changeset
|
48 |
433
51678b070c7a
efrtest: split etsi-enc.c for code reuse
Mychaela Falconia <falcon@freecalypso.org>
parents:
239
diff
changeset
|
49 gsmefr-etsi-enc: etsi-enc.o etsi-enc-common.o ${LIBEFR} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
435
diff
changeset
|
50 ${CC} ${CFLAGS} -o $@ $^ |
114
ff0372186b59
gsmefr-etsi-enc test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
100
diff
changeset
|
51 |
47
89945a3b576e
gsmefr-rec2etsi test program added
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
52 gsmefr-rec2etsi: rec2etsi.o ${LIBTEST} ${LIBEFR} |
436
e80632ccb745
simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
435
diff
changeset
|
53 ${CC} ${CFLAGS} -o $@ $^ |
24
94f18b720f1e
new debug utility gsmfr-preproc
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
54 |
17
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
55 install: |
460
cb1d1ea7f2c5
new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
56 mkdir -p ${DESTDIR}${bindir} |
cb1d1ea7f2c5
new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
57 install -c ${PROGS} ${DESTDIR}${bindir} |
17
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
58 |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 clean: |
27
896ce7f1d271
frtest: cn-debug is now gsmfr-max-out
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
60 rm -f *.o *.out ${PROGS} |