From: <sl...@ke...> - 2008-03-07 13:08:55
|
CVS Root: /cvs/gstreamer Module: gst-plugins-good Changes by: slomo Date: Fri Mar 07 2008 13:08:58 UTC Log message: * configure.ac: * gst/audiofx/Makefile.am: * gst/audiofx/audiochebband.c: * gst/audiofx/audiocheblimit.c: * gst/audiofx/math_compat.h: Check for sinh(), cosh() and asinh() and define our own implementations if they're not available. Fixes bug #520880. Modified files: . : ChangeLog configure.ac gst/audiofx : Makefile.am audiochebband.c audiocheblimit.c Added files: gst/audiofx : math_compat.h Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/ChangeLog.diff?r1=1.3345&r2=1.3346 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/configure.ac.diff?r1=1.734&r2=1.735 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/gst/audiofx/Makefile.am.diff?r1=1.11&r2=1.12 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/gst/audiofx/audiochebband.c.diff?r1=1.7&r2=1.8 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/gst/audiofx/audiocheblimit.c.diff?r1=1.7&r2=1.8 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/gst/audiofx/math_compat.h?rev=1.1&content-type=text/vnd.viewcvs-markup ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-good/ChangeLog,v retrieving revision 1.3345 retrieving revision 1.3346 diff -u -d -r1.3345 -r1.3346 --- ChangeLog 7 Mar 2008 12:40:16 -0000 1.3345 +++ ChangeLog 7 Mar 2008 13:08:32 -0000 1.3346 @@ -1,5 +1,15 @@ 2008-03-07 Sebastian Dröge <sl...@ci...> + * configure.ac: + * gst/audiofx/Makefile.am: + * gst/audiofx/audiochebband.c: + * gst/audiofx/audiocheblimit.c: + * gst/audiofx/math_compat.h: + Check for sinh(), cosh() and asinh() and define our own + implementations if they're not available. Fixes bug #520880. + +2008-03-07 Sebastian Dröge <sl...@ci...> Patch by: Olivier Crete <tester at tester dot ca> * ext/speex/gstspeexenc.c: (gst_speex_enc_chain): Index: configure.ac RCS file: /cvs/gstreamer/gst-plugins-good/configure.ac,v retrieving revision 1.734 retrieving revision 1.735 diff -u -d -r1.734 -r1.735 --- configure.ac 3 Mar 2008 13:03:43 -0000 1.734 +++ configure.ac 7 Mar 2008 13:08:36 -0000 1.735 @@ -180,7 +180,7 @@ LIBS_SAVE=$LIBS LIBS="$LIBS $LIBM" -AC_CHECK_FUNCS(rint) +AC_CHECK_FUNCS(rint sinh cosh asinh) LIBS=$LIBS_SAVE dnl Check for mmap (needed by electricfence plugin) Index: Makefile.am RCS file: /cvs/gstreamer/gst-plugins-good/gst/audiofx/Makefile.am,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- Makefile.am 8 Feb 2008 15:27:51 -0000 1.11 +++ Makefile.am 7 Mar 2008 13:08:39 -0000 1.12 @@ -34,5 +34,6 @@ audiocheblimit.h \ audiochebband.h \ audiowsincband.h \ - audiowsinclimit.h + audiowsinclimit.h \ + math_compat.h Index: audiochebband.c RCS file: /cvs/gstreamer/gst-plugins-good/gst/audiofx/audiochebband.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- audiochebband.c 10 Feb 2008 10:46:12 -0000 1.7 +++ audiochebband.c 7 Mar 2008 13:08:40 -0000 1.8 @@ -85,6 +85,8 @@ #include <math.h> +#include "math_compat.h" #include "audiochebband.h" #define GST_CAT_DEFAULT gst_audio_cheb_band_debug Index: audiocheblimit.c RCS file: /cvs/gstreamer/gst-plugins-good/gst/audiofx/audiocheblimit.c,v --- audiocheblimit.c 10 Feb 2008 10:46:12 -0000 1.7 +++ audiocheblimit.c 7 Mar 2008 13:08:41 -0000 1.8 @@ -81,6 +81,8 @@ #include "audiocheblimit.h" #define GST_CAT_DEFAULT gst_audio_cheb_limit_debug --- NEW FILE: math_compat.h --- /* * GStreamer * Copyright (C) 2008 Sebastian Dröge <sl...@ci...> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. */ #ifndef __MATH_COMPAT_H__ #define __MATH_COMPAT_H__ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <glib.h> #include <math.h> #ifndef HAVE_ASINH static inline gdouble asinh (gdouble x) { return log(x + sqrt (x * x + 1)); } #ifndef HAVE_SINH sinh (gdouble x) return 0.5 * (exp (x) - exp (-x)); #ifndef HAVE_COSH cosh (gdouble x) return 0.5 * (exp (x) + exp (-x)); #endif /* __MATH_COMPAT_H__ */ |