changeset 20281:812f9cd94b28

Add configure switch to enable fixed-pointed mode of internal libfaad2.
author diego
date Tue, 17 Oct 2006 16:01:25 +0000
parents 5c8f177a0478
children e39dcb20ed23
files configure libfaad2/Makefile
diffstat 2 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Oct 17 13:47:45 2006 +0000
+++ b/configure	Tue Oct 17 16:01:25 2006 +0000
@@ -292,6 +292,7 @@
   --enable-theora        build with OggTheora support [autodetect]
   --enable-faad-external build with external FAAD2 (AAC) support [autodetect]
   --disable-faad-internal disable internal FAAD2 (AAC) support [autodetect]
+  --enable-faad-fixed    enable fixed-point mode in internal FAAD2 [disabled]
   --disable-faac         disable support for FAAC (AAC encoder) [autodetect]
   --disable-ladspa       disable LADSPA plugin support [autodetect]
   --disable-libdv        disable libdv 0.9.5 en/decoding support [autodetect]
@@ -1625,6 +1626,7 @@
 _libmpeg2=yes
 _faad_internal=auto
 _faad_external=auto
+_faad_fixed=no
 _faac=auto
 _ladspa=auto
 _xmms=no
@@ -1854,6 +1856,8 @@
   --disable-faad-internal)	_faad_internal=no	;;
   --enable-faad-external)	_faad_external=yes	;;
   --disable-faad-external)	_faad_external=no	;;
+  --enable-faad-fixed)	_faad_fixed=yes	;;
+  --disable-faad-fixed)	_faad_fixed=no	;;
   --enable-faac)	_faac=yes	;;
   --disable-faac)	_faac=no	;;
   --enable-ladspa)	_ladspa=yes	;;
@@ -5886,6 +5890,8 @@
 if test "$_faad_internal" = yes ; then
   _def_faad_internal="#define USE_FAAD_INTERNAL 1"
   _faad=yes
+  _res_comment="internal floating-point"
+  test "$_faad_fixed" = yes && _res_comment="internal fixed-point"
 elif test "$_faad_external" = yes ; then
   _faad=yes
 else
@@ -7597,6 +7603,7 @@
 THEORA_LIB = $_ld_theora
 FAAD_LIB = $_ld_faad
 FAAD_INTERNAL = $_faad_internal
+FAAD_FIXED = $_faad_fixed
 LIBSMBCLIENT = $_smbsupport
 SMBSUPPORT_LIB = $_ld_smb
 XMMS_PLUGINS = $_xmms
--- a/libfaad2/Makefile	Tue Oct 17 13:47:45 2006 +0000
+++ b/libfaad2/Makefile	Tue Oct 17 16:01:25 2006 +0000
@@ -46,9 +46,11 @@
 
 CFLAGS  = -I. $(OPTFLAGS) -D_GNU_SOURCE
 
-# Uncomment this to use the FIXED_POINT implementation of FAAD2.
-# This should improve performance, especially for SBR files.
-#CFLAGS  = -I. $(OPTFLAGS) -DFIXED_POINT
+# The FIXED_POINT implementation of FAAD2 improves performance
+# on some platforms, especially for SBR files.
+ifeq ($(FAAD_FIXED),yes)
+CFLAGS  += -DFIXED_POINT
+endif
 
 .SUFFIXES: .c .o