From 631fffee8a28b1bec5ed1f1d26a20e0135967f99 Mon Sep 17 00:00:00 2001 From: Mamadou DIOP Date: Mon, 17 Aug 2015 01:56:35 +0200 Subject: - --- g729a/droid-makefile | 58 ++++++++ g729a/export.def | 13 ++ g729a/g729a.sln | 23 ++++ g729a/g729a.vcproj | 378 +++++++++++++++++++++++++++++++++++++++++++++++++++ g729a/lower.sh | 11 ++ 5 files changed, 483 insertions(+) create mode 100644 g729a/droid-makefile create mode 100644 g729a/export.def create mode 100644 g729a/g729a.sln create mode 100644 g729a/g729a.vcproj create mode 100644 g729a/lower.sh (limited to 'g729a') 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 -- cgit v1.1