Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f72132f1
Commit
f72132f1
authored
Nov 13, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aout: make some functions static
parent
5b595ec8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
24 deletions
+19
-24
src/audio_output/aout_internal.h
src/audio_output/aout_internal.h
+0
-7
src/audio_output/filters.c
src/audio_output/filters.c
+19
-17
No files found.
src/audio_output/aout_internal.h
View file @
f72132f1
...
...
@@ -94,13 +94,6 @@ static inline aout_owner_t *aout_owner (audio_output_t *aout)
*****************************************************************************/
/* From filters.c : */
int
aout_FiltersPipelineCreate
(
vlc_object_t
*
,
filter_t
**
,
unsigned
*
,
unsigned
,
const
audio_sample_format_t
*
,
const
audio_sample_format_t
*
);
#define aout_FiltersPipelineCreate(o, pv, pc, max, inf, outf) \
aout_FiltersPipelineCreate(VLC_OBJECT(o), pv, pc, max, inf, outf)
void
aout_FiltersPipelineDestroy
(
filter_t
*
const
*
,
unsigned
);
block_t
*
aout_FiltersPipelinePlay
(
filter_t
*
const
*
,
unsigned
,
block_t
*
);
int
aout_FiltersNew
(
audio_output_t
*
,
const
audio_sample_format_t
*
,
const
audio_sample_format_t
*
,
const
aout_request_vout_t
*
);
void
aout_FiltersDelete
(
audio_output_t
*
);
...
...
src/audio_output/filters.c
View file @
f72132f1
...
...
@@ -126,6 +126,20 @@ static int SplitConversion( const audio_sample_format_t *restrict infmt,
return
0
;
}
/**
* Destroys a chain of audio filters.
*/
static
void
aout_FiltersPipelineDestroy
(
filter_t
*
const
*
filters
,
unsigned
n
)
{
for
(
unsigned
i
=
0
;
i
<
n
;
i
++
)
{
filter_t
*
p_filter
=
filters
[
i
];
module_unneed
(
p_filter
,
p_filter
->
p_module
);
vlc_object_release
(
p_filter
);
}
}
/**
* Allocates audio format conversion filters
* @param obj parent VLC object for new filters
...
...
@@ -136,7 +150,7 @@ static int SplitConversion( const audio_sample_format_t *restrict infmt,
* @param outfmt output audio format
* @return 0 on success, -1 on failure
*/
int
(
aout_FiltersPipelineCreate
)
(
vlc_object_t
*
obj
,
filter_t
**
filters
,
static
int
aout_FiltersPipelineCreate
(
vlc_object_t
*
obj
,
filter_t
**
filters
,
unsigned
*
nb_filters
,
unsigned
max_filters
,
const
audio_sample_format_t
*
restrict
infmt
,
const
audio_sample_format_t
*
restrict
outfmt
)
...
...
@@ -197,20 +211,8 @@ rollback:
aout_FiltersPipelineDestroy
(
filters
,
i
);
return
-
1
;
}
/**
* Destroys a chain of audio filters.
*/
void
aout_FiltersPipelineDestroy
(
filter_t
*
const
*
filters
,
unsigned
n
)
{
for
(
unsigned
i
=
0
;
i
<
n
;
i
++
)
{
filter_t
*
p_filter
=
filters
[
i
];
module_unneed
(
p_filter
,
p_filter
->
p_module
);
vlc_object_release
(
p_filter
);
}
}
#define aout_FiltersPipelineCreate(obj,f,n,m,i,o) \
aout_FiltersPipelineCreate(VLC_OBJECT(obj),f,n,m,i,o)
static
inline
bool
ChangeFiltersString
(
vlc_object_t
*
aout
,
const
char
*
var
,
const
char
*
filter
,
bool
add
)
...
...
@@ -221,8 +223,8 @@ static inline bool ChangeFiltersString (vlc_object_t *aout, const char *var,
/**
* Filters an audio buffer through a chain of filters.
*/
block_t
*
aout_FiltersPipelinePlay
(
filter_t
*
const
*
filters
,
unsigned
count
,
block_t
*
block
)
static
block_t
*
aout_FiltersPipelinePlay
(
filter_t
*
const
*
filters
,
unsigned
count
,
block_t
*
block
)
{
/* TODO: use filter chain */
for
(
unsigned
i
=
0
;
(
i
<
count
)
&&
(
block
!=
NULL
);
i
++
)
...
...
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