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
8984806a
Commit
8984806a
authored
Jan 07, 2016
by
foo86
Committed by
Hendrik Leppkes
Jan 31, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/synth_filter: fix whitespace
parent
4a53b836
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
22 deletions
+23
-22
synth_filter.c
libavcodec/synth_filter.c
+23
-22
No files found.
libavcodec/synth_filter.c
View file @
8984806a
...
...
@@ -26,34 +26,35 @@ static void synth_filter_float(FFTContext *imdct,
float
synth_buf2
[
32
],
const
float
window
[
512
],
float
out
[
32
],
const
float
in
[
32
],
float
scale
)
{
float
*
synth_buf
=
synth_buf_ptr
+
*
synth_buf_offset
;
float
*
synth_buf
=
synth_buf_ptr
+
*
synth_buf_offset
;
int
i
,
j
;
imdct
->
imdct_half
(
imdct
,
synth_buf
,
in
);
for
(
i
=
0
;
i
<
16
;
i
++
){
float
a
=
synth_buf2
[
i
];
float
b
=
synth_buf2
[
i
+
16
];
float
c
=
0
;
float
d
=
0
;
for
(
j
=
0
;
j
<
512
-
*
synth_buf_offset
;
j
+=
64
){
a
+=
window
[
i
+
j
]
*
(
-
synth_buf
[
15
-
i
+
j
]);
b
+=
window
[
i
+
j
+
16
]
*
(
synth_buf
[
i
+
j
]);
c
+=
window
[
i
+
j
+
32
]
*
(
synth_buf
[
16
+
i
+
j
]);
d
+=
window
[
i
+
j
+
48
]
*
(
synth_buf
[
31
-
i
+
j
]);
for
(
i
=
0
;
i
<
16
;
i
++
)
{
float
a
=
synth_buf2
[
i
];
float
b
=
synth_buf2
[
i
+
16
];
float
c
=
0
;
float
d
=
0
;
for
(
j
=
0
;
j
<
512
-
*
synth_buf_offset
;
j
+=
64
)
{
a
+=
window
[
i
+
j
]
*
(
-
synth_buf
[
15
-
i
+
j
]);
b
+=
window
[
i
+
j
+
16
]
*
(
synth_buf
[
i
+
j
]);
c
+=
window
[
i
+
j
+
32
]
*
(
synth_buf
[
16
+
i
+
j
]);
d
+=
window
[
i
+
j
+
48
]
*
(
synth_buf
[
31
-
i
+
j
]);
}
for
(
;
j
<
512
;
j
+=
64
){
a
+=
window
[
i
+
j
]
*
(
-
synth_buf
[
15
-
i
+
j
-
512
]);
b
+=
window
[
i
+
j
+
16
]
*
(
synth_buf
[
i
+
j
-
512
]);
c
+=
window
[
i
+
j
+
32
]
*
(
synth_buf
[
16
+
i
+
j
-
512
]);
d
+=
window
[
i
+
j
+
48
]
*
(
synth_buf
[
31
-
i
+
j
-
512
]);
for
(
;
j
<
512
;
j
+=
64
)
{
a
+=
window
[
i
+
j
]
*
(
-
synth_buf
[
15
-
i
+
j
-
512
]);
b
+=
window
[
i
+
j
+
16
]
*
(
synth_buf
[
i
+
j
-
512
]);
c
+=
window
[
i
+
j
+
32
]
*
(
synth_buf
[
16
+
i
+
j
-
512
]);
d
+=
window
[
i
+
j
+
48
]
*
(
synth_buf
[
31
-
i
+
j
-
512
]);
}
out
[
i
]
=
a
*
scale
;
out
[
i
+
16
]
=
b
*
scale
;
out
[
i
]
=
a
*
scale
;
out
[
i
+
16
]
=
b
*
scale
;
synth_buf2
[
i
]
=
c
;
synth_buf2
[
i
+
16
]
=
d
;
}
*
synth_buf_offset
=
(
*
synth_buf_offset
-
32
)
&
511
;
*
synth_buf_offset
=
(
*
synth_buf_offset
-
32
)
&
511
;
}
av_cold
void
ff_synth_filter_init
(
SynthFilterContext
*
c
)
...
...
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