Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
d961a79e
Commit
d961a79e
authored
Mar 18, 2014
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sbrdsp: move #if to disable all educational code
Avoids a warning of the unused function 'autocorrelate'.
parent
c829b35c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
sbrdsp.c
libavcodec/sbrdsp.c
+8
-4
No files found.
libavcodec/sbrdsp.c
View file @
d961a79e
...
...
@@ -109,6 +109,11 @@ static void sbr_qmf_deint_bfly_c(float *v, const float *src0, const float *src1)
}
}
#if 0
/* This code is slower because it multiplies memory accesses.
* It is left for educational purposes and because it may offer
* a better reference for writing arch-specific DSP functions. */
static av_always_inline void autocorrelate(const float x[40][2],
float phi[3][2][2], int lag)
{
...
...
@@ -137,14 +142,13 @@ static av_always_inline void autocorrelate(const float x[40][2],
static void sbr_autocorrelate_c(const float x[40][2], float phi[3][2][2])
{
#if 0
/* This code is slower because it multiplies memory accesses.
* It is left for educational purposes and because it may offer
* a better reference for writing arch-specific DSP functions. */
autocorrelate(x, phi, 0);
autocorrelate(x, phi, 1);
autocorrelate(x, phi, 2);
}
#else
static
void
sbr_autocorrelate_c
(
const
float
x
[
40
][
2
],
float
phi
[
3
][
2
][
2
])
{
float
real_sum2
=
x
[
0
][
0
]
*
x
[
2
][
0
]
+
x
[
0
][
1
]
*
x
[
2
][
1
];
float
imag_sum2
=
x
[
0
][
0
]
*
x
[
2
][
1
]
-
x
[
0
][
1
]
*
x
[
2
][
0
];
float
real_sum1
=
0
.
0
f
,
imag_sum1
=
0
.
0
f
,
real_sum0
=
0
.
0
f
;
...
...
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