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
3c46fdb6
Commit
3c46fdb6
authored
Apr 12, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple: implement 4.0 to 1.0
parent
e1da5491
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
modules/audio_filter/channel_mixer/simple.c
modules/audio_filter/channel_mixer/simple.c
+13
-0
No files found.
modules/audio_filter/channel_mixer/simple.c
View file @
3c46fdb6
...
...
@@ -140,6 +140,17 @@ static void DoWork_5_x_to_1_0( filter_t * p_filter, block_t * p_in_buf, block_t
}
}
static
void
DoWork_4_0_to_1_0
(
filter_t
*
p_filter
,
block_t
*
p_in_buf
,
block_t
*
p_out_buf
)
{
VLC_UNUSED
(
p_filter
);
float
*
p_dest
=
(
float
*
)
p_out_buf
->
p_buffer
;
const
float
*
p_src
=
(
const
float
*
)
p_in_buf
->
p_buffer
;
for
(
int
i
=
p_in_buf
->
i_nb_samples
;
i
--
;
)
{
*
p_dest
++
=
p_src
[
2
]
+
p_src
[
3
]
+
p_src
[
0
]
/
4
+
p_src
[
1
]
/
4
;
p_src
+=
4
;
}
}
static
void
DoWork_3_x_to_1_0
(
filter_t
*
p_filter
,
block_t
*
p_in_buf
,
block_t
*
p_out_buf
)
{
float
*
p_dest
=
(
float
*
)
p_out_buf
->
p_buffer
;
const
float
*
p_src
=
(
const
float
*
)
p_in_buf
->
p_buffer
;
...
...
@@ -248,6 +259,8 @@ static int OpenFilter( vlc_object_t *p_this )
p_filter
->
p_sys
->
pf_dowork
=
DoWork_7_x_to_1_0
;
else
if
(
b_input_5_0
)
p_filter
->
p_sys
->
pf_dowork
=
DoWork_5_x_to_1_0
;
else
if
(
b_input_4_center_rear
)
p_filter
->
p_sys
->
pf_dowork
=
DoWork_4_0_to_1_0
;
else
if
(
b_input_3_0
)
p_filter
->
p_sys
->
pf_dowork
=
DoWork_3_x_to_1_0
;
else
...
...
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