From 5681ac363661c3800c29dd95504543052346c8e7 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sat, 30 Jan 2010 13:56:41 +0100 Subject: [PATCH] Removed now useless audio filter float.c --- modules/audio_filter/converter/Modules.am | 2 - modules/audio_filter/converter/float.c | 95 ----------------------- 2 files changed, 97 deletions(-) delete mode 100644 modules/audio_filter/converter/float.c diff --git a/modules/audio_filter/converter/Modules.am b/modules/audio_filter/converter/Modules.am index 96f878af9e..6aef6a3bc8 100644 --- a/modules/audio_filter/converter/Modules.am +++ b/modules/audio_filter/converter/Modules.am @@ -1,5 +1,4 @@ SOURCES_converter_fixed = fixed.c -SOURCES_converter_float = float.c SOURCES_a52tospdif = a52tospdif.c SOURCES_a52tofloat32 = a52tofloat32.c SOURCES_dtstospdif = dtstospdif.c @@ -11,6 +10,5 @@ libvlc_LTLIBRARIES += \ liba52tospdif_plugin.la \ libaudio_format_plugin.la \ libconverter_fixed_plugin.la \ - libconverter_float_plugin.la \ libdtstospdif_plugin.la \ $(NULL) diff --git a/modules/audio_filter/converter/float.c b/modules/audio_filter/converter/float.c deleted file mode 100644 index e362cf6f7f..0000000000 --- a/modules/audio_filter/converter/float.c +++ /dev/null @@ -1,95 +0,0 @@ -/***************************************************************************** - * float.c: Floating point audio format conversions - ***************************************************************************** - * Copyright (C) 2002, 2006-2009 the VideoLAN team - * $Id$ - * - * Authors: Jean-Paul Saman - * Christophe Massiot - * Samuel Hocevar - * Xavier Maillard - * Henri Fallon - * Gildas Bazin - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. - *****************************************************************************/ - -/***************************************************************************** - * Preamble - *****************************************************************************/ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - -#include -#include -#include -#include - -/***************************************************************************** - * Local prototypes - *****************************************************************************/ -static int Create_F32ToFL32 ( vlc_object_t * ); -static block_t *Do_F32ToFL32( filter_t *, block_t * ); - -/***************************************************************************** - * Module descriptor - *****************************************************************************/ -vlc_module_begin () - set_description( N_("Floating-point audio format conversions") ) - set_capability( "audio filter", 10 ) - set_callbacks( Create_F32ToFL32, NULL ) -vlc_module_end () - -/***************************************************************************** - * Fixed 32 to Float 32 and backwards - *****************************************************************************/ -static int Create_F32ToFL32( vlc_object_t *p_this ) -{ - filter_t * p_filter = (filter_t *)p_this; - - if( p_filter->fmt_out.audio.i_format != VLC_CODEC_FL32 - || !AOUT_FMTS_SIMILAR( &p_filter->fmt_in.audio, - &p_filter->fmt_out.audio ) ) - return VLC_EGENERIC; - - switch( p_filter->fmt_in.audio.i_format ) - { - case VLC_CODEC_FI32: - p_filter->pf_audio_filter = Do_F32ToFL32; - break; - - default: - return VLC_EGENERIC; - } - - return VLC_SUCCESS; -} - -static block_t *Do_F32ToFL32( filter_t * p_filter, block_t * p_in_buf ) -{ - int i; - vlc_fixed_t * p_in = (vlc_fixed_t *)p_in_buf->p_buffer; - float * p_out = (float *)p_in_buf->p_buffer; - - for ( i = p_in_buf->i_nb_samples - * aout_FormatNbChannels( &p_filter->fmt_in.audio ) ; i-- ; ) - { - *p_out++ = (float)*p_in++ / (float)FIXED32_ONE; - } - return p_in_buf; -} - -