swap to new ilbc library

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12095 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2009-02-17 16:28:01 +00:00
1 parent d6993cb472
commit 749114b704
191 files changed
+60584 -19045

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#ifdef _MSC_VER
#pragma warning(disable:4100)
#endif
#include "windows.h"
void gettimeofday(struct timeval *tv, void *tz)
{
long int l = GetTickCount();
tv->tv_sec = l / 1000;
tv->tv_usec = (l % 1000) * 1000;
return;
}
+304
View File
@@ -0,0 +1,304 @@
EXPORTS
adsi_rx_init
adsi_rx
adsi_tx_init
adsi_send_alert_tone
adsi_put_message
adsi_next_field
adsi_add_field
async_tx_init
async_rx_init
awgn
bert_init
bert_get_bit
bert_put_bit
bert_set_report
bert_result
filter_create
filter_delete
filter_step
cfilter_create
cfilter_delete
cfilter_step
dds_phase_rate
dds_frequency
dds_scaling_dbm0
dds_scaling_dbov
dds_lookup
dds_offset
dds
dds_mod
dds_complex
dds_complex_mod
dds_phase_ratef
dds_frequencyf
dds_scaling_dbm0f
dds_scaling_dbovf
ddsf
dds_modf
dds_complexf
dds_complex_modf
echo_can_create
echo_can_free
echo_can_flush
echo_can_adaption_mode
echo_can_update
fax_rx
fax_tx
fax_set_flush_handler
fax_init
fax_release
fsk_tx_init
fsk_tx_power
fsk_tx_set_get_bit
fsk_tx
fsk_rx_signal_power
fsk_rx_signal_cutoff
fsk_rx_init
fsk_rx
fsk_rx_set_put_bit
g722_encode_init
g722_encode_release
g722_encode
g722_decode_init
g722_decode_release
g722_decode
g726_init
g726_release
crc_itu32_calc
crc_itu32_append
crc_itu32_check
crc_itu16_calc
crc_itu16_append
crc_itu16_check
hdlc_rx_init
hdlc_rx_get_stats
hdlc_tx_init
hdlc_tx_frame
hdlc_tx_preamble
ima_adpcm_init
ima_adpcm_release
span_log_test
span_log
span_log_buf
span_log_init
span_log_set_protocol
span_set_message_handler
span_set_error_handler
modem_echo_can_create
modem_echo_can_free
modem_echo_can_flush
modem_echo_can_adaption_mode
modem_echo_can_update
noise
oki_adpcm_init
oki_adpcm_release
playout_put
playout_get
playout_get_unconditional
playout_current_length
playout_next_due
playout_new
playout_free
playout_restart
plc_rx
plc_fillin
plc_init
plc_release
power_meter_init
power_meter_damping
power_meter_update
power_meter_dbm0
power_meter_dbov
power_meter_level_dbm0
power_meter_level_dbov
queue_empty
queue_free_space
queue_contents
queue_flush
queue_view
queue_read
queue_write
queue_test_msg
queue_read_msg
queue_write_msg
queue_create
queue_delete
sig_tone_init
sig_tone_rx
sig_tone_tx
super_tone_rx_make_descriptor
super_tone_rx_add_tone
super_tone_rx_add_element
super_tone_rx_init
super_tone_rx_free
super_tone_rx_segment_callback
super_tone_rx
super_tone_tx_make_step
super_tone_tx_free
super_tone_tx_init
super_tone_tx
t30_init
t30_release
t30_restart
t30_create
t30_free
t30_frametype
t30_decode_dis_dtc_dcs
t30_completion_code_to_str
t30_set_header_info
t30_set_local_ident
t30_get_sub_address
t30_get_header_info
t30_get_local_ident
t30_get_far_ident
t30_get_transfer_statistics
t30_set_phase_b_handler
t30_set_phase_d_handler
t30_set_phase_e_handler
t30_set_document_handler
t30_set_rx_file
t30_set_tx_file
t30_local_interrupt_request
t30_send_complete
t30_hdlc_accept
t30_timer_update
t31_call_event
t31_at_rx
t31_rx
t31_tx
t31_init
t31_release
t35_decode
t38_indicator
t38_data_type
t38_field_type
t38_terminal_init
t38_gateway_init
t4_rx_create
t4_rx_init
t4_rx_start_page
t4_rx_end_page
t4_rx_delete
t4_rx_end
t4_rx_set_rx_encoding
t4_rx_set_sub_address
t4_rx_set_far_ident
t4_rx_set_vendor
t4_rx_set_model
t4_tx_create
t4_tx_init
t4_tx_start_page
t4_tx_restart_page
t4_tx_end_page
t4_tx_delete
t4_tx_end
t4_tx_set_tx_encoding
t4_tx_set_min_row_bits
t4_tx_set_local_ident
t4_tx_set_header_info
t4_get_transfer_statistics
t4_encoding_to_str
time_scale_init
time_scale_rate
time_scale
make_goertzel_descriptor
goertzel_init
goertzel_update
goertzel_result
dtmf_rx_init
dtmf_rx_set_realtime_callback
dtmf_rx_parms
dtmf_rx
make_tone_descriptor
make_tone_gen_descriptor
tone_gen_init
tone_gen
dtmf_tx_init
dtmf_tx
v17_rx_init
v17_rx_restart
v17_rx_release
v17_rx_set_put_bit
v17_rx
v17_rx_equalizer_state
v17_rx_carrier_frequency
v17_rx_symbol_timing_correction
v17_rx_signal_power
v17_rx_signal_cutoff
v17_rx_set_qam_report_handler
v17_tx_power
v17_tx_init
v17_tx_restart
v17_tx_release
v17_tx_set_get_bit
v17_tx
v22bis_rx_restart
v22bis_rx
v22bis_rx_equalizer_state
v22bis_rx_carrier_frequency
v22bis_rx_symbol_timing_correction
v22bis_rx_signal_power
v22bis_rx_set_qam_report_handler
v22bis_tx
v22bis_tx_power
v22bis_restart
v22bis_init
v22bis_set_get_bit
v22bis_set_put_bit
v27ter_rx_init
v27ter_rx_restart
v27ter_rx_release
v27ter_rx_set_put_bit
v27ter_rx
v27ter_rx_equalizer_state
v27ter_rx_carrier_frequency
v27ter_rx_symbol_timing_correction
v27ter_rx_signal_power
v27ter_rx_signal_cutoff
v27ter_rx_set_qam_report_handler
v27ter_tx_power
v27ter_tx_init
v27ter_tx_restart
v27ter_tx_release
v27ter_tx_set_get_bit
v27ter_tx
v29_rx_init
v29_rx_restart
v29_rx_release
v29_rx_set_put_bit
v29_rx
v29_rx_equalizer_state
v29_rx_carrier_frequency
v29_rx_symbol_timing_correction
v29_rx_signal_power
v29_rx_signal_cutoff
v29_rx_set_qam_report_handler
v29_tx_power
v29_tx_init
v29_tx_restart
v29_tx_release
v29_tx_set_get_bit
v29_tx
lapm_dump
lapm_receive
lapm_tx
lapm_tx_iframe
v42_set_status_callback
v42_rx_bit
v42_tx_bit
v42_init
v42_restart
v42_release
v42bis_compress
v42bis_compress_flush
v42bis_decompress
v42bis_decompress_flush
v42bis_init
v42bis_release
v8_init
v8_release
v8_tx
v8_rx
v8_log_supported_modulations
+87
View File
@@ -0,0 +1,87 @@
/*
* SpanDSP - a series of DSP components for telephony
*
* inttypes.h - a fudge for MSVC, which lacks this header
*
* Written by Steve Underwood <steveu@coppice.org>
*
* Copyright (C) 2006 Michael Jerris
*
*
* This file is released in the public domain.
*
*/
#if !defined(_INTTYPES_H_)
#define _INTTYPES_H_
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _MSC_VER
#if (_MSC_VER >= 1400) // VC8+
#ifndef _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_DEPRECATE
#endif
#ifndef _CRT_NONSTDC_NO_DEPRECATE
#define _CRT_NONSTDC_NO_DEPRECATE
#endif
#endif // VC8+
#include <windows.h>
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
typedef unsigned __int64 uint64_t;
typedef __int8 int8_t;
typedef __int16 int16_t;
typedef __int32 int32_t;
typedef __int64 int64_t;
#define inline __inline
#define __inline__ __inline
#define INT16_MAX 0x7fff
#define INT16_MIN (-INT16_MAX - 1)
#define _MMX_H_
/* disable the following warnings
* C4100: The formal parameter is not referenced in the body of the function. The unreferenced parameter is ignored.
* C4200: Non standard extension C zero sized array
* C4706: assignment within conditional expression
* C4244: conversion from 'type1' to 'type2', possible loss of data
* C4295: array is too small to include a terminating null character
* C4125: decimal digit terminates octal escape sequence
*/
#pragma warning(disable:4100 4200 4706 4295 4125)
#pragma comment(lib, "ws2_32.lib")
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#define snprintf _snprintf
#if !defined(INFINITY)
#define INFINITY 0x7fffffff
#endif
#endif
#define PACKAGE "ilbc"
#define VERSION "0.0.1andabit"
#define INT32_MAX (2147483647)
#define INT32_MIN (-2147483647 - 1)
#define PRId8 "d"
#define PRId16 "d"
#define PRId32 "ld"
#define PRId64 "lld"
#define PRIu8 "u"
#define PRIu16 "u"
#define PRIu32 "lu"
#define PRIu64 "llu"
#ifdef __cplusplus
}
#endif
#endif
+7
View File
@@ -0,0 +1,7 @@
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
# End Target
# End Project
+92
View File
@@ -0,0 +1,92 @@
# Microsoft Developer Studio Project File - Name="ilbc" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
CFG=ilbc - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "ilbc.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "ilbc.mak" CFG="ilbc - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "ilbc - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE "ilbc - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "ilbc - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D HAVE_TGMATH_H /YX /FD /c
# ADD CPP /nologo /MT /W3 /GX /Zi /O2 /I "." /I "..\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D HAVE_TGMATH_H /D "_WINDLL" /FR /FD /c
# SUBTRACT CPP /YX
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
# ADD LINK32 kernel32.lib ws2_32.lib winmm.lib /nologo /dll /map /debug /machine:I386 /out:"Release/libilbc.dll"
!ELSEIF "$(CFG)" == "ilbc - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D HAVE_TGMATH_H /YX /FD /GZ /c
# ADD CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /I "." /I "..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D HAVE_TGMATH_H /FR /FD /GZ /c
# SUBTRACT CPP /WX /YX
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib ws2_32.lib winmm.lib /nologo /dll /incremental:no /map /debug /machine:I386 /out:"Debug/libilbc.dll" /pdbtype:sept
# SUBTRACT LINK32 /nodefaultlib
!ENDIF
# Begin Target
# Name "ilbc - Win32 Release"
# Name "ilbc - Win32 Debug"
+1
View File
@@ -0,0 +1 @@
extern void gettimeofday(struct timeval *tv, void *tz);
+84
View File
@@ -0,0 +1,84 @@
/*
* SpanDSP - a series of DSP components for telephony
*
* tgmath.h - a fudge for MSVC, which lacks this header
*
* Written by Steve Underwood <steveu@coppice.org>
*
* Copyright (C) 2006 Michael Jerris
*
*
* This file is released in the public domain.
*
*/
#if !defined(_TGMATH_H_)
#define _TGMATH_H_
#include <math.h>
#if !defined(M_PI)
/* C99 systems may not define M_PI */
#define M_PI 3.14159265358979323846264338327
#endif
#ifdef __cplusplus
extern "C" {
#endif
/* A kindofa rint() for VC++ (only kindofa, because rint should be type generic,
and this one is purely float to int */
static inline long int lrintf(float a)
{
long int i;
__asm
{
fld a
fistp i
}
return i;
}
static inline long int lrint(double a)
{
long int i;
__asm
{
fld a
fistp i
}
return i;
}
static inline int rintf(float a)
{
int i;
__asm
{
fld a
fistp i
}
return i;
}
static inline int rint(double a)
{
int i;
__asm
{
fld a
fistp i
}
return i;
}
#ifdef __cplusplus
}
#endif
#endif
+31
View File
@@ -0,0 +1,31 @@
/*
* SpanDSP - a series of DSP components for telephony
*
* inttypes.h - a fudge for MSVC, which lacks this header
*
* Written by Steve Underwood <steveu@coppice.org>
*
* Copyright (C) 2006 Michael Jerris
*
*
* This file is released in the public domain.
*
*/
#if !defined(_INTTYPES_H_)
#define _INTTYPES_H_
#ifdef __cplusplus
extern "C" {
#endif
#define open _open
#define write _write
extern int gethostname (char *name, size_t len);
#ifdef __cplusplus
}
#endif
#endif
+11
View File
@@ -0,0 +1,11 @@
</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>
+180
View File
@@ -0,0 +1,180 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="libilbc"
ProjectGUID="{CF70F278-3364-4395-A2E1-23501C9B8AD2}"
RootNamespace="libilbc"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="src; src\ilbc; src\msvc"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBSPANDSP_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;HAVE_TGMATH_H"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="4"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
LinkIncremental="2"
ModuleDefinitionFile="src/msvc/ilbc.def"
GenerateDebugInformation="true"
SubSystem="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="src; src\ilbc; src\msvc"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBSPANDSP_EXPORTS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;HAVE_TGMATH_H"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="4"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
LinkIncremental="1"
ModuleDefinitionFile="src/msvc/ilbc.def"
GenerateDebugInformation="true"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>