summaryrefslogtreecommitdiff
path: root/third_party/build/resample
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-04-07 14:53:15 +0000
committerBenny Prijono <bennylp@teluu.com>2007-04-07 14:53:15 +0000
commitca07a9833149d270d1e5b44cfa381ac6ac03e39c (patch)
tree0d1297c8326f76aec00e068795ed1505047c63a7 /third_party/build/resample
parent81d1b2797aa3945c529d57f9ddf6179ec2b392a4 (diff)
Moved resample to third_party directory
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/split-3rd-party@1170 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/build/resample')
-rw-r--r--third_party/build/resample/config.h18
-rw-r--r--third_party/build/resample/endian.h1
-rw-r--r--third_party/build/resample/libresample.dsp94
-rw-r--r--third_party/build/resample/resamplesubs.h23
4 files changed, 136 insertions, 0 deletions
diff --git a/third_party/build/resample/config.h b/third_party/build/resample/config.h
new file mode 100644
index 00000000..bf4cda6a
--- /dev/null
+++ b/third_party/build/resample/config.h
@@ -0,0 +1,18 @@
+/* This file is included by endian.h */
+
+#include <pj/types.h>
+#undef INLINE
+#define INLINE __inline
+
+
+#ifndef WITH_PJ
+# error This needs to be declared!
+#endif
+
+#ifdef _MSC_VER
+# pragma warning(disable: 4244) // conversion from 'double ' to 'unsigned int ', possible loss of data
+# pragma warning(disable: 4761) // integral size mismatch in argument; conversion supplied
+#endif
+
+#define STATIC
+
diff --git a/third_party/build/resample/endian.h b/third_party/build/resample/endian.h
new file mode 100644
index 00000000..1ac2545d
--- /dev/null
+++ b/third_party/build/resample/endian.h
@@ -0,0 +1 @@
+#include "config.h"
diff --git a/third_party/build/resample/libresample.dsp b/third_party/build/resample/libresample.dsp
new file mode 100644
index 00000000..3bd4ca14
--- /dev/null
+++ b/third_party/build/resample/libresample.dsp
@@ -0,0 +1,94 @@
+# Microsoft Developer Studio Project File - Name="libresample" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Static Library" 0x0104
+
+CFG=libresample - 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 "libresample.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 "libresample.mak" CFG="libresample - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "libresample - Win32 Release" (based on "Win32 (x86) Static Library")
+!MESSAGE "libresample - Win32 Debug" (based on "Win32 (x86) Static Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "libresample - 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 "output\libresample-i386-vc6-release"
+# PROP Intermediate_Dir "output\libresample-i386-vc6-release"
+# PROP Target_Dir ""
+F90=df.exe
+# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
+# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LIB32=link.exe -lib
+# ADD BASE LIB32 /nologo
+# ADD LIB32 /nologo /out:"..\..\lib\libresample-i386-vc6-release.lib"
+
+!ELSEIF "$(CFG)" == "libresample - 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 "output\libresample-i386-vc6-debug"
+# PROP Intermediate_Dir "output\libresample-i386-vc6-debug"
+# PROP Target_Dir ""
+F90=df.exe
+# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
+# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LIB32=link.exe -lib
+# ADD BASE LIB32 /nologo
+# ADD LIB32 /nologo /out:"..\..\lib\libresample-i386-vc6-debug.lib"
+
+!ENDIF
+
+# Begin Target
+
+# Name "libresample - Win32 Release"
+# Name "libresample - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# End Group
+# End Target
+# End Project
diff --git a/third_party/build/resample/resamplesubs.h b/third_party/build/resample/resamplesubs.h
new file mode 100644
index 00000000..825df971
--- /dev/null
+++ b/third_party/build/resample/resamplesubs.h
@@ -0,0 +1,23 @@
+
+int
+ SrcLinear(short X[], short Y[], double factor, unsigned int *Time, unsigned short Nx);
+
+int SrcUp(short X[], short Y[], double factor, unsigned int *Time,
+ unsigned short Nx, unsigned short Nwing, unsigned short LpScl,
+ short Imp[], short ImpD[], char Interp);
+
+int SrcUD(short X[], short Y[], double factor, unsigned int *Time,
+ unsigned short Nx, unsigned short Nwing, unsigned short LpScl,
+ short Imp[], short ImpD[], char Interp);
+
+extern unsigned resample_LARGE_FILTER_NMULT;
+extern unsigned resample_LARGE_FILTER_NWING;
+extern unsigned resample_LARGE_FILTER_SCALE;
+extern short* resample_LARGE_FILTER_IMP;
+extern short* resample_LARGE_FILTER_IMPD;
+
+extern unsigned resample_SMALL_FILTER_NMULT;
+extern unsigned resample_SMALL_FILTER_NWING;
+extern unsigned resample_SMALL_FILTER_SCALE;
+extern short* resample_SMALL_FILTER_IMP;
+extern short* resample_SMALL_FILTER_IMPD;