Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
5681ac36
Commit
5681ac36
authored
Jan 30, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed now useless audio filter float.c
parent
97e5f060
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
97 deletions
+0
-97
modules/audio_filter/converter/Modules.am
modules/audio_filter/converter/Modules.am
+0
-2
modules/audio_filter/converter/float.c
modules/audio_filter/converter/float.c
+0
-95
No files found.
modules/audio_filter/converter/Modules.am
View file @
5681ac36
SOURCES_converter_fixed = fixed.c
SOURCES_converter_fixed = fixed.c
SOURCES_converter_float = float.c
SOURCES_a52tospdif = a52tospdif.c
SOURCES_a52tospdif = a52tospdif.c
SOURCES_a52tofloat32 = a52tofloat32.c
SOURCES_a52tofloat32 = a52tofloat32.c
SOURCES_dtstospdif = dtstospdif.c
SOURCES_dtstospdif = dtstospdif.c
...
@@ -11,6 +10,5 @@ libvlc_LTLIBRARIES += \
...
@@ -11,6 +10,5 @@ libvlc_LTLIBRARIES += \
liba52tospdif_plugin.la \
liba52tospdif_plugin.la \
libaudio_format_plugin.la \
libaudio_format_plugin.la \
libconverter_fixed_plugin.la \
libconverter_fixed_plugin.la \
libconverter_float_plugin.la \
libdtstospdif_plugin.la \
libdtstospdif_plugin.la \
$(NULL)
$(NULL)
modules/audio_filter/converter/float.c
deleted
100644 → 0
View file @
97e5f060
/*****************************************************************************
* float.c: Floating point audio format conversions
*****************************************************************************
* Copyright (C) 2002, 2006-2009 the VideoLAN team
* $Id$
*
* Authors: Jean-Paul Saman <jpsaman _at_ videolan _dot_ org>
* Christophe Massiot <massiot@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
* Xavier Maillard <zedek@fxgsproject.org>
* Henri Fallon <henri@videolan.org>
* Gildas Bazin <gbazin@netcourrier.com>
*
* 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 <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_aout.h>
#include <vlc_filter.h>
/*****************************************************************************
* 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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment