FreeCalypso > hg > gsm-codec-lib
annotate efrtest/Makefile @ 183:452c1d5a6268
libgsmefr BFI w/o data: emit zero output after decoder reset
In real-life usage, each EFR decoder session will most likely begin
with lots of BFI frames before the first real frame arrives. However,
because the spec-defined home state of the decoder is speech rather
than CN, our regular logic for BFI w/o data would have to feed
pseudorandom noise to the decoder (in the "fixed codebook excitation
pulses" part), which is silly to do at the beginning of the decoder
session right out of reset. Therefore, let's check reset_flag_old,
and if we are still in the reset state, simply emit zero output.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 03 Jan 2023 00:12:18 +0000 |
parents | 5f23cb3f0f8d |
children | b8e095a9e360 |
rev | line source |
---|---|
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
154
01ce75ea1c8e
gsmefr-decode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
147
diff
changeset
|
3 PROGS= gsmefr-cod-parse gsmefr-dec-parse gsmefr-decode gsmefr-decode-r \ |
164
5f23cb3f0f8d
gsmefr-dlcap-dec program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
162
diff
changeset
|
4 gsmefr-dlcap-dec gsmefr-dlcap-gsmx gsmefr-dlcap-parse gsmefr-encode \ |
5f23cb3f0f8d
gsmefr-dlcap-dec program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
162
diff
changeset
|
5 gsmefr-encode-r gsmefr-etsi-dec gsmefr-etsi-enc gsmefr-rec2etsi |
47
89945a3b576e
gsmefr-rec2etsi test program added
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
6 LIBEFR= ../libgsmefr/libgsmefr.a |
14
69ed7af28473
gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
7 LIBTEST=../libtest/libtest.a |
17
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
8 INSTBIN=/opt/freecalypso/bin |
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} |
90b9c7c3fa3b
gsmefr-cod-parse: use factored-out ETSI bit reader
Mychaela Falconia <falcon@freecalypso.org>
parents:
146
diff
changeset
|
13 ${CC} ${CFLAGS} -o $@ cod-parse.o etsi-bit-rd.o ${LIBEFR} |
115
5a63294fa321
gsmefr-cod-parse test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
114
diff
changeset
|
14 |
146
0fa0cd251a31
gsmefr-dec-parse: use factored-out ETSI bit reader
Mychaela Falconia <falcon@freecalypso.org>
parents:
145
diff
changeset
|
15 gsmefr-dec-parse: dec-parse.o etsi-bit-rd.o ${LIBEFR} |
0fa0cd251a31
gsmefr-dec-parse: use factored-out ETSI bit reader
Mychaela Falconia <falcon@freecalypso.org>
parents:
145
diff
changeset
|
16 ${CC} ${CFLAGS} -o $@ dec-parse.o etsi-bit-rd.o ${LIBEFR} |
131
615f144b52c6
gsmefr-dec-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
121
diff
changeset
|
17 |
100
d5bab777865a
gsmefr-decode utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
96
diff
changeset
|
18 gsmefr-decode: decode.o ${LIBTEST} ${LIBEFR} |
d5bab777865a
gsmefr-decode utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
96
diff
changeset
|
19 ${CC} ${CFLAGS} -o $@ decode.o ${LIBTEST} ${LIBEFR} |
d5bab777865a
gsmefr-decode utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
96
diff
changeset
|
20 |
154
01ce75ea1c8e
gsmefr-decode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
147
diff
changeset
|
21 gsmefr-decode-r: decode-r.o ${LIBTEST} ${LIBEFR} |
01ce75ea1c8e
gsmefr-decode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
147
diff
changeset
|
22 ${CC} ${CFLAGS} -o $@ decode-r.o ${LIBTEST} ${LIBEFR} |
01ce75ea1c8e
gsmefr-decode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
147
diff
changeset
|
23 |
164
5f23cb3f0f8d
gsmefr-dlcap-dec program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
162
diff
changeset
|
24 gsmefr-dlcap-dec: dlcap-dec.o tidsp.o ${LIBTEST} ${LIBEFR} |
5f23cb3f0f8d
gsmefr-dlcap-dec program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
162
diff
changeset
|
25 ${CC} ${CFLAGS} -o $@ dlcap-dec.o tidsp.o ${LIBTEST} ${LIBEFR} |
5f23cb3f0f8d
gsmefr-dlcap-dec program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
162
diff
changeset
|
26 |
140
5efc377326da
gsmefr-dlcap-gsmx: EFR counterpart to gsmfr-cvt-dlcap
Mychaela Falconia <falcon@freecalypso.org>
parents:
131
diff
changeset
|
27 gsmefr-dlcap-gsmx: dlcap-gsmx.o tidsp.o ${LIBTEST} |
5efc377326da
gsmefr-dlcap-gsmx: EFR counterpart to gsmfr-cvt-dlcap
Mychaela Falconia <falcon@freecalypso.org>
parents:
131
diff
changeset
|
28 ${CC} ${CFLAGS} -o $@ dlcap-gsmx.o tidsp.o ${LIBTEST} |
5efc377326da
gsmefr-dlcap-gsmx: EFR counterpart to gsmfr-cvt-dlcap
Mychaela Falconia <falcon@freecalypso.org>
parents:
131
diff
changeset
|
29 |
162
b98aebd94d1f
gsmefr-dlcap-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
156
diff
changeset
|
30 gsmefr-dlcap-parse: dlcap-parse.o tidsp.o ${LIBTEST} ${LIBEFR} |
b98aebd94d1f
gsmefr-dlcap-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
156
diff
changeset
|
31 ${CC} ${CFLAGS} -o $@ dlcap-parse.o tidsp.o ${LIBTEST} ${LIBEFR} |
b98aebd94d1f
gsmefr-dlcap-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
156
diff
changeset
|
32 |
121
b51295fcbbae
gsmefr-encode utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
115
diff
changeset
|
33 gsmefr-encode: encode.o ${LIBTEST} ${LIBEFR} |
b51295fcbbae
gsmefr-encode utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
115
diff
changeset
|
34 ${CC} ${CFLAGS} -o $@ encode.o ${LIBTEST} ${LIBEFR} |
b51295fcbbae
gsmefr-encode utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
115
diff
changeset
|
35 |
156
3f3674c27840
gsmefr-encode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
154
diff
changeset
|
36 gsmefr-encode-r: encode-r.o ${LIBTEST} ${LIBEFR} |
3f3674c27840
gsmefr-encode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
154
diff
changeset
|
37 ${CC} ${CFLAGS} -o $@ encode-r.o ${LIBTEST} ${LIBEFR} |
3f3674c27840
gsmefr-encode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
154
diff
changeset
|
38 |
145
8ed838709897
efrtest: ETSI bit reading factored out of gsmefr-etsi-dec
Mychaela Falconia <falcon@freecalypso.org>
parents:
140
diff
changeset
|
39 gsmefr-etsi-dec: etsi-dec.o etsi-bit-rd.o ${LIBEFR} |
8ed838709897
efrtest: ETSI bit reading factored out of gsmefr-etsi-dec
Mychaela Falconia <falcon@freecalypso.org>
parents:
140
diff
changeset
|
40 ${CC} ${CFLAGS} -o $@ etsi-dec.o etsi-bit-rd.o ${LIBEFR} |
96
9cf1355bc071
gsmefr-etsi-dec test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
47
diff
changeset
|
41 |
114
ff0372186b59
gsmefr-etsi-enc test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
100
diff
changeset
|
42 gsmefr-etsi-enc: etsi-enc.o ${LIBEFR} |
ff0372186b59
gsmefr-etsi-enc test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
100
diff
changeset
|
43 ${CC} ${CFLAGS} -o $@ etsi-enc.o ${LIBEFR} |
ff0372186b59
gsmefr-etsi-enc test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
100
diff
changeset
|
44 |
47
89945a3b576e
gsmefr-rec2etsi test program added
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
45 gsmefr-rec2etsi: rec2etsi.o ${LIBTEST} ${LIBEFR} |
89945a3b576e
gsmefr-rec2etsi test program added
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
46 ${CC} ${CFLAGS} -o $@ rec2etsi.o ${LIBTEST} ${LIBEFR} |
24
94f18b720f1e
new debug utility gsmfr-preproc
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
47 |
17
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
48 install: |
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
49 mkdir -p ${INSTBIN} |
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
50 install -c ${PROGS} ${INSTBIN} |
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
51 |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 clean: |
27
896ce7f1d271
frtest: cn-debug is now gsmfr-max-out
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
53 rm -f *.o *.out ${PROGS} |