提交 344c37a2 authored 作者: Michael Jerris's avatar Michael Jerris

new codec lib msvc build.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2511 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 f4bfb186
差异被折叠。
...@@ -21,12 +21,14 @@ ...@@ -21,12 +21,14 @@
#include <config.h> #include <config.h>
#endif #endif
#include <inttypes.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <tgmath.h>
#include <assert.h> #include <assert.h>
#ifndef _MSC_VER
#include <inttypes.h>
#include <tgmath.h>
#endif
#include "g711.h" #include "g711.h"
......
...@@ -46,6 +46,16 @@ specification by other means. ...@@ -46,6 +46,16 @@ specification by other means.
extern "C" { extern "C" {
#endif #endif
#ifdef _MSC_VER
#ifndef __inline__
#define __inline__ __inline
#endif
typedef unsigned __int8 uint8_t;
typedef __int16 int16_t;
typedef __int32 int32_t;
typedef unsigned __int16 uint16_t;
#endif
#if defined(__i386__) #if defined(__i386__)
/*! \brief Find the bit position of the highest set bit in a word /*! \brief Find the bit position of the highest set bit in a word
\param bits The word to be searched \param bits The word to be searched
......
...@@ -27,6 +27,22 @@ ...@@ -27,6 +27,22 @@
#if !defined(_G722_H_) #if !defined(_G722_H_)
#define _G722_H_ #define _G722_H_
#ifdef _MSC_VER
#ifndef __inline__
#define __inline__ __inline
#endif
typedef unsigned __int8 uint8_t;
typedef __int16 int16_t;
typedef __int32 int32_t;
typedef unsigned __int16 uint16_t;
#ifndef INT16_MAX
#define INT16_MAX 0x7fff
#endif
#ifndef INT16_MIN
#define INT16_MIN (-INT16_MAX - 1)
#endif
#endif
/*! \page g722_page G.722 encoding and decoding /*! \page g722_page G.722 encoding and decoding
\section g722_page_sec_1 What does it do? \section g722_page_sec_1 What does it do?
The G.722 module is a bit exact implementation of the ITU G.722 specification for all three The G.722 module is a bit exact implementation of the ITU G.722 specification for all three
......
...@@ -28,10 +28,12 @@ ...@@ -28,10 +28,12 @@
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <inttypes.h>
#include <memory.h> #include <memory.h>
#include <stdlib.h> #include <stdlib.h>
#ifndef _MSC_VER
#include <inttypes.h>
#include <tgmath.h> #include <tgmath.h>
#endif
#include "g722.h" #include "g722.h"
......
...@@ -30,10 +30,12 @@ ...@@ -30,10 +30,12 @@
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <inttypes.h>
#include <memory.h> #include <memory.h>
#include <stdlib.h> #include <stdlib.h>
#ifndef _MSC_VER
#include <inttypes.h>
#include <tgmath.h> #include <tgmath.h>
#endif
#include "g722.h" #include "g722.h"
......
...@@ -50,10 +50,12 @@ ...@@ -50,10 +50,12 @@
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <inttypes.h>
#include <memory.h> #include <memory.h>
#include <stdlib.h> #include <stdlib.h>
#ifndef _MSC_VER
#include <inttypes.h>
#include <tgmath.h> #include <tgmath.h>
#endif
#include "g711.h" #include "g711.h"
#include "g726.h" #include "g726.h"
......
...@@ -46,6 +46,16 @@ ...@@ -46,6 +46,16 @@
#if !defined(_G726_H_) #if !defined(_G726_H_)
#define _G726_H_ #define _G726_H_
#ifdef _MSC_VER
#ifndef __inline__
#define __inline__ __inline
#endif
typedef unsigned __int8 uint8_t;
typedef __int16 int16_t;
typedef __int32 int32_t;
typedef unsigned __int16 uint16_t;
#endif
/*! \page g726_page G.726 encoding and decoding /*! \page g726_page G.726 encoding and decoding
\section g726_page_sec_1 What does it do? \section g726_page_sec_1 What does it do?
......
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="libg7xx"
ProjectGUID="{D71E7338-8D9C-4FE4-A15F-D5CC60202C7C}"
RootNamespace="libg7xx"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="4"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="4"
WarnAsError="true"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="4"
CharacterSet="1"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="4"
Detect64BitPortabilityProblems="true"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<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}"
>
<File
RelativePath=".\g711.c"
>
</File>
<File
RelativePath=".\g722_decode.c"
>
</File>
<File
RelativePath=".\g722_encode.c"
>
</File>
<File
RelativePath=".\g726.c"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath=".\g711.h"
>
</File>
<File
RelativePath=".\g722.h"
>
</File>
<File
RelativePath=".\g726.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>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论