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
fe20bdf9
Commit
fe20bdf9
authored
Jul 01, 2010
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Indent
Originally committed as revision 23958 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
588d28ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
fft.c
libavcodec/fft.c
+8
-8
No files found.
libavcodec/fft.c
View file @
fe20bdf9
...
...
@@ -107,11 +107,11 @@ av_cold int ff_fft_init(FFTContext *s, int nbits, int inverse)
if
(
HAVE_ALTIVEC
)
ff_fft_init_altivec
(
s
);
if
(
HAVE_MMX
)
ff_fft_init_mmx
(
s
);
for
(
j
=
4
;
j
<=
nbits
;
j
++
)
{
ff_init_ff_cos_tabs
(
j
);
}
for
(
i
=
0
;
i
<
n
;
i
++
)
s
->
revtab
[
-
split_radix_permutation
(
i
,
n
,
s
->
inverse
)
&
(
n
-
1
)]
=
i
;
for
(
j
=
4
;
j
<=
nbits
;
j
++
)
{
ff_init_ff_cos_tabs
(
j
);
}
for
(
i
=
0
;
i
<
n
;
i
++
)
s
->
revtab
[
-
split_radix_permutation
(
i
,
n
,
s
->
inverse
)
&
(
n
-
1
)]
=
i
;
return
0
;
fail:
...
...
@@ -125,9 +125,9 @@ void ff_fft_permute_c(FFTContext *s, FFTComplex *z)
int
j
,
np
;
const
uint16_t
*
revtab
=
s
->
revtab
;
np
=
1
<<
s
->
nbits
;
/* TODO: handle split-radix permute in a more optimal way, probably in-place */
for
(
j
=
0
;
j
<
np
;
j
++
)
s
->
tmp_buf
[
revtab
[
j
]]
=
z
[
j
];
memcpy
(
z
,
s
->
tmp_buf
,
np
*
sizeof
(
FFTComplex
));
/* TODO: handle split-radix permute in a more optimal way, probably in-place */
for
(
j
=
0
;
j
<
np
;
j
++
)
s
->
tmp_buf
[
revtab
[
j
]]
=
z
[
j
];
memcpy
(
z
,
s
->
tmp_buf
,
np
*
sizeof
(
FFTComplex
));
}
av_cold
void
ff_fft_end
(
FFTContext
*
s
)
...
...
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