summaryrefslogtreecommitdiffstats
path: root/thirdparties/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparties/scripts')
-rw-r--r--thirdparties/scripts/ilbc/Makefile.am31
-rw-r--r--thirdparties/scripts/ilbc/autogen.sh22
-rw-r--r--thirdparties/scripts/ilbc/configure.ac22
-rw-r--r--thirdparties/scripts/ilbc/extract.awk26
4 files changed, 101 insertions, 0 deletions
diff --git a/thirdparties/scripts/ilbc/Makefile.am b/thirdparties/scripts/ilbc/Makefile.am
new file mode 100644
index 0000000..da09713
--- /dev/null
+++ b/thirdparties/scripts/ilbc/Makefile.am
@@ -0,0 +1,31 @@
+lib_LTLIBRARIES = libiLBC.la
+libiLBC_la_CPPFLAGS = -fPIC
+
+libiLBC_la_SOURCES = \
+ anaFilter.c\
+ constants.c\
+ createCB.c\
+ doCPLC.c\
+ enhancer.c\
+ filter.c\
+ FrameClassify.c\
+ gainquant.c\
+ getCBvec.c\
+ helpfun.c\
+ hpInput.c\
+ hpOutput.c\
+ iCBConstruct.c\
+ iCBSearch.c\
+ iLBC_decode.c\
+ iLBC_encode.c\
+ LPCdecode.c\
+ LPCencode.c\
+ lsf.c\
+ packing.c\
+ StateConstructW.c\
+ StateSearchW.c\
+ syntFilter.c
+
+libiLBC_la_LDFLAGS = $LDFLAGS -no-undefined
+libiLBC_la_HEADERS = *.h
+libiLBC_ladir = $(includedir)/ilbc \ No newline at end of file
diff --git a/thirdparties/scripts/ilbc/autogen.sh b/thirdparties/scripts/ilbc/autogen.sh
new file mode 100644
index 0000000..3587aee
--- /dev/null
+++ b/thirdparties/scripts/ilbc/autogen.sh
@@ -0,0 +1,22 @@
+echo libtoolize
+if [ `(uname -s) 2>/dev/null` == 'Darwin' ]
+then
+ glibtoolize --copy --force
+else
+ libtoolize --copy --force
+fi
+
+echo "aclocal"
+aclocal
+
+echo "autoheader"
+autoheader
+
+echo "create NEWS, README, AUTHORS and ChangeLog"
+touch NEWS README AUTHORS ChangeLog
+
+echo "autoreconf"
+autoreconf -i
+
+echo "automake"
+automake -a \ No newline at end of file
diff --git a/thirdparties/scripts/ilbc/configure.ac b/thirdparties/scripts/ilbc/configure.ac
new file mode 100644
index 0000000..1618372
--- /dev/null
+++ b/thirdparties/scripts/ilbc/configure.ac
@@ -0,0 +1,22 @@
+AC_PREREQ([2.0])
+AC_INIT(libiLBC, 0.1, diopmamadou(at)doubango(DOT)org)
+AM_INIT_AUTOMAKE
+AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_SRCDIR([anaFilter.c])
+
+dnl find suitable C compiler
+AC_PROG_CC
+
+AC_PROG_INSTALL
+
+AC_PROG_LIBTOOL
+AC_LIBTOOL_WIN32_DLL
+
+AC_PROG_SED
+
+AC_PROG_MAKE_SET
+
+AC_OUTPUT(
+Makefile
+) \ No newline at end of file
diff --git a/thirdparties/scripts/ilbc/extract.awk b/thirdparties/scripts/ilbc/extract.awk
new file mode 100644
index 0000000..4bd7a60
--- /dev/null
+++ b/thirdparties/scripts/ilbc/extract.awk
@@ -0,0 +1,26 @@
+# Code from http://www.loudhush.ro/Loudhush_iaxclient_iLBC.html
+
+BEGIN { srcname = "nothing"; }
+{ if (/^A\.[0-9][0-9]*\.* *[a-zA-Z][a-zA-Z_0-9]*\.[ch]/) {
+ if (srcname != "nothing")
+ close(srcname);
+ srcname = $2;
+ printf("creating source file %s\n", srcname);
+ }else if (srcname != "nothing") {
+ if (/Andersen,* *et* *al\./)
+ printf("skipping %s\n", $0);
+ else if (/^L/)
+ printf("skipping2 %s\n", $0);
+ else if (/Internet Low Bit Rate Codec *December 2004/)
+ printf("skipping3 %s\n", $0);
+ else if (/Authors' *Addresses/){
+ close(srcname);
+ exit;}
+ else
+ print $0 >> srcname;
+ }
+}
+END {
+ printf("ending file %s\n", srcname);
+ close(srcname);
+} \ No newline at end of file
OpenPOWER on IntegriCloud