summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2007-01-04 16:32:43 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2007-01-04 16:32:43 +0000
commit4d3eb2d7f042bbcfad85cc44e254a0688694caea (patch)
tree273894a792cb0f1d58346180720a8cdce886b171 /ext
parentabd2290ed141b010fc7e352e0114abb1c1d3e725 (diff)
downloadgst-plugins-bad-4d3eb2d7f042bbcfad85cc44e254a0688694caea.tar.gz
gst-plugins-bad-4d3eb2d7f042bbcfad85cc44e254a0688694caea.tar.bz2
gst-plugins-bad-4d3eb2d7f042bbcfad85cc44e254a0688694caea.zip
move amrwb code
Original commit message from CVS: move amrwb code
Diffstat (limited to 'ext')
-rw-r--r--ext/amrwb/Makefile.am5
-rw-r--r--ext/amrwb/amrwb-code/Makefile.am9
-rw-r--r--ext/amrwb/amrwb-code/amrwb/Makefile.am63
-rw-r--r--ext/amrwb/amrwb-code/amrwb/README7
-rw-r--r--ext/amrwb/amrwb-code/run.sh6
5 files changed, 81 insertions, 9 deletions
diff --git a/ext/amrwb/Makefile.am b/ext/amrwb/Makefile.am
index 3efa09d8..9dd83963 100644
--- a/ext/amrwb/Makefile.am
+++ b/ext/amrwb/Makefile.am
@@ -1,4 +1,3 @@
-SUBDIRS = amrwb-code
plugin_LTLIBRARIES = libgstamrwb.la
libgstamrwb_la_SOURCES = \
@@ -7,8 +6,8 @@ libgstamrwb_la_SOURCES = \
gstamrwbenc.c \
gstamrwbparse.c
-libgstamrwb_la_CFLAGS = $(GST_CFLAGS) $(AMRWB_CFLAGS) -Iamrwb-code/
-libgstamrwb_la_LIBADD = $(GST_BASE_LIBS) $(AMRWB_LIBS) amrwb-code/libamrwb.la
+libgstamrwb_la_CFLAGS = $(GST_CFLAGS) -I$(top_builddir)/gst-libs/ext/amrwb
+libgstamrwb_la_LIBADD = $(GST_BASE_LIBS) $(AMRWB_LIBS) $(top_builddir)/gst-libs/ext/amrwb/libamrwb.la
libgstamrwb_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
noinst_HEADERS = \
diff --git a/ext/amrwb/amrwb-code/Makefile.am b/ext/amrwb/amrwb-code/Makefile.am
new file mode 100644
index 00000000..74f0f665
--- /dev/null
+++ b/ext/amrwb/amrwb-code/Makefile.am
@@ -0,0 +1,9 @@
+if USE_AMRWB
+AMRWB_DIR = amrwb
+else
+AMRWB_DIR =
+endif
+
+SUBDIRS = $(AMRWB_DIR)
+
+DIST_SUBDIRS = amrwb
diff --git a/ext/amrwb/amrwb-code/amrwb/Makefile.am b/ext/amrwb/amrwb-code/amrwb/Makefile.am
new file mode 100644
index 00000000..71a24682
--- /dev/null
+++ b/ext/amrwb/amrwb-code/amrwb/Makefile.am
@@ -0,0 +1,63 @@
+noinst_LTLIBRARIES = libamrwb.la
+
+nodist_libamrwb_la_SOURCES = \
+ enc_acelp.c \
+ enc_dtx.c \
+ enc_gain.c \
+ enc_if.c \
+ enc_lpc.c \
+ enc_main.c \
+ enc_rom.c \
+ enc_util.c \
+ if_rom.c \
+ dec_acelp.c \
+ dec_dtx.c \
+ dec_gain.c \
+ dec_if.c \
+ dec_lpc.c \
+ dec_main.c \
+ dec_rom.c \
+ dec_util.c
+
+libamrwb_la_CFLAGS = -I./amrwb-code/c-code
+libamrwb_la_LIBADD = $(GST_BASE_LIBS) $(AMRWB_LIBS)
+libamrwb_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
+
+nodist_noinst_HEADERS = \
+ dec_acelp.h \
+ dec_dtx.h \
+ dec_gain.h \
+ dec.h \
+ dec_if.h \
+ dec_lpc.h \
+ dec_main.h \
+ dec_util.h \
+ enc_acelp.h \
+ enc_dtx.h \
+ enc_gain.h \
+ enc.h \
+ enc_if.h \
+ enc_lpc.h \
+ enc_main.h \
+ enc_util.h \
+ if_rom.h \
+ typedef.h
+
+download:
+ wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-600.zip
+
+26204-600.zip:
+ echo "Please download the 26204-600.zip file"
+ echo "You can run make download to download it"
+ exit 1
+
+enc_acelp.c: 26204-600.zip
+ unzip $^
+ unzip 26204-600_ANSI-C_source_code.zip
+ mv c-code/* .
+ rm -rf c-code/ 26204-600_ANSI-C_source_code.zip makefile.gcc
+ echo "" >> typedef.h # to remove compilation warning (no newline at end of file)
+
+CLEANFILES = *.c *.h 26204-600.doc readme.txt
+
+EXTRA_DIST = README
diff --git a/ext/amrwb/amrwb-code/amrwb/README b/ext/amrwb/amrwb-code/amrwb/README
new file mode 100644
index 00000000..dcbf95e3
--- /dev/null
+++ b/ext/amrwb/amrwb-code/amrwb/README
@@ -0,0 +1,7 @@
+Compiling AMRWB codec:
+======================
+
+To compile the amrwb codec, you need to download the source code from
+"http://www.3gpp.org/ftp/Specs/html-info/26204.htm" and drop it
+in this directory, or run "make download".
+Then you can run the "autogen" script again.
diff --git a/ext/amrwb/amrwb-code/run.sh b/ext/amrwb/amrwb-code/run.sh
deleted file mode 100644
index 323f451a..00000000
--- a/ext/amrwb/amrwb-code/run.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-600.zip
-unzip 26204-600.zip
-unzip 26204-600_ANSI-C_source_code.zip
-mv c-code/* .
-rm -rf c-code/ 26204-600.zip 26204-600_ANSI-C_source_code.zip
-echo "" >> typedef.h # to remove compilation warning (no newline at end of file)