[vlc-devel] commit: contrib: build faad with fixed point on ARM ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Sep 3 21:22:14 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Sep  1 23:06:38 2009 +0300| [27a7fa8b86d37ea19a14ba5d86fb5d96aa107184] | committer: Rémi Denis-Courmont 

contrib: build faad with fixed point on ARM

It would seem to be significantly faster that way.

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

 extras/contrib/src/Makefile                     |    1 +
 extras/contrib/src/Patches/faad-arm-fixed.patch |   15 +++++++++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile
index 59cce80..c52fa0f 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -875,6 +875,7 @@ faad2-$(FAAD2_VERSION).tar.gz:
 faad2: faad2-$(FAAD2_VERSION).tar.gz
 	$(EXTRACT_GZ)
 	(cd $@; echo|$(HOSTCC) -iquote . -E - || sed -i 's/-iquote /-I/' libfaad/Makefile.am; sh ./bootstrap)
+	patch -p0 < Patches/faad-arm-fixed.patch
 
 .faad: faad2
 	(cd $< && $(HOSTCC) ./configure $(HOSTCONF) --disable-shared --prefix=$(PREFIX) CFLAGS="-O3" && sed -i.orig "s/shrext_cmds/shrext/g" libtool && make -C libfaad && make -C libfaad install)
diff --git a/extras/contrib/src/Patches/faad-arm-fixed.patch b/extras/contrib/src/Patches/faad-arm-fixed.patch
new file mode 100644
index 0000000..966d97d
--- /dev/null
+++ b/extras/contrib/src/Patches/faad-arm-fixed.patch
@@ -0,0 +1,15 @@
+diff -ru faad2-2.7/libfaad/common.h faad2/libfaad/common.h
+--- faad2-2.7/libfaad/common.h  2009-02-05 02:51:03.000000000 +0200
++++ faad2/libfaad/common.h      2009-09-01 20:41:20.000000000 +0300
+@@ -79,6 +79,10 @@
+ #define FIXED_POINT
+ #endif
+ 
++#ifdef __arm__
++#define FIXED_POINT
++#endif
++
+ #define ERROR_RESILIENCE
+ 
+ 
+ 




More information about the vlc-devel mailing list