Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
551ac56a
Commit
551ac56a
authored
Jan 01, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filter/Internal: split header
parent
5227582e
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
74 additions
and
42 deletions
+74
-42
Makefile.am
Makefile.am
+2
-1
Filter.hxx
src/filter/Filter.hxx
+2
-26
FilterConfig.cxx
src/filter/FilterConfig.cxx
+1
-1
FilterPlugin.cxx
src/filter/FilterPlugin.cxx
+1
-1
Observer.cxx
src/filter/Observer.cxx
+2
-1
Prepared.hxx
src/filter/Prepared.hxx
+44
-0
AutoConvertFilterPlugin.cxx
src/filter/plugins/AutoConvertFilterPlugin.cxx
+2
-1
ChainFilterPlugin.cxx
src/filter/plugins/ChainFilterPlugin.cxx
+2
-1
ConvertFilterPlugin.cxx
src/filter/plugins/ConvertFilterPlugin.cxx
+2
-1
NormalizeFilterPlugin.cxx
src/filter/plugins/NormalizeFilterPlugin.cxx
+2
-1
NullFilterPlugin.cxx
src/filter/plugins/NullFilterPlugin.cxx
+2
-1
ReplayGainFilterPlugin.cxx
src/filter/plugins/ReplayGainFilterPlugin.cxx
+2
-1
RouteFilterPlugin.cxx
src/filter/plugins/RouteFilterPlugin.cxx
+2
-1
VolumeFilterPlugin.cxx
src/filter/plugins/VolumeFilterPlugin.cxx
+2
-1
Finish.cxx
src/output/Finish.cxx
+1
-1
Init.cxx
src/output/Init.cxx
+1
-1
Source.cxx
src/output/Source.cxx
+2
-1
run_filter.cxx
test/run_filter.cxx
+2
-1
No files found.
Makefile.am
View file @
551ac56a
...
@@ -105,7 +105,8 @@ libmpd_a_SOURCES = \
...
@@ -105,7 +105,8 @@ libmpd_a_SOURCES = \
src/decoder/DecoderPrint.cxx src/decoder/DecoderPrint.hxx
\
src/decoder/DecoderPrint.cxx src/decoder/DecoderPrint.hxx
\
src/filter/FilterConfig.cxx src/filter/FilterConfig.hxx
\
src/filter/FilterConfig.cxx src/filter/FilterConfig.hxx
\
src/filter/FilterPlugin.cxx src/filter/FilterPlugin.hxx
\
src/filter/FilterPlugin.cxx src/filter/FilterPlugin.hxx
\
src/filter/FilterInternal.hxx
\
src/filter/Filter.hxx
\
src/filter/Prepared.hxx
\
src/filter/FilterRegistry.cxx src/filter/FilterRegistry.hxx
\
src/filter/FilterRegistry.cxx src/filter/FilterRegistry.hxx
\
src/filter/Observer.cxx src/filter/Observer.hxx
\
src/filter/Observer.cxx src/filter/Observer.hxx
\
src/client/Client.cxx src/client/Client.hxx
\
src/client/Client.cxx src/client/Client.hxx
\
...
...
src/filter/Filter
Internal
.hxx
→
src/filter/Filter.hxx
View file @
551ac56a
...
@@ -17,21 +17,13 @@
...
@@ -17,21 +17,13 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
*/
/** \file
#ifndef MPD_FILTER_HXX
*
#define MPD_FILTER_HXX
* Internal stuff for the filter core and filter plugins.
*/
#ifndef MPD_FILTER_INTERNAL_HXX
#define MPD_FILTER_INTERNAL_HXX
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include <memory>
#include <assert.h>
#include <assert.h>
struct
AudioFormat
;
template
<
typename
T
>
struct
ConstBuffer
;
template
<
typename
T
>
struct
ConstBuffer
;
class
Filter
{
class
Filter
{
...
@@ -72,20 +64,4 @@ public:
...
@@ -72,20 +64,4 @@ public:
virtual
ConstBuffer
<
void
>
FilterPCM
(
ConstBuffer
<
void
>
src
)
=
0
;
virtual
ConstBuffer
<
void
>
FilterPCM
(
ConstBuffer
<
void
>
src
)
=
0
;
};
};
class
PreparedFilter
{
public
:
virtual
~
PreparedFilter
()
{}
/**
* Opens the filter, preparing it for FilterPCM().
*
* Throws std::runtime_error on error.
*
* @param af the audio format of incoming data; the
* plugin may modify the object to enforce another input
* format
*/
virtual
std
::
unique_ptr
<
Filter
>
Open
(
AudioFormat
&
af
)
=
0
;
};
#endif
#endif
src/filter/FilterConfig.cxx
View file @
551ac56a
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "config.h"
#include "FilterConfig.hxx"
#include "FilterConfig.hxx"
#include "FilterPlugin.hxx"
#include "FilterPlugin.hxx"
#include "
FilterInternal
.hxx"
#include "
Prepared
.hxx"
#include "plugins/ChainFilterPlugin.hxx"
#include "plugins/ChainFilterPlugin.hxx"
#include "config/Param.hxx"
#include "config/Param.hxx"
#include "config/ConfigOption.hxx"
#include "config/ConfigOption.hxx"
...
...
src/filter/FilterPlugin.cxx
View file @
551ac56a
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include "config.h"
#include "config.h"
#include "FilterPlugin.hxx"
#include "FilterPlugin.hxx"
#include "FilterRegistry.hxx"
#include "FilterRegistry.hxx"
#include "
FilterInternal
.hxx"
#include "
Prepared
.hxx"
#include "config/Block.hxx"
#include "config/Block.hxx"
#include "config/ConfigError.hxx"
#include "config/ConfigError.hxx"
#include "util/RuntimeError.hxx"
#include "util/RuntimeError.hxx"
...
...
src/filter/Observer.cxx
View file @
551ac56a
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
#include "config.h"
#include "config.h"
#include "Observer.hxx"
#include "Observer.hxx"
#include "FilterInternal.hxx"
#include "Filter.hxx"
#include "Prepared.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include <assert.h>
#include <assert.h>
...
...
src/filter/Prepared.hxx
0 → 100644
View file @
551ac56a
/*
* Copyright 2003-2017 The Music Player Daemon Project
* http://www.musicpd.org
*
* 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.
*/
#ifndef MPD_PREPARED_FILTER_HXX
#define MPD_PREPARED_FILTER_HXX
#include <memory>
struct
AudioFormat
;
class
Filter
;
class
PreparedFilter
{
public
:
virtual
~
PreparedFilter
()
{}
/**
* Opens the filter, preparing it for FilterPCM().
*
* Throws std::runtime_error on error.
*
* @param af the audio format of incoming data; the
* plugin may modify the object to enforce another input
* format
*/
virtual
std
::
unique_ptr
<
Filter
>
Open
(
AudioFormat
&
af
)
=
0
;
};
#endif
src/filter/plugins/AutoConvertFilterPlugin.cxx
View file @
551ac56a
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
#include "AutoConvertFilterPlugin.hxx"
#include "AutoConvertFilterPlugin.hxx"
#include "ConvertFilterPlugin.hxx"
#include "ConvertFilterPlugin.hxx"
#include "filter/FilterPlugin.hxx"
#include "filter/FilterPlugin.hxx"
#include "filter/FilterInternal.hxx"
#include "filter/Filter.hxx"
#include "filter/Prepared.hxx"
#include "filter/FilterRegistry.hxx"
#include "filter/FilterRegistry.hxx"
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
...
...
src/filter/plugins/ChainFilterPlugin.cxx
View file @
551ac56a
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
#include "config.h"
#include "config.h"
#include "ChainFilterPlugin.hxx"
#include "ChainFilterPlugin.hxx"
#include "filter/FilterInternal.hxx"
#include "filter/Filter.hxx"
#include "filter/Prepared.hxx"
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
#include "util/StringBuffer.hxx"
#include "util/StringBuffer.hxx"
...
...
src/filter/plugins/ConvertFilterPlugin.cxx
View file @
551ac56a
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
#include "config.h"
#include "config.h"
#include "ConvertFilterPlugin.hxx"
#include "ConvertFilterPlugin.hxx"
#include "filter/FilterInternal.hxx"
#include "filter/Filter.hxx"
#include "filter/Prepared.hxx"
#include "pcm/PcmConvert.hxx"
#include "pcm/PcmConvert.hxx"
#include "util/Manual.hxx"
#include "util/Manual.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
...
...
src/filter/plugins/NormalizeFilterPlugin.cxx
View file @
551ac56a
...
@@ -20,7 +20,8 @@
...
@@ -20,7 +20,8 @@
#include "config.h"
#include "config.h"
#include "NormalizeFilterPlugin.hxx"
#include "NormalizeFilterPlugin.hxx"
#include "filter/FilterPlugin.hxx"
#include "filter/FilterPlugin.hxx"
#include "filter/FilterInternal.hxx"
#include "filter/Filter.hxx"
#include "filter/Prepared.hxx"
#include "filter/FilterRegistry.hxx"
#include "filter/FilterRegistry.hxx"
#include "pcm/PcmBuffer.hxx"
#include "pcm/PcmBuffer.hxx"
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
...
...
src/filter/plugins/NullFilterPlugin.cxx
View file @
551ac56a
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
#include "config.h"
#include "config.h"
#include "filter/FilterPlugin.hxx"
#include "filter/FilterPlugin.hxx"
#include "filter/FilterInternal.hxx"
#include "filter/Filter.hxx"
#include "filter/Prepared.hxx"
#include "filter/FilterRegistry.hxx"
#include "filter/FilterRegistry.hxx"
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include "Compiler.h"
#include "Compiler.h"
...
...
src/filter/plugins/ReplayGainFilterPlugin.cxx
View file @
551ac56a
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
#include "config.h"
#include "config.h"
#include "ReplayGainFilterPlugin.hxx"
#include "ReplayGainFilterPlugin.hxx"
#include "filter/FilterInternal.hxx"
#include "filter/Filter.hxx"
#include "filter/Prepared.hxx"
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include "ReplayGainInfo.hxx"
#include "ReplayGainInfo.hxx"
#include "ReplayGainConfig.hxx"
#include "ReplayGainConfig.hxx"
...
...
src/filter/plugins/RouteFilterPlugin.cxx
View file @
551ac56a
...
@@ -44,7 +44,8 @@
...
@@ -44,7 +44,8 @@
#include "config/Block.hxx"
#include "config/Block.hxx"
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include "filter/FilterPlugin.hxx"
#include "filter/FilterPlugin.hxx"
#include "filter/FilterInternal.hxx"
#include "filter/Filter.hxx"
#include "filter/Prepared.hxx"
#include "filter/FilterRegistry.hxx"
#include "filter/FilterRegistry.hxx"
#include "pcm/PcmBuffer.hxx"
#include "pcm/PcmBuffer.hxx"
#include "pcm/Silence.hxx"
#include "pcm/Silence.hxx"
...
...
src/filter/plugins/VolumeFilterPlugin.cxx
View file @
551ac56a
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
#include "config.h"
#include "config.h"
#include "VolumeFilterPlugin.hxx"
#include "VolumeFilterPlugin.hxx"
#include "filter/FilterInternal.hxx"
#include "filter/Filter.hxx"
#include "filter/Prepared.hxx"
#include "pcm/Volume.hxx"
#include "pcm/Volume.hxx"
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
...
...
src/output/Finish.cxx
View file @
551ac56a
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include "Filtered.hxx"
#include "Filtered.hxx"
#include "Interface.hxx"
#include "Interface.hxx"
#include "mixer/MixerControl.hxx"
#include "mixer/MixerControl.hxx"
#include "filter/
FilterInternal
.hxx"
#include "filter/
Prepared
.hxx"
FilteredAudioOutput
::~
FilteredAudioOutput
()
FilteredAudioOutput
::~
FilteredAudioOutput
()
{
{
...
...
src/output/Init.cxx
View file @
551ac56a
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#include "mixer/MixerControl.hxx"
#include "mixer/MixerControl.hxx"
#include "mixer/plugins/SoftwareMixerPlugin.hxx"
#include "mixer/plugins/SoftwareMixerPlugin.hxx"
#include "filter/FilterConfig.hxx"
#include "filter/FilterConfig.hxx"
#include "filter/
FilterInternal
.hxx"
#include "filter/
Prepared
.hxx"
#include "filter/plugins/AutoConvertFilterPlugin.hxx"
#include "filter/plugins/AutoConvertFilterPlugin.hxx"
#include "filter/plugins/ConvertFilterPlugin.hxx"
#include "filter/plugins/ConvertFilterPlugin.hxx"
#include "filter/plugins/ReplayGainFilterPlugin.hxx"
#include "filter/plugins/ReplayGainFilterPlugin.hxx"
...
...
src/output/Source.cxx
View file @
551ac56a
...
@@ -20,7 +20,8 @@
...
@@ -20,7 +20,8 @@
#include "config.h"
#include "config.h"
#include "Source.hxx"
#include "Source.hxx"
#include "MusicChunk.hxx"
#include "MusicChunk.hxx"
#include "filter/FilterInternal.hxx"
#include "filter/Filter.hxx"
#include "filter/Prepared.hxx"
#include "filter/plugins/ReplayGainFilterPlugin.hxx"
#include "filter/plugins/ReplayGainFilterPlugin.hxx"
#include "pcm/PcmMix.hxx"
#include "pcm/PcmMix.hxx"
#include "thread/Mutex.hxx"
#include "thread/Mutex.hxx"
...
...
test/run_filter.cxx
View file @
551ac56a
...
@@ -24,7 +24,8 @@
...
@@ -24,7 +24,8 @@
#include "AudioParser.hxx"
#include "AudioParser.hxx"
#include "AudioFormat.hxx"
#include "AudioFormat.hxx"
#include "filter/FilterPlugin.hxx"
#include "filter/FilterPlugin.hxx"
#include "filter/FilterInternal.hxx"
#include "filter/Filter.hxx"
#include "filter/Prepared.hxx"
#include "pcm/Volume.hxx"
#include "pcm/Volume.hxx"
#include "mixer/MixerControl.hxx"
#include "mixer/MixerControl.hxx"
#include "util/ConstBuffer.hxx"
#include "util/ConstBuffer.hxx"
...
...
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