annotate frtest/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 285381a001fc
children f9eefb61fb2f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 \
474
285381a001fc new program gsmfr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents: 460
diff changeset
2 gsmfr-dlcap-gsmx gsmfr-dlcap-parse gsmfr-dlcap-sync gsmfr-encode \
285381a001fc new program gsmfr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents: 460
diff changeset
3 gsmfr-encode-r gsmfr-preproc
283
25649b3a83e9 gsmfr-cod2std: convert to libgsmfr2
Mychaela Falconia <falcon@freecalypso.org>
parents: 282
diff changeset
4 LIBFR2= ../libgsmfr2/libgsmfr2.a
14
69ed7af28473 gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents: 12
diff changeset
5 LIBTEST=../libtest/libtest.a
453
19f1aa01ea10 new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents: 436
diff changeset
6
19f1aa01ea10 new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents: 436
diff changeset
7 include ../config.defs
12
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
27
896ce7f1d271 frtest: cn-debug is now gsmfr-max-out
Mychaela Falconia <falcon@freecalypso.org>
parents: 26
diff changeset
9 all: ${PROGS}
12
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
283
25649b3a83e9 gsmfr-cod2std: convert to libgsmfr2
Mychaela Falconia <falcon@freecalypso.org>
parents: 282
diff changeset
11 gsmfr-cod2std: cod2std.o ${LIBFR2}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 296
diff changeset
12 ${CC} ${CFLAGS} -o $@ $^
245
6de564ef70d3 frtest: new program gsmfr-cod2std
Mychaela Falconia <falcon@freecalypso.org>
parents: 167
diff changeset
13
284
8d3cfa65a6c2 gsmfr-decode: convert to libgsmfr2
Mychaela Falconia <falcon@freecalypso.org>
parents: 283
diff changeset
14 gsmfr-decode: decode.o ${LIBTEST} ${LIBFR2}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 296
diff changeset
15 ${CC} ${CFLAGS} -o $@ $^
14
69ed7af28473 gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents: 12
diff changeset
16
285
cfa3006a66da gsmfr-decode-r: convert to libgsmfr2
Mychaela Falconia <falcon@freecalypso.org>
parents: 284
diff changeset
17 gsmfr-decode-r: decode-r.o ${LIBTEST} ${LIBFR2}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 296
diff changeset
18 ${CC} ${CFLAGS} -o $@ $^
153
14b627682458 gsmfr-decode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents: 139
diff changeset
19
296
e0d42e87da96 frtest: new utility gsmfr-decode-rb
Mychaela Falconia <falcon@freecalypso.org>
parents: 290
diff changeset
20 gsmfr-decode-rb: decode-rb.o ${LIBTEST} ${LIBFR2}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 296
diff changeset
21 ${CC} ${CFLAGS} -o $@ $^
296
e0d42e87da96 frtest: new utility gsmfr-decode-rb
Mychaela Falconia <falcon@freecalypso.org>
parents: 290
diff changeset
22
165
ef3ea52a190f rename gsmfr-cvt-dlcap to gsmfr-dlcap-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents: 155
diff changeset
23 gsmfr-dlcap-gsmx: dlcap-gsmx.o tidsp.o ${LIBTEST}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 296
diff changeset
24 ${CC} ${CFLAGS} -o $@ $^
165
ef3ea52a190f rename gsmfr-cvt-dlcap to gsmfr-dlcap-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents: 155
diff changeset
25
286
251aed72925e gsmfr-dlcap-parse: convert to libgsmfr2
Mychaela Falconia <falcon@freecalypso.org>
parents: 285
diff changeset
26 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
27 ${CC} ${CFLAGS} -o $@ $^
167
80c93ef82a51 gsmfr-dlcap-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 165
diff changeset
28
474
285381a001fc new program gsmfr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents: 460
diff changeset
29 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
30 ${LIBTEST} ${LIBFR2}
285381a001fc new program gsmfr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents: 460
diff changeset
31 ${CC} ${CFLAGS} -o $@ $^
285381a001fc new program gsmfr-dlcap-sync
Mychaela Falconia <falcon@freecalypso.org>
parents: 460
diff changeset
32
287
f00925b533b7 gsmfr-encode: convert to libgsmfr2
Mychaela Falconia <falcon@freecalypso.org>
parents: 286
diff changeset
33 gsmfr-encode: encode.o ${LIBTEST} ${LIBFR2}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 296
diff changeset
34 ${CC} ${CFLAGS} -o $@ $^
12
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35
288
e0b46ac2c326 gsmfr-encode-r: convert to libgsmfr2
Mychaela Falconia <falcon@freecalypso.org>
parents: 287
diff changeset
36 gsmfr-encode-r: encode-r.o ${LIBTEST} ${LIBFR2}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 296
diff changeset
37 ${CC} ${CFLAGS} -o $@ $^
155
9814041e8096 gsmfr-encode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents: 153
diff changeset
38
289
18229558c8bf gsmfr-preproc: convert to libgsmfr2
Mychaela Falconia <falcon@freecalypso.org>
parents: 288
diff changeset
39 gsmfr-preproc: preproc.o ${LIBTEST} ${LIBFR2}
436
e80632ccb745 simplify test program Makefiles
Mychaela Falconia <falcon@freecalypso.org>
parents: 296
diff changeset
40 ${CC} ${CFLAGS} -o $@ $^
24
94f18b720f1e new debug utility gsmfr-preproc
Mychaela Falconia <falcon@freecalypso.org>
parents: 19
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}