[vlc-commits] contribs: add libdca

Rémi Denis-Courmont git at videolan.org
Wed Jun 29 18:14:02 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jun 29 14:12:47 2011 +0300| [daaa637541a96776d475c03d38926b38df92ce7d] | committer: Rémi Denis-Courmont

contribs: add libdca

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=daaa637541a96776d475c03d38926b38df92ce7d
---

 contrib/src/dca/SHA512SUMS            |    1 +
 contrib/src/dca/libdca-llvm-gcc.patch |   22 ++++++++++++++++++++++
 contrib/src/dca/rules.mak             |   24 ++++++++++++++++++++++++
 3 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/contrib/src/dca/SHA512SUMS b/contrib/src/dca/SHA512SUMS
new file mode 100644
index 0000000..440f970
--- /dev/null
+++ b/contrib/src/dca/SHA512SUMS
@@ -0,0 +1 @@
+d9f0ed34efeb3f27af8424fcb3e6df56744c6735854a65b5709c02b42b4513b9c4618dcc19eb44293afa051bd95616651bda5fc3b49dfabe975d0babfb1bc287  libdca-0.0.5.tar.bz2
diff --git a/contrib/src/dca/libdca-llvm-gcc.patch b/contrib/src/dca/libdca-llvm-gcc.patch
new file mode 100644
index 0000000..61862d4
--- /dev/null
+++ b/contrib/src/dca/libdca-llvm-gcc.patch
@@ -0,0 +1,22 @@
+Index: libdca/parse.c
+===================================================================
+--- libdca/parse.c	(revision 90)
++++ libdca/parse.c	(working copy)
+@@ -1193,11 +1193,14 @@
+         for (k=0;k<16;k++)
+         {
+             B[k] = 0.0;
+-            for (i=0;i<16;i++)
++
++            B[k]+=(raXin[0])*state->cos_mod[j++];
++
++            for (i=1;i<16;i++)
+             {
+-                if(i>0) B[k]+=(raXin[2*i]+raXin[2*i-1])*state->cos_mod[j++];
+-                else B[k]+=(raXin[2*i])*state->cos_mod[j++];
++                B[k]+=(raXin[2*i]+raXin[2*i-1])*state->cos_mod[j++];
+             }
++
+             SUM[k]=A[k]+B[k];
+             DIFF[k]=A[k]-B[k];
+         }
diff --git a/contrib/src/dca/rules.mak b/contrib/src/dca/rules.mak
new file mode 100644
index 0000000..4210612
--- /dev/null
+++ b/contrib/src/dca/rules.mak
@@ -0,0 +1,24 @@
+# libdca
+
+DCA_VERSION := 0.0.5
+DCA_URL := $(VIDEOLAN)/libdca/$(DCA_VERSION)/libdca-$(DCA_VERSION).tar.bz2
+
+ifdef HAVE_FPU
+PKGS += dca
+endif
+
+$(TARBALLS)/libdca-$(DCA_VERSION).tar.bz2:
+	$(call download,$(DCA_URL))
+
+.sum-dca: libdca-$(DCA_VERSION).tar.bz2
+
+libdca: libdca-$(DCA_VERSION).tar.bz2 .sum-dca
+	$(UNPACK)
+	#(cd $@-$(DCA_VERSION) && patch -p1) < $(SRC)/dca/libdca-llvm-gcc.patch
+	mv $@-$(DCA_VERSION) $@
+	touch $@
+
+.dca: libdca
+	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+	cd $< && $(MAKE) install
+	touch $@



More information about the vlc-commits mailing list