libs: remove unused floatcast header-only library
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 23 Sep 2011 20:18:47 +0000 (21:18 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 23 Sep 2011 20:18:47 +0000 (21:18 +0100)
There's no code whatsoever that uses these macros. If anyone
ever feels the need to resurrect them, we should add them to
gstutils.h in core or libgstaudio or so.

14 files changed:
Android.mk
configure.ac
docs/libs/gst-plugins-base-libs-docs.sgml
docs/libs/gst-plugins-base-libs-sections.txt
gst-libs/gst/Makefile.am
gst-libs/gst/floatcast/Makefile.am [deleted file]
gst-libs/gst/floatcast/floatcast.h [deleted file]
gst-plugins-base.spec.in
gst/audioconvert/audioconvert.c
pkgconfig/Makefile.am
pkgconfig/gstreamer-floatcast-uninstalled.pc.in [deleted file]
pkgconfig/gstreamer-floatcast.pc.in [deleted file]
tests/check/elements/audioconvert.c
tests/check/libs/gstlibscpp.cc

index d6ca579a419152ee6f7e7d0bf52f8f07d1fffa46..4bfbe75a43af0ac206147978215b7707501a3e9d 100644 (file)
@@ -8,7 +8,6 @@ GST_PLUGINS_BASE_BUILT_SOURCES :=                                               \
        pkgconfig/gstreamer-audio-0.10.pc                       \
        pkgconfig/gstreamer-cdda-0.10.pc                        \
        pkgconfig/gstreamer-fft-0.10.pc                         \
-       pkgconfig/gstreamer-floatcast-0.10.pc                   \
        pkgconfig/gstreamer-interfaces-0.10.pc                  \
        pkgconfig/gstreamer-netbuffer-0.10.pc                   \
        pkgconfig/gstreamer-pbutils-0.10.pc                     \
@@ -23,7 +22,6 @@ GST_PLUGINS_BASE_BUILT_SOURCES :=                                             \
        pkgconfig/gstreamer-audio-0.10-uninstalled.pc           \
        pkgconfig/gstreamer-cdda-0.10-uninstalled.pc            \
        pkgconfig/gstreamer-fft-0.10-uninstalled.pc             \
-       pkgconfig/gstreamer-floatcast-0.10-uninstalled.pc       \
        pkgconfig/gstreamer-interfaces-0.10-uninstalled.pc      \
        pkgconfig/gstreamer-netbuffer-0.10-uninstalled.pc       \
        pkgconfig/gstreamer-pbutils-0.10-uninstalled.pc         \
index 939345307ad0400cae2b22f8d7a7dc22f691ade0..d363b6afb01635910a4a3e8f4a7ea427900ba176 100644 (file)
@@ -237,7 +237,7 @@ dnl check for fseeko()
 AC_FUNC_FSEEKO
 
 dnl Check for fast float to int casting as defined in C99
-dnl used in gst-libs/gst/floatcast/floatcast.h
+dnl used to be used in gst-libs/gst/floatcast/floatcast.h (FIXME: still needed?)
 save_libs=$LIBS
 LIBS="$LIBS $LIBM"
 AC_C99_FUNC_LRINT
@@ -901,7 +901,6 @@ gst-libs/gst/audio/Makefile
 gst-libs/gst/app/Makefile
 gst-libs/gst/cdda/Makefile
 gst-libs/gst/fft/Makefile
-gst-libs/gst/floatcast/Makefile
 gst-libs/gst/interfaces/Makefile
 gst-libs/gst/netbuffer/Makefile
 gst-libs/gst/riff/Makefile
@@ -922,8 +921,6 @@ pkgconfig/gstreamer-cdda.pc
 pkgconfig/gstreamer-cdda-uninstalled.pc
 pkgconfig/gstreamer-fft.pc
 pkgconfig/gstreamer-fft-uninstalled.pc
-pkgconfig/gstreamer-floatcast.pc
-pkgconfig/gstreamer-floatcast-uninstalled.pc
 pkgconfig/gstreamer-interfaces.pc
 pkgconfig/gstreamer-interfaces-uninstalled.pc
 pkgconfig/gstreamer-netbuffer.pc
index daa6f1e818df793ea03eeb526f3d0528ee8e430d..b4707673b504f11bbd44536988aa8f3196eee664 100644 (file)
       <xi:include href="xml/gstfftf64.xml" />
     </chapter>
 
-    <chapter id="gstreamer-floatcast">
-      <title>FloatCast Library</title>
-      <para>
-        This library should be linked to by getting cflags and libs from
-        <filename>gstreamer-plugins-base-&GST_MAJORMINOR;.pc</filename> and adding
-        <filename>-lgstfloatcase-&GST_MAJORMINOR;</filename> to the library flags.
-      </para>
-      <xi:include href="xml/gstfloatcast.xml" />
-    </chapter>
-
     <chapter id="gstreamer-interfaces">
       <title>Interfaces Library</title>
       <para>
index b3839a32f5b6e6a66a413f02f9c391052736669d..fb1a18cf7ac57dd75228ac2271822368cb0fd8e6 100644 (file)
@@ -577,18 +577,6 @@ KISS_FFT_F64_MALLOC
 KISS_FFT_F64_SIN
 </SECTION>
 
-# floatcast
-
-<SECTION>
-<FILE>gstfloatcast</FILE>
-<INCLUDE>gst/floatcast/floatcast.h</INCLUDE>
-gst_cast_double
-gst_cast_float
-<SUBSECTION Standard>
-inline
-</SECTION>
-
-
 # interfaces
 
 <SECTION>
index a762528dbd8de53544f162976c40f57f8399bb7b..a3f13f17d0e400c61a637d041ca4bc2d2b2cf11d 100644 (file)
@@ -7,7 +7,6 @@ SUBDIRS = \
        tag \
        cdda \
        fft \
-       floatcast \
        netbuffer \
        rtp \
        sdp \
@@ -32,7 +31,7 @@ rtsp: sdp
 pbutils: video audio
 
 INDEPENDENT_SUBDIRS = \
-       interfaces tag audio fft floatcast netbuffer rtp sdp video app
+       interfaces tag audio fft netbuffer rtp sdp video app
 
 .PHONY: independent-subdirs $(INDEPENDENT_SUBDIRS)
 
diff --git a/gst-libs/gst/floatcast/Makefile.am b/gst-libs/gst/floatcast/Makefile.am
deleted file mode 100644 (file)
index b18029c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-floatcastincludedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/floatcast
-floatcastinclude_HEADERS = floatcast.h
diff --git a/gst-libs/gst/floatcast/floatcast.h b/gst-libs/gst/floatcast/floatcast.h
deleted file mode 100644 (file)
index 279af28..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-/* GStreamer
- * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
- * Library       <2002> Steve Baker <stevebaker_org@yahoo.co.uk>
- *
- * 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.
- */
-
-/**
- * SECTION:gstfloatcast
- * @short_description: Floating point platform independence macros
- *
- * The floatcast.h header file contains a couple of convenience macros for
- * floating point numbers.
- *
- * If you include this header, your application or library must link against
- * libm (for maths.h support).
- *
- * For optimal results, your application&apos;s or library&apos;s build
- * system should check whether the C99 functions lrint and lrintf are supported
- * and define the preprocessor symbols HAVE_LRINT and HAVE_LRINTF if so.  If
- * you are using autoconf, you can do this by using the AC_C99_FUNC_LRINT and
- * AC_C99_FUNC_LRINTF checks in your configure.ac or configure.in file and
- * including your application's config.h header before you include floatcast.h.
- */
-
-#ifndef __FLOATCAST_H__
-#define __FLOATCAST_H__
-
-#include <string.h>
-#include <glib.h>
-
-#if defined (_MSC_VER) && !defined (inline)
-#define inline __inline
-#endif
-
-G_BEGIN_DECLS
-
-/* FIXME 0.11: these gst_cast_*() functions are not used anywhere, so we could
- * just as well get rid of them and move the float/double swap macros into
- * gstutils.h in core */
-
-/**
- * gst_cast_float:
- * @x: input value
- *
- * Casts a 32-bit floating point value (float) to an integer without bias.
- */
-/**
- * gst_cast_double:
- * @x: input value
- *
- * Casts a 64-bit floating point value (double) to an integer without bias.
- */
-
-/* FIXME: HAVE_LRINT && HAVE_LRINTF are defined by config.h - they should
- * not be used in an installed header. */
-#if defined(HAVE_LRINT) && defined(HAVE_LRINTF)
-
-        /*      These defines enable functionality introduced with the 1999 ISO C
-        **      standard. They must be defined before the inclusion of math.h to
-        **      engage them. If optimisation is enabled, these functions will be 
-        **      inlined. With optimisation switched off, you have to link in the
-        **      maths library using -lm.
-        */
-
-        #define _ISOC9X_SOURCE  1
-        #define _ISOC99_SOURCE  1
-
-        #define __USE_ISOC9X    1
-        #define __USE_ISOC99    1
-
-        #include        <math.h>
-
-        #define gst_cast_float(x)       ((gint)lrintf(x))
-        #define gst_cast_double(x)      ((gint)lrint(x))
-
-#else
-        #include <math.h>
-
-        /* use a standard c cast, but do rounding correctly */
-        #define gst_cast_float(x)       ((gint)floor((x)+0.5))
-        #define gst_cast_double(x)      ((gint)floor((x)+0.5))
-
-#endif
-
-G_END_DECLS
-
-#endif /* __FLOATCAST_H__ */
-
index 9a0f9d70f04490ef97c7621d8d0bfc1af111ee59..f815c78c75cb4ce0202af68397f2bcf636e303f5 100644 (file)
@@ -148,7 +148,6 @@ GStreamer Plugins Base library development and header files.
 %{_includedir}/gstreamer-%{majorminor}/gst/audio/audio.h
 %{_includedir}/gstreamer-%{majorminor}/gst/audio/gstaudiofilter.h
 %{_includedir}/gstreamer-%{majorminor}/gst/audio/multichannel.h
-%{_includedir}/gstreamer-%{majorminor}/gst/floatcast/floatcast.h
 %{_includedir}/gstreamer-%{majorminor}/gst/riff/riff-ids.h
 %{_includedir}/gstreamer-%{majorminor}/gst/riff/riff-media.h
 %{_includedir}/gstreamer-%{majorminor}/gst/riff/riff-read.h
@@ -243,7 +242,6 @@ GStreamer Plugins Base library development and header files.
 %{_libdir}/pkgconfig/gstreamer-audio-%{majorminor}.pc
 %{_libdir}/pkgconfig/gstreamer-cdda-%{majorminor}.pc
 %{_libdir}/pkgconfig/gstreamer-fft-%{majorminor}.pc
-%{_libdir}/pkgconfig/gstreamer-floatcast-%{majorminor}.pc
 %{_libdir}/pkgconfig/gstreamer-interfaces-%{majorminor}.pc
 %{_libdir}/pkgconfig/gstreamer-netbuffer-%{majorminor}.pc
 %{_libdir}/pkgconfig/gstreamer-pbutils-%{majorminor}.pc
index c23b35660b5d88f5ea4e7000a48b15a727362d13..97dee20ee0b7881dddd3439c9eb48852a3f0fe88 100644 (file)
@@ -29,7 +29,6 @@
 #include "gstchannelmix.h"
 #include "gstaudioquantize.h"
 #include "audioconvert.h"
-#include "gst/floatcast/floatcast.h"
 #include "gstaudioconvertorc.h"
 
 #if G_BYTE_ORDER == G_LITTLE_ENDIAN
index 8fb25292357b6db8cb7c17b1bfbc7623d74d874f..11b8f473d03ffcde467605a920bc64a6f45a4648 100644 (file)
@@ -4,7 +4,6 @@ pcverfiles =  \
        gstreamer-app-@GST_MAJORMINOR@.pc \
        gstreamer-cdda-@GST_MAJORMINOR@.pc \
        gstreamer-fft-@GST_MAJORMINOR@.pc \
-       gstreamer-floatcast-@GST_MAJORMINOR@.pc \
        gstreamer-interfaces-@GST_MAJORMINOR@.pc \
        gstreamer-netbuffer-@GST_MAJORMINOR@.pc \
        gstreamer-pbutils-@GST_MAJORMINOR@.pc \
@@ -20,7 +19,6 @@ pcverfiles_uninstalled = \
        gstreamer-app-@GST_MAJORMINOR@-uninstalled.pc \
        gstreamer-cdda-@GST_MAJORMINOR@-uninstalled.pc \
        gstreamer-fft-@GST_MAJORMINOR@-uninstalled.pc \
-       gstreamer-floatcast-@GST_MAJORMINOR@-uninstalled.pc \
        gstreamer-interfaces-@GST_MAJORMINOR@-uninstalled.pc \
        gstreamer-netbuffer-@GST_MAJORMINOR@-uninstalled.pc \
        gstreamer-pbutils-@GST_MAJORMINOR@-uninstalled.pc \
@@ -53,7 +51,6 @@ pcinfiles = \
            gstreamer-app.pc.in gstreamer-app-uninstalled.pc.in \
            gstreamer-cdda.pc.in gstreamer-cdda-uninstalled.pc.in \
            gstreamer-fft.pc.in gstreamer-fft-uninstalled.pc.in \
-           gstreamer-floatcast.pc.in gstreamer-floatcast-uninstalled.pc.in \
            gstreamer-interfaces.pc.in gstreamer-interfaces-uninstalled.pc.in \
            gstreamer-netbuffer.pc.in gstreamer-netbuffer-uninstalled.pc.in \
            gstreamer-pbutils.pc.in gstreamer-pbutils-uninstalled.pc.in \
diff --git a/pkgconfig/gstreamer-floatcast-uninstalled.pc.in b/pkgconfig/gstreamer-floatcast-uninstalled.pc.in
deleted file mode 100644 (file)
index a8eacf7..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-# the standard variables don't make sense for an uninstalled copy
-prefix=
-exec_prefix=
-libdir=
-# includedir is builddir because it is used to find gstconfig.h in places
-includedir=@abs_top_builddir@/gst-libs
-
-Name: GStreamer Floatcast Library, Uninstalled
-Description: Platform independent floating point macros, uninstalled
-Version: @VERSION@
-Requires: glib-2.0
-Libs: @LIBM@
-Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs
-
diff --git a/pkgconfig/gstreamer-floatcast.pc.in b/pkgconfig/gstreamer-floatcast.pc.in
deleted file mode 100644 (file)
index c54b098..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@/gstreamer-@GST_MAJORMINOR@
-datarootdir=${prefix}/share
-datadir=${datarootdir}
-girdir=${datadir}/gir-1.0
-typelibdir=${libdir}/girepository-1.0
-
-Name: GStreamer Floatcast Library
-Description: Platform independent floating point macros
-Requires: glib-2.0
-Version: @VERSION@
-Libs: @LIBM@
-Cflags: -I${includedir}
-
index 9911301ed7f50994ae4984f27c7735fb27483dd9..5b7ab9d3e9c8f85568c4da2c7b8ee7ddff508bad 100644 (file)
@@ -23,7 +23,6 @@
 
 #include <unistd.h>
 
-#include <gst/floatcast/floatcast.h>
 #include <gst/check/gstcheck.h>
 #include <gst/audio/multichannel.h>
 
index fdcd482c06d34cdb657199c8169cd5094e203b1e..f95cd784a4c73827df5b21cf4cf088cb12135a47 100644 (file)
@@ -48,8 +48,6 @@
 #include <gst/fft/gstffts16.h>
 #include <gst/fft/gstffts32.h>
 
-#include <gst/floatcast/floatcast.h>
-
 #include <gst/interfaces/colorbalancechannel.h>
 #include <gst/interfaces/colorbalance.h>
 #include <gst/interfaces/interfaces-enumtypes.h>