Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
20c58c5f
Commit
20c58c5f
authored
Sep 09, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a52: fix warnings against fixed-point a52dec
(and partial support for double precision, but who cares...)
parent
6e8d447f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/audio_filter/converter/a52tofloat32.c
modules/audio_filter/converter/a52tofloat32.c
+7
-7
No files found.
modules/audio_filter/converter/a52tofloat32.c
View file @
20c58c5f
...
@@ -274,8 +274,8 @@ static int Open( vlc_object_t *p_this, filter_sys_t *p_sys,
...
@@ -274,8 +274,8 @@ static int Open( vlc_object_t *p_this, filter_sys_t *p_sys,
/*****************************************************************************
/*****************************************************************************
* Interleave: helper function to interleave channels
* Interleave: helper function to interleave channels
*****************************************************************************/
*****************************************************************************/
static
void
Interleave
(
float
*
p_out
,
const
float
*
p_in
,
int
i_nb_channels
,
static
void
Interleave
(
sample_t
*
p_out
,
const
sample_t
*
p_in
,
int
*
pi_chan_table
)
int
i_nb_channels
,
int
*
pi_chan_table
)
{
{
/* We do not only have to interleave, but also reorder the channels */
/* We do not only have to interleave, but also reorder the channels */
...
@@ -292,7 +292,7 @@ static void Interleave( float * p_out, const float * p_in, int i_nb_channels,
...
@@ -292,7 +292,7 @@ static void Interleave( float * p_out, const float * p_in, int i_nb_channels,
/*****************************************************************************
/*****************************************************************************
* Duplicate: helper function to duplicate a unique channel
* Duplicate: helper function to duplicate a unique channel
*****************************************************************************/
*****************************************************************************/
static
void
Duplicate
(
float
*
p_out
,
const
floa
t
*
p_in
)
static
void
Duplicate
(
sample_t
*
p_out
,
const
sample_
t
*
p_in
)
{
{
int
i
;
int
i
;
...
@@ -307,7 +307,7 @@ static void Duplicate( float * p_out, const float * p_in )
...
@@ -307,7 +307,7 @@ static void Duplicate( float * p_out, const float * p_in )
/*****************************************************************************
/*****************************************************************************
* Exchange: helper function to exchange left & right channels
* Exchange: helper function to exchange left & right channels
*****************************************************************************/
*****************************************************************************/
static
void
Exchange
(
float
*
p_out
,
const
floa
t
*
p_in
)
static
void
Exchange
(
sample_t
*
p_out
,
const
sample_
t
*
p_in
)
{
{
int
i
;
int
i
;
const
float
*
p_first
=
p_in
+
256
;
const
float
*
p_first
=
p_in
+
256
;
...
@@ -374,19 +374,19 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
...
@@ -374,19 +374,19 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
&&
(
p_filter
->
output
.
i_physical_channels
&&
(
p_filter
->
output
.
i_physical_channels
&
(
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
))
)
&
(
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
))
)
{
{
Duplicate
(
(
floa
t
*
)(
p_out_buf
->
p_buffer
+
i
*
i_bytes_per_block
),
Duplicate
(
(
sample_
t
*
)(
p_out_buf
->
p_buffer
+
i
*
i_bytes_per_block
),
p_samples
);
p_samples
);
}
}
else
if
(
p_filter
->
output
.
i_original_channels
else
if
(
p_filter
->
output
.
i_original_channels
&
AOUT_CHAN_REVERSESTEREO
)
&
AOUT_CHAN_REVERSESTEREO
)
{
{
Exchange
(
(
floa
t
*
)(
p_out_buf
->
p_buffer
+
i
*
i_bytes_per_block
),
Exchange
(
(
sample_
t
*
)(
p_out_buf
->
p_buffer
+
i
*
i_bytes_per_block
),
p_samples
);
p_samples
);
}
}
else
else
{
{
/* Interleave the *$£%ù samples. */
/* Interleave the *$£%ù samples. */
Interleave
(
(
floa
t
*
)(
p_out_buf
->
p_buffer
+
i
*
i_bytes_per_block
),
Interleave
(
(
sample_
t
*
)(
p_out_buf
->
p_buffer
+
i
*
i_bytes_per_block
),
p_samples
,
p_sys
->
i_nb_channels
,
p_sys
->
pi_chan_table
);
p_samples
,
p_sys
->
i_nb_channels
,
p_sys
->
pi_chan_table
);
}
}
}
}
...
...
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