update to snapshot spandsp-20090221

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12217 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-02-21 19:12:38 +00:00
parent f4550d9e6e
commit 2c523830df
17 changed files with 578 additions and 538 deletions

View File

@ -1,485 +1,487 @@
## ##
## SpanDSP - a series of DSP components for telephony ## SpanDSP - a series of DSP components for telephony
## ##
## Makefile.am - Process this file with automake to produce Makefile.in ## Makefile.am - Process this file with automake to produce Makefile.in
## ##
## This program is free software; you can redistribute it and/or modify ## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License version 2.1, ## it under the terms of the GNU Lesser General Public License version 2.1,
## as published by the Free Software Foundation. ## as published by the Free Software Foundation.
## ##
## This program is distributed in the hope that it will be useful, ## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of ## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU Lesser General Public License for more details. ## GNU Lesser General Public License for more details.
## ##
## You should have received a copy of the GNU Lesser General Public ## You should have received a copy of the GNU Lesser General Public
## License along with this program; if not, write to the Free Software ## License along with this program; if not, write to the Free Software
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
## ##
## $Id: Makefile.am,v 1.124 2009/02/14 15:21:14 steveu Exp $ ## $Id: Makefile.am,v 1.126 2009/02/21 05:39:08 steveu Exp $
AM_CFLAGS = $(COMP_VENDOR_CFLAGS) AM_CFLAGS = $(COMP_VENDOR_CFLAGS)
AM_LDFLAGS = $(COMP_VENDOR_LDFLAGS) AM_LDFLAGS = $(COMP_VENDOR_LDFLAGS)
MAINTAINERCLEANFILES = Makefile.in MAINTAINERCLEANFILES = Makefile.in
EXTRA_DIST = floating_fudge.h \ EXTRA_DIST = floating_fudge.h \
spandsp/version.h.in \ spandsp/version.h.in \
libspandsp.dsp \ libspandsp.dsp \
libspandsp.2008.sln \ libspandsp.2005.sln \
libspandsp.2005.sln \ libspandsp.2008.sln \
libspandsp.2008.vcproj \ libspandsp.2005.vcproj \
libtiff.2008.vcproj \ libspandsp.2008.vcproj \
libspandsp.2005.vcproj \ libtiff.2005.vcproj \
libtiff.2005.vcproj \ libtiff.2008.vcproj \
msvc/config.h \ msvc/config.h \
msvc/getopt.c \ msvc/Download_TIFF.2005.vcproj \
msvc/gettimeofday.c \ msvc/Download_TIFF.2008.vcproj \
msvc/inttypes.h \ msvc/getopt.c \
msvc/tgmath.h \ msvc/gettimeofday.c \
msvc/unistd.h \ msvc/inttypes.h \
msvc/spandsp.h \ msvc/make_at_dictionary.2005.vcproj \
msvc/sys/time.h \ msvc/make_at_dictionary.2008.vcproj \
msvc/make_at_dictionary.2008.vcproj \ msvc/make_modem_filter.2005.vcproj \
msvc/make_modem_filter.2008.vcproj \ msvc/make_modem_filter.2008.vcproj \
msvc/make_at_dictionary.2005.vcproj \ msvc/spandsp.h \
msvc/make_modem_filter.2005.vcproj \ msvc/unistd.h \
msvc/Download_TIFF.2008.vcproj \ msvc/tgmath.h \
msvc/Download_TIFF.2005.vcproj \ msvc/msvcproj.head \
msvc/tiff/cleancout \ msvc/msvcproj.foot \
msvc/msvcproj.head \ msvc/util.vbs \
msvc/msvcproj.foot \ msvc/vc8proj.head \
msvc/vc8proj.head \ msvc/vc8proj.foot \
msvc/vc8proj.foot \ msvc/vc9proj.head \
msvc/vc9proj.head \ msvc/vc9proj.foot \
msvc/vc9proj.foot \ msvc/sys/time.h \
spandsp/private/README msvc/tiff/cleancount \
INCLUDES = -I$(top_builddir) spandsp/private/README
lib_LTLIBRARIES = libspandsp.la INCLUDES = -I$(top_builddir)
libspandsp_la_SOURCES = adsi.c \ lib_LTLIBRARIES = libspandsp.la
async.c \
at_interpreter.c \ libspandsp_la_SOURCES = adsi.c \
awgn.c \ async.c \
bell_r2_mf.c \ at_interpreter.c \
bert.c \ awgn.c \
bit_operations.c \ bell_r2_mf.c \
bitstream.c \ bert.c \
complex_filters.c \ bit_operations.c \
complex_vector_float.c \ bitstream.c \
complex_vector_int.c \ complex_filters.c \
crc.c \ complex_vector_float.c \
dds_float.c \ complex_vector_int.c \
dds_int.c \ crc.c \
dtmf.c \ dds_float.c \
echo.c \ dds_int.c \
fax.c \ dtmf.c \
fax_modems.c \ echo.c \
fsk.c \ fax.c \
g711.c \ fax_modems.c \
g722.c \ fsk.c \
g726.c \ g711.c \
gsm0610_decode.c \ g722.c \
gsm0610_encode.c \ g726.c \
gsm0610_long_term.c \ gsm0610_decode.c \
gsm0610_lpc.c \ gsm0610_encode.c \
gsm0610_preprocess.c \ gsm0610_long_term.c \
gsm0610_rpe.c \ gsm0610_lpc.c \
gsm0610_short_term.c \ gsm0610_preprocess.c \
hdlc.c \ gsm0610_rpe.c \
ima_adpcm.c \ gsm0610_short_term.c \
logging.c \ hdlc.c \
lpc10_analyse.c \ ima_adpcm.c \
lpc10_decode.c \ logging.c \
lpc10_encode.c \ lpc10_analyse.c \
lpc10_placev.c \ lpc10_decode.c \
lpc10_voicing.c \ lpc10_encode.c \
modem_echo.c \ lpc10_placev.c \
modem_connect_tones.c \ lpc10_voicing.c \
noise.c \ modem_echo.c \
oki_adpcm.c \ modem_connect_tones.c \
playout.c \ noise.c \
plc.c \ oki_adpcm.c \
power_meter.c \ playout.c \
queue.c \ plc.c \
schedule.c \ power_meter.c \
sig_tone.c \ queue.c \
silence_gen.c \ schedule.c \
super_tone_rx.c \ sig_tone.c \
super_tone_tx.c \ silence_gen.c \
t4.c \ super_tone_rx.c \
t30.c \ super_tone_tx.c \
t30_api.c \ t4.c \
t30_logging.c \ t30.c \
t31.c \ t30_api.c \
t35.c \ t30_logging.c \
t38_core.c \ t31.c \
t38_gateway.c \ t35.c \
t38_non_ecm_buffer.c \ t38_core.c \
t38_terminal.c \ t38_gateway.c \
testcpuid.c \ t38_non_ecm_buffer.c \
time_scale.c \ t38_terminal.c \
tone_detect.c \ testcpuid.c \
tone_generate.c \ time_scale.c \
v17rx.c \ tone_detect.c \
v17tx.c \ tone_generate.c \
v22bis_rx.c \ v17rx.c \
v22bis_tx.c \ v17tx.c \
v27ter_rx.c \ v22bis_rx.c \
v27ter_tx.c \ v22bis_tx.c \
v29rx.c \ v27ter_rx.c \
v29tx.c \ v27ter_tx.c \
v42.c \ v29rx.c \
v42bis.c \ v29tx.c \
v8.c \ v42.c \
vector_float.c \ v42bis.c \
vector_int.c v8.c \
vector_float.c \
libspandsp_la_LDFLAGS = -version-info @SPANDSP_LT_CURRENT@:@SPANDSP_LT_REVISION@:@SPANDSP_LT_AGE@ $(COMP_VENDOR_FLAGS) vector_int.c
nobase_include_HEADERS = spandsp/adsi.h \ libspandsp_la_LDFLAGS = -version-info @SPANDSP_LT_CURRENT@:@SPANDSP_LT_REVISION@:@SPANDSP_LT_AGE@ $(COMP_VENDOR_FLAGS)
spandsp/async.h \
spandsp/arctan2.h \ nobase_include_HEADERS = spandsp/adsi.h \
spandsp/at_interpreter.h \ spandsp/async.h \
spandsp/awgn.h \ spandsp/arctan2.h \
spandsp/bell_r2_mf.h \ spandsp/at_interpreter.h \
spandsp/bert.h \ spandsp/awgn.h \
spandsp/biquad.h \ spandsp/bell_r2_mf.h \
spandsp/bit_operations.h \ spandsp/bert.h \
spandsp/bitstream.h \ spandsp/biquad.h \
spandsp/crc.h \ spandsp/bit_operations.h \
spandsp/complex.h \ spandsp/bitstream.h \
spandsp/complex_filters.h \ spandsp/crc.h \
spandsp/complex_vector_float.h \ spandsp/complex.h \
spandsp/complex_vector_int.h \ spandsp/complex_filters.h \
spandsp/dc_restore.h \ spandsp/complex_vector_float.h \
spandsp/dds.h \ spandsp/complex_vector_int.h \
spandsp/dtmf.h \ spandsp/dc_restore.h \
spandsp/echo.h \ spandsp/dds.h \
spandsp/fast_convert.h \ spandsp/dtmf.h \
spandsp/fax.h \ spandsp/echo.h \
spandsp/fax_modems.h \ spandsp/fast_convert.h \
spandsp/fir.h \ spandsp/fax.h \
spandsp/fsk.h \ spandsp/fax_modems.h \
spandsp/g168models.h \ spandsp/fir.h \
spandsp/g711.h \ spandsp/fsk.h \
spandsp/g722.h \ spandsp/g168models.h \
spandsp/g726.h \ spandsp/g711.h \
spandsp/gsm0610.h \ spandsp/g722.h \
spandsp/hdlc.h \ spandsp/g726.h \
spandsp/ima_adpcm.h \ spandsp/gsm0610.h \
spandsp/logging.h \ spandsp/hdlc.h \
spandsp/lpc10.h \ spandsp/ima_adpcm.h \
spandsp/modem_echo.h \ spandsp/logging.h \
spandsp/modem_connect_tones.h \ spandsp/lpc10.h \
spandsp/noise.h \ spandsp/modem_echo.h \
spandsp/oki_adpcm.h \ spandsp/modem_connect_tones.h \
spandsp/playout.h \ spandsp/noise.h \
spandsp/plc.h \ spandsp/oki_adpcm.h \
spandsp/power_meter.h \ spandsp/playout.h \
spandsp/queue.h \ spandsp/plc.h \
spandsp/saturated.h \ spandsp/power_meter.h \
spandsp/schedule.h \ spandsp/queue.h \
spandsp/sig_tone.h \ spandsp/saturated.h \
spandsp/silence_gen.h \ spandsp/schedule.h \
spandsp/super_tone_rx.h \ spandsp/sig_tone.h \
spandsp/super_tone_tx.h \ spandsp/silence_gen.h \
spandsp/t4.h \ spandsp/super_tone_rx.h \
spandsp/t30.h \ spandsp/super_tone_tx.h \
spandsp/t30_api.h \ spandsp/t4.h \
spandsp/t30_fcf.h \ spandsp/t30.h \
spandsp/t30_logging.h \ spandsp/t30_api.h \
spandsp/t31.h \ spandsp/t30_fcf.h \
spandsp/t35.h \ spandsp/t30_logging.h \
spandsp/t38_core.h \ spandsp/t31.h \
spandsp/t38_gateway.h \ spandsp/t35.h \
spandsp/t38_non_ecm_buffer.h \ spandsp/t38_core.h \
spandsp/t38_terminal.h \ spandsp/t38_gateway.h \
spandsp/telephony.h \ spandsp/t38_non_ecm_buffer.h \
spandsp/time_scale.h \ spandsp/t38_terminal.h \
spandsp/timing.h \ spandsp/telephony.h \
spandsp/tone_detect.h \ spandsp/time_scale.h \
spandsp/tone_generate.h \ spandsp/timing.h \
spandsp/v17rx.h \ spandsp/tone_detect.h \
spandsp/v17tx.h \ spandsp/tone_generate.h \
spandsp/v22bis.h \ spandsp/v17rx.h \
spandsp/v27ter_rx.h \ spandsp/v17tx.h \
spandsp/v27ter_tx.h \ spandsp/v22bis.h \
spandsp/v29rx.h \ spandsp/v27ter_rx.h \
spandsp/v29tx.h \ spandsp/v27ter_tx.h \
spandsp/v42.h \ spandsp/v29rx.h \
spandsp/v42bis.h \ spandsp/v29tx.h \
spandsp/v8.h \ spandsp/v42.h \
spandsp/vector_float.h \ spandsp/v42bis.h \
spandsp/vector_int.h \ spandsp/v8.h \
spandsp/version.h \ spandsp/vector_float.h \
spandsp/private/adsi.h \ spandsp/vector_int.h \
spandsp/private/async.h \ spandsp/version.h \
spandsp/private/at_interpreter.h \ spandsp/private/adsi.h \
spandsp/private/awgn.h \ spandsp/private/async.h \
spandsp/private/bell_r2_mf.h \ spandsp/private/at_interpreter.h \
spandsp/private/bert.h \ spandsp/private/awgn.h \
spandsp/private/bitstream.h \ spandsp/private/bell_r2_mf.h \
spandsp/private/dtmf.h \ spandsp/private/bert.h \
spandsp/private/fax.h \ spandsp/private/bitstream.h \
spandsp/private/fax_modems.h \ spandsp/private/dtmf.h \
spandsp/private/fsk.h \ spandsp/private/fax.h \
spandsp/private/g711.h \ spandsp/private/fax_modems.h \
spandsp/private/g722.h \ spandsp/private/fsk.h \
spandsp/private/g726.h \ spandsp/private/g711.h \
spandsp/private/gsm0610.h \ spandsp/private/g722.h \
spandsp/private/hdlc.h \ spandsp/private/g726.h \
spandsp/private/ima_adpcm.h \ spandsp/private/gsm0610.h \
spandsp/private/logging.h \ spandsp/private/hdlc.h \
spandsp/private/lpc10.h \ spandsp/private/ima_adpcm.h \
spandsp/private/modem_connect_tones.h \ spandsp/private/logging.h \
spandsp/private/noise.h \ spandsp/private/lpc10.h \
spandsp/private/oki_adpcm.h \ spandsp/private/modem_connect_tones.h \
spandsp/private/queue.h \ spandsp/private/noise.h \
spandsp/private/schedule.h \ spandsp/private/oki_adpcm.h \
spandsp/private/sig_tone.h \ spandsp/private/queue.h \
spandsp/private/super_tone_rx.h \ spandsp/private/schedule.h \
spandsp/private/super_tone_tx.h \ spandsp/private/sig_tone.h \
spandsp/private/t30.h \ spandsp/private/super_tone_rx.h \
spandsp/private/t31.h \ spandsp/private/super_tone_tx.h \
spandsp/private/t38_core.h \ spandsp/private/t30.h \
spandsp/private/t38_gateway.h \ spandsp/private/t31.h \
spandsp/private/t38_non_ecm_buffer.h \ spandsp/private/t38_core.h \
spandsp/private/t38_terminal.h \ spandsp/private/t38_gateway.h \
spandsp/private/t4.h \ spandsp/private/t38_non_ecm_buffer.h \
spandsp/private/time_scale.h \ spandsp/private/t38_terminal.h \
spandsp/private/tone_detect.h \ spandsp/private/t4.h \
spandsp/private/tone_generate.h \ spandsp/private/time_scale.h \
spandsp/private/v17rx.h \ spandsp/private/tone_detect.h \
spandsp/private/v17tx.h \ spandsp/private/tone_generate.h \
spandsp/private/v22bis.h \ spandsp/private/v17rx.h \
spandsp/private/v27ter_rx.h \ spandsp/private/v17tx.h \
spandsp/private/v27ter_tx.h \ spandsp/private/v22bis.h \
spandsp/private/v29rx.h \ spandsp/private/v27ter_rx.h \
spandsp/private/v29tx.h \ spandsp/private/v27ter_tx.h \
spandsp/private/v42.h \ spandsp/private/v29rx.h \
spandsp/private/v42bis.h \ spandsp/private/v29tx.h \
spandsp/private/v8.h \ spandsp/private/v42.h \
spandsp/expose.h spandsp/private/v42bis.h \
spandsp/private/v8.h \
nodist_include_HEADERS = spandsp.h spandsp/expose.h
noinst_HEADERS = faxfont.h \ nodist_include_HEADERS = spandsp.h
filter_tools.h \
gsm0610_local.h \ noinst_HEADERS = faxfont.h \
lpc10_encdecs.h \ filter_tools.h \
t30_local.h \ gsm0610_local.h \
t4_states.h \ lpc10_encdecs.h \
v17rx_constellation_maps.h \ t30_local.h \
v17tx_constellation_maps.h \ t4_states.h \
v29tx_constellation_maps.h v17rx_constellation_maps.h \
v17tx_constellation_maps.h \
noinst_PROGRAMS = make_at_dictionary \ v29tx_constellation_maps.h
make_modem_filter
noinst_PROGRAMS = make_at_dictionary \
make_modem_filter_SOURCES = make_modem_filter.c \ make_modem_filter
filter_tools.c
make_modem_filter_SOURCES = make_modem_filter.c \
# We need to run make_at_dictionary, so it generates the filter_tools.c
# at_interpreter_dictionary.h file
# We need to run make_at_dictionary, so it generates the
at_interpreter.$(OBJEXT): at_interpreter_dictionary.h # at_interpreter_dictionary.h file
at_interpreter.lo: at_interpreter_dictionary.h at_interpreter.$(OBJEXT): at_interpreter_dictionary.h
at_interpreter_dictionary.h: make_at_dictionary$(EXEEXT) at_interpreter.lo: at_interpreter_dictionary.h
./make_at_dictionary$(EXEEXT) >at_interpreter_dictionary.h
at_interpreter_dictionary.h: make_at_dictionary$(EXEEXT)
v17rx.$(OBJEXT): v17rx_fixed_rrc.h v17rx_floating_rrc.h ./make_at_dictionary$(EXEEXT) >at_interpreter_dictionary.h
v17rx.lo: v17rx_fixed_rrc.h v17rx_floating_rrc.h v17rx.$(OBJEXT): v17rx_fixed_rrc.h v17rx_floating_rrc.h
v17rx_fixed_rrc.h: make_modem_filter$(EXEEXT) v17rx.lo: v17rx_fixed_rrc.h v17rx_floating_rrc.h
./make_modem_filter$(EXEEXT) -m V.17 -i -r >v17rx_fixed_rrc.h
v17rx_fixed_rrc.h: make_modem_filter$(EXEEXT)
v17rx_floating_rrc.h: make_modem_filter$(EXEEXT) ./make_modem_filter$(EXEEXT) -m V.17 -i -r >v17rx_fixed_rrc.h
./make_modem_filter$(EXEEXT) -m V.17 -r >v17rx_floating_rrc.h
v17rx_floating_rrc.h: make_modem_filter$(EXEEXT)
v17tx.$(OBJEXT): v17tx_fixed_rrc.h v17tx_floating_rrc.h ./make_modem_filter$(EXEEXT) -m V.17 -r >v17rx_floating_rrc.h
v17tx.lo: v17tx_fixed_rrc.h v17tx_floating_rrc.h v17tx.$(OBJEXT): v17tx_fixed_rrc.h v17tx_floating_rrc.h
v17tx_fixed_rrc.h: make_modem_filter$(EXEEXT) v17tx.lo: v17tx_fixed_rrc.h v17tx_floating_rrc.h
./make_modem_filter$(EXEEXT) -m V.17 -i -t >v17tx_fixed_rrc.h
v17tx_fixed_rrc.h: make_modem_filter$(EXEEXT)
v17tx_floating_rrc.h: make_modem_filter$(EXEEXT) ./make_modem_filter$(EXEEXT) -m V.17 -i -t >v17tx_fixed_rrc.h
./make_modem_filter$(EXEEXT) -m V.17 -t >v17tx_floating_rrc.h
v17tx_floating_rrc.h: make_modem_filter$(EXEEXT)
v22bis_rx.$(OBJEXT): v22bis_rx_1200_fixed_rrc.h \ ./make_modem_filter$(EXEEXT) -m V.17 -t >v17tx_floating_rrc.h
v22bis_rx_2400_fixed_rrc.h \
v22bis_rx_1200_floating_rrc.h \ v22bis_rx.$(OBJEXT): v22bis_rx_1200_fixed_rrc.h \
v22bis_rx_2400_floating_rrc.h v22bis_rx_2400_fixed_rrc.h \
v22bis_rx_1200_floating_rrc.h \
v22bis_rx.lo: v22bis_rx_1200_fixed_rrc.h \ v22bis_rx_2400_floating_rrc.h
v22bis_rx_2400_fixed_rrc.h \
v22bis_rx_1200_floating_rrc.h \ v22bis_rx.lo: v22bis_rx_1200_fixed_rrc.h \
v22bis_rx_2400_floating_rrc.h v22bis_rx_2400_fixed_rrc.h \
v22bis_rx_1200_floating_rrc.h \
v22bis_rx_1200_fixed_rrc.h: make_modem_filter$(EXEEXT) v22bis_rx_2400_floating_rrc.h
./make_modem_filter$(EXEEXT) -m V.22bis1200 -i -r >v22bis_rx_1200_fixed_rrc.h
v22bis_rx_1200_fixed_rrc.h: make_modem_filter$(EXEEXT)
v22bis_rx_2400_fixed_rrc.h: make_modem_filter$(EXEEXT) ./make_modem_filter$(EXEEXT) -m V.22bis1200 -i -r >v22bis_rx_1200_fixed_rrc.h
./make_modem_filter$(EXEEXT) -m V.22bis2400 -i -r >v22bis_rx_2400_fixed_rrc.h
v22bis_rx_2400_fixed_rrc.h: make_modem_filter$(EXEEXT)
v22bis_rx_1200_floating_rrc.h: make_modem_filter$(EXEEXT) ./make_modem_filter$(EXEEXT) -m V.22bis2400 -i -r >v22bis_rx_2400_fixed_rrc.h
./make_modem_filter$(EXEEXT) -m V.22bis1200 -r >v22bis_rx_1200_floating_rrc.h
v22bis_rx_1200_floating_rrc.h: make_modem_filter$(EXEEXT)
v22bis_rx_2400_floating_rrc.h: make_modem_filter$(EXEEXT) ./make_modem_filter$(EXEEXT) -m V.22bis1200 -r >v22bis_rx_1200_floating_rrc.h
./make_modem_filter$(EXEEXT) -m V.22bis2400 -r >v22bis_rx_2400_floating_rrc.h
v22bis_rx_2400_floating_rrc.h: make_modem_filter$(EXEEXT)
v22bis_tx.$(OBJEXT): v22bis_tx_fixed_rrc.h v22bis_tx_floating_rrc.h ./make_modem_filter$(EXEEXT) -m V.22bis2400 -r >v22bis_rx_2400_floating_rrc.h
v22bis_tx.lo: v22bis_tx_fixed_rrc.h v22bis_tx_floating_rrc.h v22bis_tx.$(OBJEXT): v22bis_tx_fixed_rrc.h v22bis_tx_floating_rrc.h
v22bis_tx_fixed_rrc.h: make_modem_filter$(EXEEXT) v22bis_tx.lo: v22bis_tx_fixed_rrc.h v22bis_tx_floating_rrc.h
./make_modem_filter$(EXEEXT) -m V.22bis -i -t >v22bis_tx_fixed_rrc.h
v22bis_tx_fixed_rrc.h: make_modem_filter$(EXEEXT)
v22bis_tx_floating_rrc.h: make_modem_filter$(EXEEXT) ./make_modem_filter$(EXEEXT) -m V.22bis -i -t >v22bis_tx_fixed_rrc.h
./make_modem_filter$(EXEEXT) -m V.22bis -t >v22bis_tx_floating_rrc.h
v22bis_tx_floating_rrc.h: make_modem_filter$(EXEEXT)
v27ter_rx_.$(OBJEXT): v27ter_rx_2400_fixed_rrc.h \ ./make_modem_filter$(EXEEXT) -m V.22bis -t >v22bis_tx_floating_rrc.h
v27ter_rx_4800_fixed_rrc.h \
v27ter_rx_2400_floating_rrc.h \ v27ter_rx_.$(OBJEXT): v27ter_rx_2400_fixed_rrc.h \
v27ter_rx_4800_floating_rrc.h v27ter_rx_4800_fixed_rrc.h \
v27ter_rx_2400_floating_rrc.h \
v27ter_rx.lo: v27ter_rx_2400_fixed_rrc.h \ v27ter_rx_4800_floating_rrc.h
v27ter_rx_4800_fixed_rrc.h \
v27ter_rx_2400_floating_rrc.h \ v27ter_rx.lo: v27ter_rx_2400_fixed_rrc.h \
v27ter_rx_4800_floating_rrc.h v27ter_rx_4800_fixed_rrc.h \
v27ter_rx_2400_floating_rrc.h \
v27ter_rx_2400_fixed_rrc.h: make_modem_filter$(EXEEXT) v27ter_rx_4800_floating_rrc.h
./make_modem_filter$(EXEEXT) -m V.27ter2400 -i -r >v27ter_rx_2400_fixed_rrc.h
v27ter_rx_2400_fixed_rrc.h: make_modem_filter$(EXEEXT)
v27ter_rx_4800_fixed_rrc.h: make_modem_filter$(EXEEXT) ./make_modem_filter$(EXEEXT) -m V.27ter2400 -i -r >v27ter_rx_2400_fixed_rrc.h
./make_modem_filter$(EXEEXT) -m V.27ter4800 -i -r >v27ter_rx_4800_fixed_rrc.h
v27ter_rx_4800_fixed_rrc.h: make_modem_filter$(EXEEXT)
v27ter_rx_2400_floating_rrc.h: make_modem_filter$(EXEEXT) ./make_modem_filter$(EXEEXT) -m V.27ter4800 -i -r >v27ter_rx_4800_fixed_rrc.h
./make_modem_filter$(EXEEXT) -m V.27ter2400 -r >v27ter_rx_2400_floating_rrc.h
v27ter_rx_2400_floating_rrc.h: make_modem_filter$(EXEEXT)
v27ter_rx_4800_floating_rrc.h: make_modem_filter$(EXEEXT) ./make_modem_filter$(EXEEXT) -m V.27ter2400 -r >v27ter_rx_2400_floating_rrc.h
./make_modem_filter$(EXEEXT) -m V.27ter4800 -r >v27ter_rx_4800_floating_rrc.h
v27ter_rx_4800_floating_rrc.h: make_modem_filter$(EXEEXT)
v27ter_tx_.$(OBJEXT): v27ter_tx_2400_fixed_rrc.h \ ./make_modem_filter$(EXEEXT) -m V.27ter4800 -r >v27ter_rx_4800_floating_rrc.h
v27ter_tx_4800_fixed_rrc.h \
v27ter_tx_2400_floating_rrc.h \ v27ter_tx_.$(OBJEXT): v27ter_tx_2400_fixed_rrc.h \
v27ter_tx_4800_floating_rrc.h v27ter_tx_4800_fixed_rrc.h \
v27ter_tx_2400_floating_rrc.h \
v27ter_tx.lo: v27ter_tx_2400_fixed_rrc.h \ v27ter_tx_4800_floating_rrc.h
v27ter_tx_4800_fixed_rrc.h \
v27ter_tx_2400_floating_rrc.h \ v27ter_tx.lo: v27ter_tx_2400_fixed_rrc.h \
v27ter_tx_4800_floating_rrc.h v27ter_tx_4800_fixed_rrc.h \
v27ter_tx_2400_floating_rrc.h \
v27ter_tx_2400_fixed_rrc.h: make_modem_filter$(EXEEXT) v27ter_tx_4800_floating_rrc.h
./make_modem_filter$(EXEEXT) -m V.27ter2400 -i -t >v27ter_tx_2400_fixed_rrc.h
v27ter_tx_2400_fixed_rrc.h: make_modem_filter$(EXEEXT)
v27ter_tx_4800_fixed_rrc.h: make_modem_filter$(EXEEXT) ./make_modem_filter$(EXEEXT) -m V.27ter2400 -i -t >v27ter_tx_2400_fixed_rrc.h
./make_modem_filter$(EXEEXT) -m V.27ter4800 -i -t >v27ter_tx_4800_fixed_rrc.h
v27ter_tx_4800_fixed_rrc.h: make_modem_filter$(EXEEXT)
v27ter_tx_2400_floating_rrc.h: make_modem_filter$(EXEEXT) ./make_modem_filter$(EXEEXT) -m V.27ter4800 -i -t >v27ter_tx_4800_fixed_rrc.h
./make_modem_filter$(EXEEXT) -m V.27ter2400 -t >v27ter_tx_2400_floating_rrc.h
v27ter_tx_2400_floating_rrc.h: make_modem_filter$(EXEEXT)
v27ter_tx_4800_floating_rrc.h: make_modem_filter$(EXEEXT) ./make_modem_filter$(EXEEXT) -m V.27ter2400 -t >v27ter_tx_2400_floating_rrc.h
./make_modem_filter$(EXEEXT) -m V.27ter4800 -t >v27ter_tx_4800_floating_rrc.h
v27ter_tx_4800_floating_rrc.h: make_modem_filter$(EXEEXT)
v29rx.$(OBJEXT): v29rx_fixed_rrc.h v29rx_floating_rrc.h ./make_modem_filter$(EXEEXT) -m V.27ter4800 -t >v27ter_tx_4800_floating_rrc.h
v29rx.lo: v29rx_fixed_rrc.h v29rx_floating_rrc.h v29rx.$(OBJEXT): v29rx_fixed_rrc.h v29rx_floating_rrc.h
v29rx_fixed_rrc.h: make_modem_filter$(EXEEXT) v29rx.lo: v29rx_fixed_rrc.h v29rx_floating_rrc.h
./make_modem_filter$(EXEEXT) -m V.29 -i -r >v29rx_fixed_rrc.h
v29rx_fixed_rrc.h: make_modem_filter$(EXEEXT)
v29rx_floating_rrc.h: make_modem_filter$(EXEEXT) ./make_modem_filter$(EXEEXT) -m V.29 -i -r >v29rx_fixed_rrc.h
./make_modem_filter$(EXEEXT) -m V.29 -r >v29rx_floating_rrc.h
v29rx_floating_rrc.h: make_modem_filter$(EXEEXT)
v29tx.$(OBJEXT): v29tx_fixed_rrc.h v29tx_floating_rrc.h ./make_modem_filter$(EXEEXT) -m V.29 -r >v29rx_floating_rrc.h
v29tx.lo: v29tx_fixed_rrc.h v29tx_floating_rrc.h v29tx.$(OBJEXT): v29tx_fixed_rrc.h v29tx_floating_rrc.h
v29tx_fixed_rrc.h: make_modem_filter$(EXEEXT) v29tx.lo: v29tx_fixed_rrc.h v29tx_floating_rrc.h
./make_modem_filter$(EXEEXT) -m V.29 -i -t >v29tx_fixed_rrc.h
v29tx_fixed_rrc.h: make_modem_filter$(EXEEXT)
v29tx_floating_rrc.h: make_modem_filter$(EXEEXT) ./make_modem_filter$(EXEEXT) -m V.29 -i -t >v29tx_fixed_rrc.h
./make_modem_filter$(EXEEXT) -m V.29 -t >v29tx_floating_rrc.h
v29tx_floating_rrc.h: make_modem_filter$(EXEEXT)
DSP = libspandsp.dsp ./make_modem_filter$(EXEEXT) -m V.29 -t >v29tx_floating_rrc.h
VCPROJ8 = libspandsp.2005.vcproj
VCPROJ9 = libspandsp.2008.vcproj DSP = libspandsp.dsp
VCPROJ8 = libspandsp.2005.vcproj
WIN32SOURCES = $(libspandsp_la_SOURCES) .\\msvc\\gettimeofday.c VCPROJ9 = libspandsp.2008.vcproj
WIN32HEADERS = $(nobase_include_HEADERS) spandsp.h
WIN32SOURCES = $(libspandsp_la_SOURCES) .\\msvc\\gettimeofday.c
DSPOUT = | awk '{printf("%s\r\n", $$0)}' >> $(DSP) WIN32HEADERS = $(nobase_include_HEADERS) spandsp.h
VCPROJOUT8 = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ8)
VCPROJOUT9 = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ9) DSPOUT = | awk '{printf("%s\r\n", $$0)}' >> $(DSP)
VCPROJOUT8 = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ8)
$(DSP): msvc/msvcproj.head msvc/msvcproj.foot Makefile.am VCPROJOUT9 = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ9)
echo "creating $(DSP)"
@(cp $(srcdir)/msvc/msvcproj.head $(DSP); \ $(DSP): msvc/msvcproj.head msvc/msvcproj.foot Makefile.am
echo "# Begin Group \"Source Files\"" $(DSPOUT); \ echo "creating $(DSP)"
for file in $(WIN32SOURCES); do \ @(cp $(srcdir)/msvc/msvcproj.head $(DSP); \
echo "# Begin Source File" $(DSPOUT); \ echo "# Begin Group \"Source Files\"" $(DSPOUT); \
echo "" $(DSPOUT); \ for file in $(WIN32SOURCES); do \
echo "SOURCE=.\\"$$file $(DSPOUT); \ echo "# Begin Source File" $(DSPOUT); \
echo "# End Source File" $(DSPOUT); \ echo "" $(DSPOUT); \
done; \ echo "SOURCE=.\\"$$file $(DSPOUT); \
echo "# End Group" $(DSPOUT); \ echo "# End Source File" $(DSPOUT); \
echo "# Begin Group \"Header Files\"" $(DSPOUT); \ done; \
for file in $(WIN32HEADERS); do \ echo "# End Group" $(DSPOUT); \
echo "# Begin Source File" $(DSPOUT); \ echo "# Begin Group \"Header Files\"" $(DSPOUT); \
echo "" $(DSPOUT); \ for file in $(WIN32HEADERS); do \
echo "SOURCE=.\\"$$file $(DSPOUT); \ echo "# Begin Source File" $(DSPOUT); \
echo "# End Source File" $(DSPOUT); \ echo "" $(DSPOUT); \
done; \ echo "SOURCE=.\\"$$file $(DSPOUT); \
echo "# End Group" $(DSPOUT); \ echo "# End Source File" $(DSPOUT); \
cat $(srcdir)/msvc/msvcproj.foot $(DSPOUT) ) done; \
echo "# End Group" $(DSPOUT); \
$(VCPROJ8): msvc/vc8proj.head msvc/vc8proj.foot Makefile.am cat $(srcdir)/msvc/msvcproj.foot $(DSPOUT) )
echo "creating $(VCPROJ8)"
@(cp $(srcdir)/msvc/vc8proj.head $(VCPROJ8); \ $(VCPROJ8): msvc/vc8proj.head msvc/vc8proj.foot Makefile.am
for file in $(WIN32SOURCES); do \ echo "creating $(VCPROJ8)"
echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT8); \ @(cp $(srcdir)/msvc/vc8proj.head $(VCPROJ8); \
done; \ for file in $(WIN32SOURCES); do \
echo "</Filter><Filter Name=\"Header Files\">" $(VCPROJOUT8); \ echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT8); \
for file in $(WIN32HEADERS); do \ done; \
echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT8); \ echo "</Filter><Filter Name=\"Header Files\">" $(VCPROJOUT8); \
done; \ for file in $(WIN32HEADERS); do \
cat $(srcdir)/msvc/vc8proj.foot $(VCPROJOUT8) ) echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT8); \
done; \
$(VCPROJ9): msvc/vc9proj.head msvc/vc9proj.foot Makefile.am cat $(srcdir)/msvc/vc8proj.foot $(VCPROJOUT8) )
echo "creating $(VCPROJ9)"
@(cp $(srcdir)/msvc/vc9proj.head $(VCPROJ9); \ $(VCPROJ9): msvc/vc9proj.head msvc/vc9proj.foot Makefile.am
for file in $(WIN32SOURCES); do \ echo "creating $(VCPROJ9)"
echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT9); \ @(cp $(srcdir)/msvc/vc9proj.head $(VCPROJ9); \
done; \ for file in $(WIN32SOURCES); do \
echo "</Filter><Filter Name=\"Header Files\">" $(VCPROJOUT9); \ echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT9); \
for file in $(WIN32HEADERS); do \ done; \
echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT9); \ echo "</Filter><Filter Name=\"Header Files\">" $(VCPROJOUT9); \
done; \ for file in $(WIN32HEADERS); do \
cat $(srcdir)/msvc/vc8proj.foot $(VCPROJOUT9) ) echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT9); \
done; \
$(srcdir)/msvc/spandsp.h: spandsp.h.in cat $(srcdir)/msvc/vc9proj.foot $(VCPROJOUT9) )
echo "creating $(srcdir)/msvc/spandsp.h"
@cp $(srcdir)/spandsp.h.in $(srcdir)/msvc/spandsp.h $(srcdir)/msvc/spandsp.h: spandsp.h.in
@sed -i -e "s/\@SPANDSP_USE_FIXED_POINT\@/#undef SPANDSP_USE_FIXED_POINT/" $(srcdir)/msvc/spandsp.h echo "creating $(srcdir)/msvc/spandsp.h"
@sed -i -e "s/\@SPANDSP_MISALIGNED_ACCESS_FAILS\@/#undef SPANDSP_MISALIGNED_ACCESS_FAILS/" $(srcdir)/msvc/spandsp.h @cp $(srcdir)/spandsp.h.in $(srcdir)/msvc/spandsp.h
@sed -i -e "s/\@SPANDSP_USE_EXPORT_CAPABILITY\@/#define SPANDSP_USE_EXPORT_CAPABILITY 1/" $(srcdir)/msvc/spandsp.h @sed -i -e "s/\@SPANDSP_USE_FIXED_POINT\@/#undef SPANDSP_USE_FIXED_POINT/" $(srcdir)/msvc/spandsp.h
@sed -i -e "s/\@INSERT_INTTYPES_HEADER\@/#include <inttypes.h>/" $(srcdir)/msvc/spandsp.h @sed -i -e "s/\@SPANDSP_MISALIGNED_ACCESS_FAILS\@/#undef SPANDSP_MISALIGNED_ACCESS_FAILS/" $(srcdir)/msvc/spandsp.h
@sed -i -e "s/\@INSERT_MATH_HEADER\@/#include <math.h>/" $(srcdir)/msvc/spandsp.h @sed -i -e "s/\@SPANDSP_USE_EXPORT_CAPABILITY\@/#define SPANDSP_USE_EXPORT_CAPABILITY 1/" $(srcdir)/msvc/spandsp.h
@sed -i -e "s/\@INSERT_INTTYPES_HEADER\@/#include <inttypes.h>/" $(srcdir)/msvc/spandsp.h
spandsp/version.h: @sed -i -e "s/\@INSERT_MATH_HEADER\@/#include <math.h>/" $(srcdir)/msvc/spandsp.h
NOWDATE=`date --utc +"%Y%m%d"` ; \
NOWTIME=`date --utc +"%H%M%S"` ; \ spandsp/version.h:
sed 's/$$SPANDSP_RELEASE_DATE/'$$NOWDATE'/;s/$$SPANDSP_RELEASE_TIME/'$$NOWTIME'/' \ NOWDATE=`date --utc +"%Y%m%d"` ; \
<spandsp/version.h.in >spandsp/version.h NOWTIME=`date --utc +"%H%M%S"` ; \
sed 's/$$SPANDSP_RELEASE_DATE/'$$NOWDATE'/;s/$$SPANDSP_RELEASE_TIME/'$$NOWTIME'/' \
dist-hook: <spandsp/version.h.in >spandsp/version.h
NOWDATE=`date --utc +"%Y%m%d"` ; \
NOWTIME=`date --utc +"%H%M%S"` ; \ dist-hook:
sed 's/$$SPANDSP_RELEASE_DATE/'$$NOWDATE'/;s/$$SPANDSP_RELEASE_TIME/'$$NOWTIME'/' \ NOWDATE=`date --utc +"%Y%m%d"` ; \
<spandsp/version.h.in >spandsp/version.h NOWTIME=`date --utc +"%H%M%S"` ; \
sed 's/$$SPANDSP_RELEASE_DATE/'$$NOWDATE'/;s/$$SPANDSP_RELEASE_TIME/'$$NOWTIME'/' \
<spandsp/version.h.in >spandsp/version.h

View File

@ -22,7 +22,7 @@
* License along with this program; if not, write to the Free Software * License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* $Id: complex_vector_int.c,v 1.7 2009/02/03 16:28:39 steveu Exp $ * $Id: complex_vector_int.c,v 1.8 2009/02/21 04:27:46 steveu Exp $
*/ */
/*! \file */ /*! \file */
@ -123,8 +123,8 @@ SPAN_DECLARE(void) cvec_lmsi16(const complexi16_t x[], complexi16_t y[], int n,
for (i = 0; i < n; i++) for (i = 0; i < n; i++)
{ {
y[i].re = (int16_t)(y[i].re + (((int32_t) x[i].im*(int32_t) error->im + (int32_t) x[i].re*(int32_t) error->re) >> 12)); y[i].re += (int16_t) (((int32_t) x[i].im*(int32_t) error->im + (int32_t) x[i].re*(int32_t) error->re) >> 12);
y[i].im = (int16_t)(y[i].im + (((int32_t) x[i].re*(int32_t) error->im - (int32_t) x[i].im*(int32_t) error->re) >> 12)); y[i].im += (int16_t) (((int32_t) x[i].re*(int32_t) error->im - (int32_t) x[i].im*(int32_t) error->re) >> 12);
} }
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/

View File

@ -22,7 +22,7 @@
* License along with this program; if not, write to the Free Software * License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* $Id: dds_int.c,v 1.15 2009/02/03 16:28:39 steveu Exp $ * $Id: dds_int.c,v 1.16 2009/02/21 04:27:46 steveu Exp $
*/ */
/*! \file */ /*! \file */
@ -309,8 +309,8 @@ SPAN_DECLARE(complexi16_t) dds_complexi16_mod(uint32_t *phase_acc, int32_t phase
{ {
complexi16_t amp; complexi16_t amp;
amp = complex_seti16((int16_t)(((int32_t) dds_lookup(*phase_acc + phase + (1 << 30))*(int32_t) scale) >> 15), amp = complex_seti16((int16_t) (((int32_t) dds_lookup(*phase_acc + phase + (1 << 30))*(int32_t) scale) >> 15),
(int16_t)(((int32_t) dds_lookup(*phase_acc + phase)*(int32_t) scale) >> 15)); (int16_t) (((int32_t) dds_lookup(*phase_acc + phase)*(int32_t) scale) >> 15));
*phase_acc += phase_rate; *phase_acc += phase_rate;
return amp; return amp;
} }

View File

@ -22,7 +22,7 @@
* License along with this program; if not, write to the Free Software * License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* $Id: fax_modems.c,v 1.2 2009/02/16 09:57:22 steveu Exp $ * $Id: fax_modems.c,v 1.3 2009/02/21 04:27:46 steveu Exp $
*/ */
/*! \file */ /*! \file */
@ -200,7 +200,7 @@ static void v29_rx_status_handler(void *user_data, int status)
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/
void start_fax_modems_rx_modem(fax_modems_state_t *s, int which) SPAN_DECLARE(void) start_fax_modems_rx_modem(fax_modems_state_t *s, int which)
{ {
switch (which) switch (which)
{ {

View File

@ -28,7 +28,7 @@
* Computer Science, Speech Group * Computer Science, Speech Group
* Chengxiang Lu and Alex Hauptmann * Chengxiang Lu and Alex Hauptmann
* *
* $Id: g722.c,v 1.8 2009/02/10 13:06:46 steveu Exp $ * $Id: g722.c,v 1.9 2009/02/21 04:27:46 steveu Exp $
*/ */
/*! \file */ /*! \file */
@ -214,7 +214,7 @@ static void block4(g722_band_t *s, int16_t dx)
/* UPPOL1 */ /* UPPOL1 */
wd1 = ((p ^ s->p[0]) & 0x8000) ? -192 : 192; wd1 = ((p ^ s->p[0]) & 0x8000) ? -192 : 192;
wd2 = (int16_t)(((int32_t) s->a[0]*(int32_t) 32640) >> 15); wd2 = (int16_t) (((int32_t) s->a[0]*(int32_t) 32640) >> 15);
ap[0] = saturated_add16(wd1, wd2); ap[0] = saturated_add16(wd1, wd2);
wd3 = saturated_sub16(15360, ap[1]); wd3 = saturated_sub16(15360, ap[1]);
@ -223,9 +223,9 @@ static void block4(g722_band_t *s, int16_t dx)
/* FILTEP */ /* FILTEP */
wd1 = saturated_add16(r, r); wd1 = saturated_add16(r, r);
wd1 = (int16_t)(((int32_t) ap[0]*(int32_t) wd1) >> 15); wd1 = (int16_t) (((int32_t) ap[0]*(int32_t) wd1) >> 15);
wd2 = saturated_add16(s->r, s->r); wd2 = saturated_add16(s->r, s->r);
wd2 = (int16_t)(((int32_t) ap[1]*(int32_t) wd2) >> 15); wd2 = (int16_t) (((int32_t) ap[1]*(int32_t) wd2) >> 15);
sp = saturated_add16(wd1, wd2); sp = saturated_add16(wd1, wd2);
s->r = r; s->r = r;
s->a[1] = ap[1]; s->a[1] = ap[1];
@ -242,7 +242,7 @@ static void block4(g722_band_t *s, int16_t dx)
for (i = 5; i >= 0; i--) for (i = 5; i >= 0; i--)
{ {
wd2 = ((s->d[i + 1] ^ dx) & 0x8000) ? -wd1 : wd1; wd2 = ((s->d[i + 1] ^ dx) & 0x8000) ? -wd1 : wd1;
wd3 = (int16_t)(((int32_t) s->b[i]*(int32_t) 32640) >> 15); wd3 = (int16_t) (((int32_t) s->b[i]*(int32_t) 32640) >> 15);
s->b[i] = saturated_add16(wd2, wd3); s->b[i] = saturated_add16(wd2, wd3);
wd3 = saturated_add16(s->d[i], s->d[i]); wd3 = saturated_add16(s->d[i], s->d[i]);
sz += ((int32_t) s->b[i]*(int32_t) wd3) >> 15; sz += ((int32_t) s->b[i]*(int32_t) wd3) >> 15;

View File

@ -358,4 +358,14 @@
<File RelativePath="spandsp/private/v8.h"></File> <File RelativePath="spandsp/private/v8.h"></File>
<File RelativePath="spandsp/expose.h"></File> <File RelativePath="spandsp/expose.h"></File>
<File RelativePath="spandsp.h"></File> <File RelativePath="spandsp.h"></File>
</Filter> <Filter Name="Resource Files" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" > </Filter> </Files> <Globals> </Globals></VisualStudioProject> </Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View File

@ -68,7 +68,7 @@ static int32_t lpc10_random(lpc10_decode_state_t *s)
/* The following is a 16 bit 2's complement addition, /* The following is a 16 bit 2's complement addition,
with overflow checking disabled */ with overflow checking disabled */
s->y[s->k] = (int16_t)(s->y[s->k] + s->y[s->j]); s->y[s->k] += s->y[s->j];
ret_val = s->y[s->k]; ret_val = s->y[s->k];
if (--s->k < 0) if (--s->k < 0)
s->k = 4; s->k = 4;

View File

@ -88,7 +88,7 @@
/> />
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
CommandLine="$(TargetPath) &gt;$(SolutionDir)\at_interpreter_dictionary.h&#x0D;&#x0A;" CommandLine="&quot;$(TargetPath)&quot; &gt;&quot;$(SolutionDir)\at_interpreter_dictionary.h&quot;&#x0D;&#x0A;"
/> />
</Configuration> </Configuration>
</Configurations> </Configurations>

View File

@ -86,7 +86,7 @@
/> />
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
CommandLine="$(TargetPath) &gt;$(SolutionDir)\at_interpreter_dictionary.h" CommandLine="&quot;$(TargetPath)&quot; &gt;&quot;$(SolutionDir)\at_interpreter_dictionary.h&quot;"
/> />
</Configuration> </Configuration>
</Configurations> </Configurations>

View File

@ -86,7 +86,7 @@
/> />
<Tool <Tool
Name="VCPostBuildEventTool" Name="VCPostBuildEventTool"
CommandLine="$(TargetPath) -m V.17 -i -r &gt;$(SolutionDir)\v17rx_fixed_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.17 -r &gt;$(SolutionDir)\v17rx_floating_rrc.h&#x0D;&#x0A;&#x0D;&#x0A;$(TargetPath) -m V.17 -i -t &gt;$(SolutionDir)\v17tx_fixed_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.17 -t &gt;$(SolutionDir)\v17tx_floating_rrc.h&#x0D;&#x0A;&#x0D;&#x0A;$(TargetPath) -m V.22bis1200 -i -r &gt;$(SolutionDir)\v22bis_rx_1200_fixed_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.22bis2400 -i -r &gt;$(SolutionDir)\v22bis_rx_2400_fixed_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.22bis1200 -r &gt;$(SolutionDir)\v22bis_rx_1200_floating_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.22bis2400 -r &gt;$(SolutionDir)\v22bis_rx_2400_floating_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.22bis -i -t &gt;$(SolutionDir)\v22bis_tx_fixed_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.22bis -t &gt;$(SolutionDir)\v22bis_tx_floating_rrc.h&#x0D;&#x0A;&#x0D;&#x0A;$(TargetPath) -m V.27ter2400 -i -r &gt;$(SolutionDir)\v27ter_rx_2400_fixed_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.27ter4800 -i -r &gt;$(SolutionDir)\v27ter_rx_4800_fixed_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.27ter2400 -r &gt;$(SolutionDir)\v27ter_rx_2400_floating_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.27ter4800 -r &gt;$(SolutionDir)\v27ter_rx_4800_floating_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.27ter2400 -i -t &gt;$(SolutionDir)\v27ter_tx_2400_fixed_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.27ter4800 -i -t &gt;$(SolutionDir)\v27ter_tx_4800_fixed_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.27ter2400 -t &gt;$(SolutionDir)\v27ter_tx_2400_floating_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.27ter4800 -t &gt;$(SolutionDir)\v27ter_tx_4800_floating_rrc.h&#x0D;&#x0A;&#x0D;&#x0A;$(TargetPath) -m V.29 -i -r &gt;$(SolutionDir)\v29rx_fixed_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.29 -r &gt;$(SolutionDir)\v29rx_floating_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.29 -i -t &gt;$(SolutionDir)\v29tx_fixed_rrc.h&#x0D;&#x0A;$(TargetPath) -m V.29 -t &gt;$(SolutionDir)\v29tx_floating_rrc.h&#x0D;&#x0A;" CommandLine="&quot;$(TargetPath)&quot; -m V.17 -i -r &gt;&quot;$(SolutionDir)\v17rx_fixed_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.17 -r &gt;&quot;$(SolutionDir)\v17rx_floating_rrc.h&quot;&#x0D;&#x0A;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.17 -i -t &gt;&quot;$(SolutionDir)\v17tx_fixed_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.17 -t &gt;&quot;$(SolutionDir)\v17tx_floating_rrc.h&quot;&#x0D;&#x0A;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.22bis1200 -i -r &gt;&quot;$(SolutionDir)\v22bis_rx_1200_fixed_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.22bis2400 -i -r &gt;&quot;$(SolutionDir)\v22bis_rx_2400_fixed_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.22bis1200 -r &gt;&quot;$(SolutionDir)\v22bis_rx_1200_floating_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.22bis2400 -r &gt;&quot;$(SolutionDir)\v22bis_rx_2400_floating_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.22bis -i -t &gt;&quot;$(SolutionDir)\v22bis_tx_fixed_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.22bis -t &gt;&quot;$(SolutionDir)\v22bis_tx_floating_rrc.h&quot;&#x0D;&#x0A;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.27ter2400 -i -r &gt;&quot;$(SolutionDir)\v27ter_rx_2400_fixed_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.27ter4800 -i -r &gt;&quot;$(SolutionDir)\v27ter_rx_4800_fixed_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.27ter2400 -r &gt;&quot;$(SolutionDir)\v27ter_rx_2400_floating_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.27ter4800 -r &gt;&quot;$(SolutionDir)\v27ter_rx_4800_floating_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.27ter2400 -i -t &gt;&quot;$(SolutionDir)\v27ter_tx_2400_fixed_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.27ter4800 -i -t &gt;&quot;$(SolutionDir)\v27ter_tx_4800_fixed_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.27ter2400 -t &gt;&quot;$(SolutionDir)\v27ter_tx_2400_floating_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.27ter4800 -t &gt;&quot;$(SolutionDir)\v27ter_tx_4800_floating_rrc.h&quot;&#x0D;&#x0A;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.29 -i -r &gt;&quot;$(SolutionDir)\v29rx_fixed_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.29 -r &gt;&quot;$(SolutionDir)\v29rx_floating_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.29 -i -t &gt;&quot;$(SolutionDir)\v29tx_fixed_rrc.h&quot;&#x0D;&#x0A;&quot;$(TargetPath)&quot; -m V.29 -t &gt;&quot;$(SolutionDir)\v29tx_floating_rrc.h&quot;&#x0D;&#x0A;"
/> />
</Configuration> </Configuration>
</Configurations> </Configurations>

View File

@ -178,7 +178,7 @@ static int16_t decode(oki_adpcm_state_t *s, uint8_t adpcm)
e += (ss >> 1); e += (ss >> 1);
/*endif*/ /*endif*/
if (adpcm & 0x04) if (adpcm & 0x04)
e = (int16_t)(e + ss); e += ss;
/*endif*/ /*endif*/
if (adpcm & 0x08) if (adpcm & 0x08)
e = -e; e = -e;
@ -193,7 +193,7 @@ static int16_t decode(oki_adpcm_state_t *s, uint8_t adpcm)
/*endif*/ /*endif*/
s->last = linear; s->last = linear;
s->step_index = (int16_t)(s->step_index + step_adjustment[adpcm & 0x07]); s->step_index += step_adjustment[adpcm & 0x07];
if (s->step_index < 0) if (s->step_index < 0)
s->step_index = 0; s->step_index = 0;
else if (s->step_index > 48) else if (s->step_index > 48)
@ -222,13 +222,13 @@ static uint8_t encode(oki_adpcm_state_t *s, int16_t linear)
if (e >= ss) if (e >= ss)
{ {
adpcm |= (uint8_t) 0x04; adpcm |= (uint8_t) 0x04;
e = (int16_t)(e - ss); e -= ss;
} }
/*endif*/ /*endif*/
if (e >= (ss >> 1)) if (e >= (ss >> 1))
{ {
adpcm |= (uint8_t) 0x02; adpcm |= (uint8_t) 0x02;
e = (int16_t)(e - ss); e -= ss;
} }
/*endif*/ /*endif*/
if (e >= (ss >> 2)) if (e >= (ss >> 2))

View File

@ -22,7 +22,7 @@
* License along with this program; if not, write to the Free Software * License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* $Id: complex.h,v 1.19 2009/02/10 17:16:57 steveu Exp $ * $Id: complex.h,v 1.20 2009/02/21 05:39:08 steveu Exp $
*/ */
/*! \file */ /*! \file */
@ -343,8 +343,8 @@ static __inline__ complexi16_t complex_muli16(const complexi16_t *x, const compl
{ {
complexi16_t z; complexi16_t z;
z.re = (int16_t)((int32_t) x->re*(int32_t) y->re - (int32_t) x->im*(int32_t) y->im); z.re = (int16_t) ((int32_t) x->re*(int32_t) y->re - (int32_t) x->im*(int32_t) y->im);
z.im = (int16_t)((int32_t) x->re*(int32_t) y->im + (int32_t) x->im*(int32_t) y->re); z.im = (int16_t) ((int32_t) x->re*(int32_t) y->im + (int32_t) x->im*(int32_t) y->re);
return z; return z;
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/
@ -353,8 +353,8 @@ static __inline__ complexi16_t complex_mul_q1_15(const complexi16_t *x, const co
{ {
complexi16_t z; complexi16_t z;
z.re = (int16_t)(((int32_t) x->re*(int32_t) y->re - (int32_t) x->im*(int32_t) y->im) >> 15); z.re = (int16_t) (((int32_t) x->re*(int32_t) y->re - (int32_t) x->im*(int32_t) y->im) >> 15);
z.im = (int16_t)(((int32_t) x->re*(int32_t) y->im + (int32_t) x->im*(int32_t) y->re) >> 15); z.im = (int16_t) (((int32_t) x->re*(int32_t) y->im + (int32_t) x->im*(int32_t) y->re) >> 15);
return z; return z;
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/

View File

@ -22,7 +22,7 @@
* License along with this program; if not, write to the Free Software * License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* $Id: fast_convert.h,v 1.3 2009/02/10 13:06:47 steveu Exp $ * $Id: fast_convert.h,v 1.4 2009/02/21 05:39:09 steveu Exp $
*/ */
#if !defined(_SPANDSP_FAST_CONVERT_H_) #if !defined(_SPANDSP_FAST_CONVERT_H_)
@ -231,7 +231,7 @@ extern "C"
} }
#endif #endif
#elif (defined(WIN32) || defined(_WIN32)) && !defined(_WIN64) #elif (defined(WIN32) || defined(_WIN32)) && !defined(_WIN64)
/* /*
* Win32 doesn't seem to have the lrint() and lrintf() functions. * Win32 doesn't seem to have the lrint() and lrintf() functions.
* Therefore implement inline versions of these functions here. * Therefore implement inline versions of these functions here.
@ -304,18 +304,34 @@ extern "C"
#elif defined(WIN64) || defined(_WIN64) #elif defined(WIN64) || defined(_WIN64)
/* x86_64 machines will do best with a simple assignment. */ /* x86_64 machines will do best with a simple assignment. */
__inline long int lrint(double x)
{
long int i;
_asm
{
fld x
fistp i
};
return i;
}
__inline long int lrintf(float x)
{
long int i;
_asm
{
fld x
fistp i
};
return i;
}
__inline long int lfastrint(double x) __inline long int lfastrint(double x)
{ {
return (long int) (x); return (long int) (x);
} }
__inline__ long int lrint(double x)
{
return (long int) (x);
}
__inline__ long int lrintf(float x)
{
return (long int) (x);
}
__inline long int lfastrintf(float x) __inline long int lfastrintf(float x)
{ {

View File

@ -30,8 +30,8 @@
/* The date and time of the version are in UTC form. */ /* The date and time of the version are in UTC form. */
#define SPANDSP_RELEASE_DATE 20090220 #define SPANDSP_RELEASE_DATE 20090221
#define SPANDSP_RELEASE_TIME 124309 #define SPANDSP_RELEASE_TIME 054406
#endif #endif
/*- End of file ------------------------------------------------------------*/ /*- End of file ------------------------------------------------------------*/

View File

@ -24,7 +24,7 @@
* License along with this program; if not, write to the Free Software * License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* $Id: t4.c,v 1.126 2009/02/20 12:34:20 steveu Exp $ * $Id: t4.c,v 1.127 2009/02/21 04:27:46 steveu Exp $
*/ */
/* /*
@ -410,11 +410,8 @@ static int test_tiff_directory_info(t4_state_t *s)
return -1; return -1;
parm = 0; parm = 0;
TIFFGetField(t->tiff_file, TIFFTAG_IMAGEWIDTH, &parm); TIFFGetField(t->tiff_file, TIFFTAG_IMAGEWIDTH, &parm);
if (s->image_width != (int)parm) if (s->image_width != (int) parm)
{
printf("Width changed\n");
return 1; return 1;
}
x_resolution = 0.0f; x_resolution = 0.0f;
TIFFGetField(t->tiff_file, TIFFTAG_XRESOLUTION, &x_resolution); TIFFGetField(t->tiff_file, TIFFTAG_XRESOLUTION, &x_resolution);
y_resolution = 0.0f; y_resolution = 0.0f;
@ -431,20 +428,14 @@ printf("Width changed\n");
break; break;
} }
if (s->x_resolution != x_res_table[i].code) if (s->x_resolution != x_res_table[i].code)
{
printf("X-res changed\n");
return 1; return 1;
}
for (i = 0; y_res_table[i].code > 0; i++) for (i = 0; y_res_table[i].code > 0; i++)
{ {
if (test_resolution(res_unit, y_resolution, y_res_table[i].resolution)) if (test_resolution(res_unit, y_resolution, y_res_table[i].resolution))
break; break;
} }
if (s->y_resolution != y_res_table[i].code) if (s->y_resolution != y_res_table[i].code)
{
printf("Y-res changed\n");
return 1; return 1;
}
return 0; return 0;
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/

View File

@ -22,7 +22,7 @@
* License along with this program; if not, write to the Free Software * License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
* $Id: vector_int.c,v 1.24 2009/02/03 16:28:40 steveu Exp $ * $Id: vector_int.c,v 1.25 2009/02/21 04:27:46 steveu Exp $
*/ */
/*! \file */ /*! \file */
@ -300,7 +300,7 @@ SPAN_DECLARE(void) vec_lmsi16(const int16_t x[], int16_t y[], int n, int16_t err
int i; int i;
for (i = 0; i < n; i++) for (i = 0; i < n; i++)
y[i] = (int16_t) (y[i] + (((int32_t) x[i]*(int32_t) error) >> 15)); y[i] += (int16_t) (((int32_t) x[i]*(int32_t) error) >> 15);
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/

View File

@ -17,10 +17,11 @@
# License along with this program; if not, write to the Free Software # License along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# #
# $Id: regression_tests.sh,v 1.54 2009/01/12 17:20:59 steveu Exp $ # $Id: regression_tests.sh,v 1.55 2009/02/20 14:04:40 steveu Exp $
# #
ITUTESTS_TIF=../test-data/itu/fax/itutests.tif ITUTESTS_TIF=../test-data/itu/fax/itutests.tif
MIXEDSIZES_TIF=../test-data/itu/fax/mixed_size_pages.tif
STDOUT_DEST=xyzzy STDOUT_DEST=xyzzy
STDERR_DEST=xyzzy2 STDERR_DEST=xyzzy2
@ -181,6 +182,7 @@ echo dtmf_tx_tests completed OK
#echo echo_tests completed OK #echo echo_tests completed OK
echo echo_tests not enabled echo echo_tests not enabled
#Try the ITU test pages without ECM
rm -f fax_tests_1.tif rm -f fax_tests_1.tif
./fax_tests >$STDOUT_DEST 2>$STDERR_DEST ./fax_tests >$STDOUT_DEST 2>$STDERR_DEST
RETVAL=$? RETVAL=$?
@ -198,6 +200,7 @@ then
echo fax_tests failed! echo fax_tests failed!
exit $RETVAL exit $RETVAL
fi fi
#Try the ITU test pages with ECM
rm -f fax_tests_1.tif rm -f fax_tests_1.tif
./fax_tests -e >$STDOUT_DEST 2>$STDERR_DEST ./fax_tests -e >$STDOUT_DEST 2>$STDERR_DEST
RETVAL=$? RETVAL=$?
@ -215,6 +218,24 @@ then
echo fax_tests -e failed! echo fax_tests -e failed!
exit $RETVAL exit $RETVAL
fi fi
#Try some mixed sized test pages without ECM
rm -f fax_tests_1.tif
./fax_tests -i ${MIXEDSIZES_TIF} >$STDOUT_DEST 2>$STDERR_DEST
RETVAL=$?
if [ $RETVAL != 0 ]
then
echo fax_tests failed!
exit $RETVAL
fi
# Now use tiffcmp to check the results. It will return non-zero if any page images differ. The -t
# option means the normal differences in tags will be ignored.
tiffcmp -t ${MIXEDSIZES_TIF} fax_tests_1.tif >/dev/null
RETVAL=$?
if [ $RETVAL != 0 ]
then
echo fax_tests failed!
exit $RETVAL
fi
echo fax_tests completed OK echo fax_tests completed OK
./fsk_tests >$STDOUT_DEST 2>$STDERR_DEST ./fsk_tests >$STDOUT_DEST 2>$STDERR_DEST