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
469bc90f
Commit
469bc90f
authored
Jul 04, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Channel mixer: drop FI32
parent
9b925784
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
modules/audio_filter/channel_mixer/trivial.c
modules/audio_filter/channel_mixer/trivial.c
+5
-6
No files found.
modules/audio_filter/channel_mixer/trivial.c
View file @
469bc90f
...
...
@@ -65,8 +65,7 @@ static int Create( vlc_object_t *p_this )
==
p_filter
->
fmt_out
.
audio
.
i_original_channels
)
||
p_filter
->
fmt_in
.
audio
.
i_format
!=
p_filter
->
fmt_out
.
audio
.
i_format
||
p_filter
->
fmt_in
.
audio
.
i_rate
!=
p_filter
->
fmt_out
.
audio
.
i_rate
||
(
p_filter
->
fmt_in
.
audio
.
i_format
!=
VLC_CODEC_FL32
&&
p_filter
->
fmt_in
.
audio
.
i_format
!=
VLC_CODEC_FI32
)
)
||
p_filter
->
fmt_in
.
audio
.
i_format
!=
VLC_CODEC_FL32
)
{
return
VLC_EGENERIC
;
}
...
...
@@ -78,7 +77,7 @@ static int Create( vlc_object_t *p_this )
/*****************************************************************************
* SparseCopy: trivially downmix or upmix a buffer
*****************************************************************************/
static
void
SparseCopy
(
int32_t
*
p_dest
,
const
int32_
t
*
p_src
,
size_t
i_len
,
static
void
SparseCopy
(
float
*
p_dest
,
const
floa
t
*
p_src
,
size_t
i_len
,
int
i_output_stride
,
int
i_input_stride
)
{
int
i
;
...
...
@@ -120,8 +119,8 @@ static block_t *DoWork( filter_t * p_filter, block_t * p_in_buf )
p_out_buf
->
i_length
=
p_in_buf
->
i_length
;
}
int32_t
*
p_dest
=
(
int32_
t
*
)
p_out_buf
->
p_buffer
;
const
int32_t
*
p_src
=
(
int32_
t
*
)
p_in_buf
->
p_buffer
;
float
*
p_dest
=
(
floa
t
*
)
p_out_buf
->
p_buffer
;
const
float
*
p_src
=
(
floa
t
*
)
p_in_buf
->
p_buffer
;
if
(
(
p_filter
->
fmt_out
.
audio
.
i_original_channels
&
AOUT_CHAN_PHYSMASK
)
!=
(
p_filter
->
fmt_in
.
audio
.
i_original_channels
&
AOUT_CHAN_PHYSMASK
)
...
...
@@ -164,7 +163,7 @@ static block_t *DoWork( filter_t * p_filter, block_t * p_in_buf )
int
i
;
for
(
i
=
p_in_buf
->
i_nb_samples
;
i
--
;
)
{
int32_
t
i_tmp
=
p_src
[
0
];
floa
t
i_tmp
=
p_src
[
0
];
p_dest
[
0
]
=
p_src
[
1
];
p_dest
[
1
]
=
i_tmp
;
...
...
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