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
2bb66cc8
Commit
2bb66cc8
authored
Aug 29, 2014
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fft_template: Move variables to where they are used.
Signed-off-by:
Reimar Döffinger
<
Reimar.Doeffinger@gmx.de
>
parent
1654514a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
fft_template.c
libavcodec/fft_template.c
+4
-7
No files found.
libavcodec/fft_template.c
View file @
2bb66cc8
...
...
@@ -228,8 +228,6 @@ static void fft_calc_c(FFTContext *s, FFTComplex *z) {
int
n4
,
n2
,
n34
;
FFTSample
tmp1
,
tmp2
,
tmp3
,
tmp4
,
tmp5
,
tmp6
,
tmp7
,
tmp8
;
FFTComplex
*
tmpz
;
FFTSample
w_re
,
w_im
;
const
FFTSample
*
w_re_ptr
,
*
w_im_ptr
;
const
int
fft_size
=
(
1
<<
s
->
nbits
);
int64_t
accu
;
...
...
@@ -322,6 +320,8 @@ static void fft_calc_c(FFTContext *s, FFTComplex *z) {
num_transforms
=
(
num_transforms
>>
1
)
|
1
;
for
(
n
=
0
;
n
<
num_transforms
;
n
++
){
const
FFTSample
*
w_re_ptr
=
ff_w_tab_sr
+
step
;
const
FFTSample
*
w_im_ptr
=
ff_w_tab_sr
+
MAX_FFT_SIZE
/
(
4
*
16
)
-
step
;
offset
=
ff_fft_offsets_lut
[
n
]
<<
nbits
;
tmpz
=
z
+
offset
;
...
...
@@ -339,12 +339,9 @@ static void fft_calc_c(FFTContext *s, FFTComplex *z) {
tmpz
[
n34
].
im
=
tmpz
[
n4
].
im
+
tmp1
;
tmpz
[
n4
].
im
=
tmpz
[
n4
].
im
-
tmp1
;
w_re_ptr
=
ff_w_tab_sr
+
step
;
w_im_ptr
=
ff_w_tab_sr
+
MAX_FFT_SIZE
/
(
4
*
16
)
-
step
;
for
(
i
=
1
;
i
<
n4
;
i
++
){
w_re
=
w_re_ptr
[
0
];
w_im
=
w_im_ptr
[
0
];
FFTSample
w_re
=
w_re_ptr
[
0
];
FFTSample
w_im
=
w_im_ptr
[
0
];
accu
=
(
int64_t
)
w_re
*
tmpz
[
n2
+
i
].
re
;
accu
+=
(
int64_t
)
w_im
*
tmpz
[
n2
+
i
].
im
;
tmp1
=
(
int32_t
)((
accu
+
0x40000000
)
>>
31
);
...
...
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