summaryrefslogtreecommitdiffstats
path: root/g729a
diff options
context:
space:
mode:
authorMamadou DIOP <bossiel@yahoo.fr>2015-08-17 01:56:35 +0200
committerMamadou DIOP <bossiel@yahoo.fr>2015-08-17 01:56:35 +0200
commit631fffee8a28b1bec5ed1f1d26a20e0135967f99 (patch)
tree74afe3bf3efe15aa82bcd0272b2b0f4d48c2d837 /g729a
parent7908865936604036e6f200f1b5e069f8752f3a3a (diff)
downloaddoubango-631fffee8a28b1bec5ed1f1d26a20e0135967f99.zip
doubango-631fffee8a28b1bec5ed1f1d26a20e0135967f99.tar.gz
-
Diffstat (limited to 'g729a')
-rw-r--r--g729a/droid-makefile58
-rw-r--r--g729a/export.def13
-rw-r--r--g729a/g729a.sln23
-rw-r--r--g729a/g729a.vcproj378
-rw-r--r--g729a/lower.sh11
5 files changed, 483 insertions, 0 deletions
diff --git a/g729a/droid-makefile b/g729a/droid-makefile
new file mode 100644
index 0000000..3d5442a
--- /dev/null
+++ b/g729a/droid-makefile
@@ -0,0 +1,58 @@
+APP := lib$(PROJECT)_$(MARCH).$(EXT)
+
+CFLAGS := $(CFLAGS_LIB) -D__unix__
+LDFLAGS := $(LDFLAGS_LIB) -lgcc
+
+all: $(APP)
+
+OBJS = ACELP_CA.o\
+ BASIC_OP.o\
+ BITS.o\
+ COD_LD8A.o\
+ COR_FUNC.o\
+ DEC_GAIN.o\
+ DEC_LAG3.o\
+ DEC_LD8A.o\
+ DE_ACELP.o\
+ DSPFUNC.o\
+ FILTER.o\
+ GAINPRED.o\
+ LPC.o\
+ LPCFUNC.o\
+ LSPDEC.o\
+ LSPGETQ.o\
+ OPER_32B.o\
+ PITCH_A.o\
+ POSTFILT.o\
+ POST_PRO.o\
+ PRED_LT3.o\
+ PRE_PROC.o\
+ P_PARITY.o\
+ QUA_GAIN.o\
+ QUA_LSP.o\
+ TAB_LD8A.o\
+ TAMING.o\
+ UTIL.o
+
+
+$(APP): $(OBJS)
+ifeq ($(EXT), a)
+ $(AR) rcs $@ $^
+else
+ $(CC) $(LDFLAGS) -o $@ $^
+endif
+
+%.o: %.c
+ $(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
+
+install: $(APP)
+ cp -f $(APP) ../thirdparties/android/lib
+
+shell:
+ $(ANDROID_SDK_ROOT)/tools/adb shell
+
+run:
+ $(ANDROID_SDK_ROOT)/tools/adb shell $(LIB_DIR)/$(APP)
+
+clean:
+ @rm -f $(OBJS) $(APP) \ No newline at end of file
diff --git a/g729a/export.def b/g729a/export.def
new file mode 100644
index 0000000..490b886
--- /dev/null
+++ b/g729a/export.def
@@ -0,0 +1,13 @@
+EXPORTS
+
+ Init_Decod_ld8a
+ Init_Post_Filter
+ Init_Post_Process
+ Decod_ld8a
+ Check_Parity_Pitch
+ bits2prm_ld8k
+
+ Init_Pre_Process
+ Init_Coder_ld8a
+ Set_zero
+ \ No newline at end of file
diff --git a/g729a/g729a.sln b/g729a/g729a.sln
new file mode 100644
index 0000000..df3aac1
--- /dev/null
+++ b/g729a/g729a.sln
@@ -0,0 +1,23 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "g729a", "g729a.vcproj", "{E70DA42C-FE52-4C1F-B85E-9DB825E488A4}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ Release_Shared|Win32 = Release_Shared|Win32
+ Release_Static|Win32 = Release_Static|Win32
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {E70DA42C-FE52-4C1F-B85E-9DB825E488A4}.Debug|Win32.ActiveCfg = Debug|Win32
+ {E70DA42C-FE52-4C1F-B85E-9DB825E488A4}.Debug|Win32.Build.0 = Debug|Win32
+ {E70DA42C-FE52-4C1F-B85E-9DB825E488A4}.Release_Shared|Win32.ActiveCfg = Release_Shared|Win32
+ {E70DA42C-FE52-4C1F-B85E-9DB825E488A4}.Release_Shared|Win32.Build.0 = Release_Shared|Win32
+ {E70DA42C-FE52-4C1F-B85E-9DB825E488A4}.Release_Static|Win32.ActiveCfg = Release|Win32
+ {E70DA42C-FE52-4C1F-B85E-9DB825E488A4}.Release_Static|Win32.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/g729a/g729a.vcproj b/g729a/g729a.vcproj
new file mode 100644
index 0000000..626adeb
--- /dev/null
+++ b/g729a/g729a.vcproj
@@ -0,0 +1,378 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="9.00"
+ Name="g729a"
+ ProjectGUID="{E70DA42C-FE52-4C1F-B85E-9DB825E488A4}"
+ RootNamespace="g729a"
+ Keyword="Win32Proj"
+ TargetFrameworkVersion="196613"
+ >
+ <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="3"
+ DebugInformationFormat="4"
+ />
+ <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"
+ Optimization="2"
+ EnableIntrinsicFunctions="true"
+ WholeProgramOptimization="false"
+ PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
+ RuntimeLibrary="2"
+ EnableFunctionLevelLinking="true"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="3"
+ CompileAs="1"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ OutputFile="..\thirdparties\win32\lib\g729a\$(ProjectName).a"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_Shared|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="2"
+ CharacterSet="1"
+ WholeProgramOptimization="0"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="2"
+ EnableIntrinsicFunctions="true"
+ WholeProgramOptimization="false"
+ PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
+ RuntimeLibrary="2"
+ EnableFunctionLevelLinking="true"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="3"
+ CompileAs="1"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ ModuleDefinitionFile="export.def"
+ LinkTimeCodeGeneration="0"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <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=".\ACELP_CA.C"
+ >
+ </File>
+ <File
+ RelativePath=".\BASIC_OP.C"
+ >
+ </File>
+ <File
+ RelativePath=".\BITS.C"
+ >
+ </File>
+ <File
+ RelativePath=".\COD_LD8A.C"
+ >
+ </File>
+ <File
+ RelativePath=".\COR_FUNC.C"
+ >
+ </File>
+ <File
+ RelativePath=".\DE_ACELP.C"
+ >
+ </File>
+ <File
+ RelativePath=".\DEC_GAIN.C"
+ >
+ </File>
+ <File
+ RelativePath=".\DEC_LAG3.C"
+ >
+ </File>
+ <File
+ RelativePath=".\DEC_LD8A.C"
+ >
+ </File>
+ <File
+ RelativePath=".\DSPFUNC.C"
+ >
+ </File>
+ <File
+ RelativePath=".\FILTER.C"
+ >
+ </File>
+ <File
+ RelativePath=".\GAINPRED.C"
+ >
+ </File>
+ <File
+ RelativePath=".\LPC.C"
+ >
+ </File>
+ <File
+ RelativePath=".\LPCFUNC.C"
+ >
+ </File>
+ <File
+ RelativePath=".\LSPDEC.C"
+ >
+ </File>
+ <File
+ RelativePath=".\LSPGETQ.C"
+ >
+ </File>
+ <File
+ RelativePath=".\OPER_32B.C"
+ >
+ </File>
+ <File
+ RelativePath=".\P_PARITY.C"
+ >
+ </File>
+ <File
+ RelativePath=".\PITCH_A.C"
+ >
+ </File>
+ <File
+ RelativePath=".\POST_PRO.C"
+ >
+ </File>
+ <File
+ RelativePath=".\POSTFILT.C"
+ >
+ </File>
+ <File
+ RelativePath=".\PRE_PROC.C"
+ >
+ </File>
+ <File
+ RelativePath=".\PRED_LT3.C"
+ >
+ </File>
+ <File
+ RelativePath=".\QUA_GAIN.C"
+ >
+ </File>
+ <File
+ RelativePath=".\QUA_LSP.C"
+ >
+ </File>
+ <File
+ RelativePath=".\TAB_LD8A.C"
+ >
+ </File>
+ <File
+ RelativePath=".\TAMING.C"
+ >
+ </File>
+ <File
+ RelativePath=".\UTIL.C"
+ >
+ </File>
+ </Filter>
+ <Filter
+ Name="Header Files"
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+ >
+ <File
+ RelativePath=".\BASIC_OP.H"
+ >
+ </File>
+ <File
+ RelativePath=".\LD8A.H"
+ >
+ </File>
+ <File
+ RelativePath=".\OPER_32B.H"
+ >
+ </File>
+ <File
+ RelativePath=".\TAB_LD8A.H"
+ >
+ </File>
+ <File
+ RelativePath=".\TYPEDEF.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>
+ <File
+ RelativePath=".\export.def"
+ >
+ </File>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/g729a/lower.sh b/g729a/lower.sh
new file mode 100644
index 0000000..3c9a7c2
--- /dev/null
+++ b/g729a/lower.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# A file with a '.C' (uppercase C) extension will be considered to be a C++ module instead of a C module
+# As 'libg729a' will be linked to a 'C' library we must change the extension or use [export "C"] on all
+# public function. I prefer the first solution.
+
+for f in `ls *.C`
+do
+ echo "Rename file from ${f%.*}.C -to-> ${f%.*}.c"
+ mv ${f%.*}.C ${f%.*}.c
+done
OpenPOWER on IntegriCloud