Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
f42db415
Commit
f42db415
authored
Oct 19, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linear resampler: use fixed-point as appropriate
parent
69f6faef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/audio_filter/resampler/linear.c
modules/audio_filter/resampler/linear.c
+3
-3
No files found.
modules/audio_filter/resampler/linear.c
View file @
f42db415
...
...
@@ -44,7 +44,7 @@ static int OpenFilter ( vlc_object_t * );
static
void
CloseFilter
(
vlc_object_t
*
);
static
block_t
*
Resample
(
filter_t
*
,
block_t
*
);
#if
1
#if
HAVE_FPU
typedef
float
sample_t
;
# define VLC_CODEC_NATIVE VLC_CODEC_FL32
#else
...
...
@@ -137,7 +137,7 @@ static block_t *Resample( filter_t *p_filter, block_t *p_in_buf )
for
(
unsigned
i
=
0
;
i
<
i_nb_channels
;
i
++
)
{
p_out
[
i
]
=
p_prev_sample
[
i
];
#if
CPU_CAPABILITY
_FPU
#if
HAVE
_FPU
p_out
[
i
]
+=
(
p_in
[
i
]
-
p_prev_sample
[
i
])
#else
p_out
[
i
]
+=
(
int64_t
)(
p_in
[
i
]
-
p_prev_sample
[
i
])
...
...
@@ -160,7 +160,7 @@ static block_t *Resample( filter_t *p_filter, block_t *p_in_buf )
for
(
unsigned
i
=
0
;
i
<
i_nb_channels
;
i
++
)
{
p_out
[
i
]
=
p_in
[
i
];
#if
CPU_CAPABILITY
_FPU
#if
HAVE
_FPU
p_out
[
i
]
+=
(
p_in
[
i
+
i_nb_channels
]
-
p_in
[
i
])
#else
p_out
[
i
]
+=
(
int64_t
)(
p_in
[
i
+
i_nb_channels
]
-
p_in
[
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