Skip to content

Commit 39cd63d

Browse files
committed
Added a floating point AGC module, with a test program.
Added a Godard TED module. A few tidy ups.
1 parent 0c0d76d commit 39cd63d

22 files changed

+1938
-254
lines changed

src/Makefile.am

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ DISTCLEANFILES = $(srcdir)/at_interpreter_dictionary.h \
2323
$(srcdir)/cielab_luts.h \
2424
$(srcdir)/math_fixed_tables.h \
2525
$(srcdir)/v17_v32bis_rx_rrc.h \
26+
$(srcdir)/v17_v32bis_rx_godard.h \
2627
$(srcdir)/v17_v32bis_tx_rrc.h \
2728
$(srcdir)/v22bis_rx_1200_rrc.h \
2829
$(srcdir)/v22bis_rx_2400_rrc.h \
@@ -32,6 +33,7 @@ DISTCLEANFILES = $(srcdir)/at_interpreter_dictionary.h \
3233
$(srcdir)/v27ter_tx_2400_rrc.h \
3334
$(srcdir)/v27ter_tx_4800_rrc.h \
3435
$(srcdir)/v29rx_rrc.h \
36+
$(srcdir)/v29rx_godard.h \
3537
$(srcdir)/v29tx_rrc.h
3638

3739
CLEANFILES = ${DISTCLEANFILES}
@@ -87,6 +89,7 @@ endif
8789

8890
libspandsp_la_SOURCES = ademco_contactid.c \
8991
adsi.c \
92+
agc_float.c \
9093
alloc.c \
9194
async.c \
9295
at_interpreter.c \
@@ -110,6 +113,7 @@ libspandsp_la_SOURCES = ademco_contactid.c \
110113
g711.c \
111114
g722.c \
112115
g726.c \
116+
godard.c \
113117
gsm0610_decode.c \
114118
gsm0610_encode.c \
115119
gsm0610_long_term.c \
@@ -190,6 +194,7 @@ libspandsp_la_LDFLAGS = -version-info @SPANDSP_LT_CURRENT@:@SPANDSP_LT_REVISION@
190194

191195
nobase_include_HEADERS = spandsp/ademco_contactid.h \
192196
spandsp/adsi.h \
197+
spandsp/agc_float.h \
193198
spandsp/alloc.h \
194199
spandsp/async.h \
195200
spandsp/arctan2.h \
@@ -219,6 +224,7 @@ nobase_include_HEADERS = spandsp/ademco_contactid.h \
219224
spandsp/g711.h \
220225
spandsp/g722.h \
221226
spandsp/g726.h \
227+
spandsp/godard.h \
222228
spandsp/gsm0610.h \
223229
spandsp/hdlc.h \
224230
spandsp/ima_adpcm.h \
@@ -290,6 +296,7 @@ nobase_include_HEADERS = spandsp/ademco_contactid.h \
290296
spandsp/version.h \
291297
spandsp/private/ademco_contactid.h \
292298
spandsp/private/adsi.h \
299+
spandsp/private/agc_float.h \
293300
spandsp/private/async.h \
294301
spandsp/private/at_interpreter.h \
295302
spandsp/private/awgn.h \
@@ -305,6 +312,7 @@ nobase_include_HEADERS = spandsp/ademco_contactid.h \
305312
spandsp/private/g711.h \
306313
spandsp/private/g722.h \
307314
spandsp/private/g726.h \
315+
spandsp/private/godard.h \
308316
spandsp/private/gsm0610.h \
309317
spandsp/private/hdlc.h \
310318
spandsp/private/ima_adpcm.h \
@@ -398,8 +406,8 @@ make_math_fixed_tables$(EXEEXT): $(top_srcdir)/src/make_math_fixed_tables.c
398406
make_modem_filter$(EXEEXT): $(top_srcdir)/src/make_modem_filter.c $(top_srcdir)/src/filter_tools.c
399407
$(CC_FOR_BUILD) -o make_modem_filter$(EXEEXT) $(top_srcdir)/src/make_modem_filter.c $(top_srcdir)/src/filter_tools.c -DHAVE_CONFIG_H -I$(top_builddir)/src -lm
400408

401-
make_modem_godard_coefficients$(EXEEXT): $(top_srcdir)/src/make_modem_godard_coefficients.c $(top_srcdir)/src/filter_tools.c
402-
$(CC_FOR_BUILD) -o make_modem_godard_coefficients$(EXEEXT) $(top_srcdir)/src/make_modem_godard_coefficients.c $(top_srcdir)/src/filter_tools.c -DHAVE_CONFIG_H -I$(top_builddir)/src -lm
409+
make_modem_godard_descriptor$(EXEEXT): $(top_srcdir)/src/make_modem_godard_descriptor.c $(top_srcdir)/src/filter_tools.c
410+
$(CC_FOR_BUILD) -o make_modem_godard_descriptor$(EXEEXT) $(top_srcdir)/src/make_modem_godard_descriptor.c $(top_srcdir)/src/filter_tools.c -DHAVE_CONFIG_H -I$(top_builddir)/src -lm
403411

404412
make_t43_gray_code_tables$(EXEEXT): $(top_srcdir)/src/make_t43_gray_code_tables.c
405413
$(CC_FOR_BUILD) -o make_t43_gray_code_tables$(EXEEXT) $(top_srcdir)/src/make_t43_gray_code_tables.c -DHAVE_CONFIG_H -I$(top_builddir)/src -lm
@@ -470,7 +478,7 @@ t43_gray_code_tables.h: make_t43_gray_code_tables$(EXEEXT)
470478
# We need to run make_modem_filter, so it generates the
471479
# filter coefficient files
472480

473-
V17_V32BIS_RX_INCL = v17_v32bis_rx_rrc.h
481+
V17_V32BIS_RX_INCL = v17_v32bis_rx_rrc.h v17_v32bis_rx_godard.h
474482

475483
v17rx.$(OBJEXT): ${V17_V32BIS_RX_INCL}
476484

@@ -479,6 +487,9 @@ v17rx.lo: ${V17_V32BIS_RX_INCL}
479487
v17_v32bis_rx_rrc.h: make_modem_filter$(EXEEXT)
480488
./make_modem_filter$(EXEEXT) -m V.17 -r >v17_v32bis_rx_rrc.h
481489

490+
v17_v32bis_rx_godard.h: make_modem_godard_descriptor$(EXEEXT)
491+
./make_modem_godard_descriptor$(EXEEXT) 1800.0 2400.0 0.99 1000.0 100.0 15 1 >v17_v32bis_rx_godard.h
492+
482493
V17_V32BIS_TX_INCL = v17_v32bis_tx_rrc.h
483494

484495
v17tx.$(OBJEXT): ${V17_V32BIS_TX_INCL}
@@ -536,7 +547,7 @@ v27ter_tx_2400_rrc.h: make_modem_filter$(EXEEXT)
536547
v27ter_tx_4800_rrc.h: make_modem_filter$(EXEEXT)
537548
./make_modem_filter$(EXEEXT) -m V.27ter4800 -t >v27ter_tx_4800_rrc.h
538549

539-
V29_RX_INCL = v29rx_rrc.h
550+
V29_RX_INCL = v29rx_rrc.h v29rx_godard.h
540551

541552
v29rx.$(OBJEXT): ${V29_RX_INCL}
542553

@@ -545,6 +556,9 @@ v29rx.lo: ${V29_RX_INCL}
545556
v29rx_rrc.h: make_modem_filter$(EXEEXT)
546557
./make_modem_filter$(EXEEXT) -m V.29 -r >v29rx_rrc.h
547558

559+
v29rx_godard.h: make_modem_godard_descriptor$(EXEEXT)
560+
./make_modem_godard_descriptor$(EXEEXT) 1700.0 2400.0 0.99 1000.0 30.0 5 1 >v29rx_godard.h
561+
548562
V29_TX_INCL = v29tx_rrc.h
549563

550564
v29tx.$(OBJEXT): ${V29_TX_INCL}

0 commit comments

Comments
 (0)