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
1654514a
Commit
1654514a
authored
Aug 29, 2014
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fft: add ff_ prefix to some global arrays.
Signed-off-by:
Reimar Döffinger
<
Reimar.Doeffinger@gmx.de
>
parent
e0237208
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
fft_init_table.c
libavcodec/fft_init_table.c
+2
-2
fft_table.h
libavcodec/fft_table.h
+2
-2
fft_template.c
libavcodec/fft_template.c
+6
-6
fft_mips.c
libavcodec/mips/fft_mips.c
+4
-4
No files found.
libavcodec/fft_init_table.c
View file @
1654514a
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
*/
*/
#include "libavcodec/fft_table.h"
#include "libavcodec/fft_table.h"
const
int32_t
w_tab_sr
[
MAX_FFT_SIZE
/
(
4
*
16
)]
=
{
const
int32_t
ff_
w_tab_sr
[
MAX_FFT_SIZE
/
(
4
*
16
)]
=
{
2147483647
,
2147481121
,
2147473542
,
2147460908
,
2147443222
,
2147420483
,
2147392690
,
2147359845
,
2147483647
,
2147481121
,
2147473542
,
2147460908
,
2147443222
,
2147420483
,
2147392690
,
2147359845
,
2147321946
,
2147278995
,
2147230991
,
2147177934
,
2147119825
,
2147056664
,
2146988450
,
2146915184
,
2147321946
,
2147278995
,
2147230991
,
2147177934
,
2147119825
,
2147056664
,
2146988450
,
2146915184
,
2146836866
,
2146753497
,
2146665076
,
2146571603
,
2146473080
,
2146369505
,
2146260881
,
2146147205
,
2146836866
,
2146753497
,
2146665076
,
2146571603
,
2146473080
,
2146369505
,
2146260881
,
2146147205
,
...
@@ -184,7 +184,7 @@ const int32_t w_tab_sr[MAX_FFT_SIZE/(4*16)] = {
...
@@ -184,7 +184,7 @@ const int32_t w_tab_sr[MAX_FFT_SIZE/(4*16)] = {
26352928
,
23058947
,
19764913
,
16470832
,
13176712
,
9882561
,
6588387
,
3294197
26352928
,
23058947
,
19764913
,
16470832
,
13176712
,
9882561
,
6588387
,
3294197
};
};
uint16_t
fft_offsets_lut
[
0x2aab
];
uint16_t
ff
_ff
t_offsets_lut
[
0x2aab
];
void
ff_fft_lut_init
(
uint16_t
*
table
,
int
off
,
int
size
,
int
*
index
)
void
ff_fft_lut_init
(
uint16_t
*
table
,
int
off
,
int
size
,
int
*
index
)
{
{
...
...
libavcodec/fft_table.h
View file @
1654514a
...
@@ -59,8 +59,8 @@
...
@@ -59,8 +59,8 @@
#define MAX_LOG2_NFFT 16 //!< Specifies maximum allowed fft size
#define MAX_LOG2_NFFT 16 //!< Specifies maximum allowed fft size
#define MAX_FFT_SIZE (1 << MAX_LOG2_NFFT)
#define MAX_FFT_SIZE (1 << MAX_LOG2_NFFT)
extern
const
int32_t
w_tab_sr
[];
extern
const
int32_t
ff_
w_tab_sr
[];
extern
uint16_t
fft_offsets_lut
[];
extern
uint16_t
ff
_ff
t_offsets_lut
[];
void
ff_fft_lut_init
(
uint16_t
*
table
,
int
off
,
int
size
,
int
*
index
);
void
ff_fft_lut_init
(
uint16_t
*
table
,
int
off
,
int
size
,
int
*
index
);
#endif
/* AVCODEC_FFT_TABLE_H */
#endif
/* AVCODEC_FFT_TABLE_H */
libavcodec/fft_template.c
View file @
1654514a
...
@@ -166,7 +166,7 @@ av_cold int ff_fft_init(FFTContext *s, int nbits, int inverse)
...
@@ -166,7 +166,7 @@ av_cold int ff_fft_init(FFTContext *s, int nbits, int inverse)
#if FFT_FIXED_32
#if FFT_FIXED_32
{
{
int
n
=
0
;
int
n
=
0
;
ff_fft_lut_init
(
fft_offsets_lut
,
0
,
1
<<
16
,
&
n
);
ff_fft_lut_init
(
ff
_ff
t_offsets_lut
,
0
,
1
<<
16
,
&
n
);
}
}
#else
/* FFT_FIXED_32 */
#else
/* FFT_FIXED_32 */
#if FFT_FLOAT
#if FFT_FLOAT
...
@@ -236,7 +236,7 @@ static void fft_calc_c(FFTContext *s, FFTComplex *z) {
...
@@ -236,7 +236,7 @@ static void fft_calc_c(FFTContext *s, FFTComplex *z) {
num_transforms
=
(
0x2aab
>>
(
16
-
s
->
nbits
))
|
1
;
num_transforms
=
(
0x2aab
>>
(
16
-
s
->
nbits
))
|
1
;
for
(
n
=
0
;
n
<
num_transforms
;
n
++
){
for
(
n
=
0
;
n
<
num_transforms
;
n
++
){
offset
=
fft_offsets_lut
[
n
]
<<
2
;
offset
=
ff
_ff
t_offsets_lut
[
n
]
<<
2
;
tmpz
=
z
+
offset
;
tmpz
=
z
+
offset
;
tmp1
=
tmpz
[
0
].
re
+
tmpz
[
1
].
re
;
tmp1
=
tmpz
[
0
].
re
+
tmpz
[
1
].
re
;
...
@@ -264,7 +264,7 @@ static void fft_calc_c(FFTContext *s, FFTComplex *z) {
...
@@ -264,7 +264,7 @@ static void fft_calc_c(FFTContext *s, FFTComplex *z) {
num_transforms
=
(
num_transforms
>>
1
)
|
1
;
num_transforms
=
(
num_transforms
>>
1
)
|
1
;
for
(
n
=
0
;
n
<
num_transforms
;
n
++
){
for
(
n
=
0
;
n
<
num_transforms
;
n
++
){
offset
=
fft_offsets_lut
[
n
]
<<
3
;
offset
=
ff
_ff
t_offsets_lut
[
n
]
<<
3
;
tmpz
=
z
+
offset
;
tmpz
=
z
+
offset
;
tmp1
=
tmpz
[
4
].
re
+
tmpz
[
5
].
re
;
tmp1
=
tmpz
[
4
].
re
+
tmpz
[
5
].
re
;
...
@@ -322,7 +322,7 @@ static void fft_calc_c(FFTContext *s, FFTComplex *z) {
...
@@ -322,7 +322,7 @@ static void fft_calc_c(FFTContext *s, FFTComplex *z) {
num_transforms
=
(
num_transforms
>>
1
)
|
1
;
num_transforms
=
(
num_transforms
>>
1
)
|
1
;
for
(
n
=
0
;
n
<
num_transforms
;
n
++
){
for
(
n
=
0
;
n
<
num_transforms
;
n
++
){
offset
=
fft_offsets_lut
[
n
]
<<
nbits
;
offset
=
ff
_ff
t_offsets_lut
[
n
]
<<
nbits
;
tmpz
=
z
+
offset
;
tmpz
=
z
+
offset
;
tmp5
=
tmpz
[
n2
].
re
+
tmpz
[
n34
].
re
;
tmp5
=
tmpz
[
n2
].
re
+
tmpz
[
n34
].
re
;
...
@@ -339,8 +339,8 @@ static void fft_calc_c(FFTContext *s, FFTComplex *z) {
...
@@ -339,8 +339,8 @@ static void fft_calc_c(FFTContext *s, FFTComplex *z) {
tmpz
[
n34
].
im
=
tmpz
[
n4
].
im
+
tmp1
;
tmpz
[
n34
].
im
=
tmpz
[
n4
].
im
+
tmp1
;
tmpz
[
n4
].
im
=
tmpz
[
n4
].
im
-
tmp1
;
tmpz
[
n4
].
im
=
tmpz
[
n4
].
im
-
tmp1
;
w_re_ptr
=
w_tab_sr
+
step
;
w_re_ptr
=
ff_
w_tab_sr
+
step
;
w_im_ptr
=
w_tab_sr
+
MAX_FFT_SIZE
/
(
4
*
16
)
-
step
;
w_im_ptr
=
ff_
w_tab_sr
+
MAX_FFT_SIZE
/
(
4
*
16
)
-
step
;
for
(
i
=
1
;
i
<
n4
;
i
++
){
for
(
i
=
1
;
i
<
n4
;
i
++
){
w_re
=
w_re_ptr
[
0
];
w_re
=
w_re_ptr
[
0
];
...
...
libavcodec/mips/fft_mips.c
View file @
1654514a
...
@@ -87,7 +87,7 @@ static void ff_fft_calc_mips(FFTContext *s, FFTComplex *z)
...
@@ -87,7 +87,7 @@ static void ff_fft_calc_mips(FFTContext *s, FFTComplex *z)
for
(
n
=
0
;
n
<
num_transforms
;
n
++
)
{
for
(
n
=
0
;
n
<
num_transforms
;
n
++
)
{
offset
=
fft_offsets_lut
[
n
]
<<
2
;
offset
=
ff
_ff
t_offsets_lut
[
n
]
<<
2
;
tmpz
=
z
+
offset
;
tmpz
=
z
+
offset
;
tmp1
=
tmpz
[
0
].
re
+
tmpz
[
1
].
re
;
tmp1
=
tmpz
[
0
].
re
+
tmpz
[
1
].
re
;
...
@@ -116,7 +116,7 @@ static void ff_fft_calc_mips(FFTContext *s, FFTComplex *z)
...
@@ -116,7 +116,7 @@ static void ff_fft_calc_mips(FFTContext *s, FFTComplex *z)
num_transforms
=
(
num_transforms
>>
1
)
|
1
;
num_transforms
=
(
num_transforms
>>
1
)
|
1
;
for
(
n
=
0
;
n
<
num_transforms
;
n
++
)
{
for
(
n
=
0
;
n
<
num_transforms
;
n
++
)
{
offset
=
fft_offsets_lut
[
n
]
<<
3
;
offset
=
ff
_ff
t_offsets_lut
[
n
]
<<
3
;
tmpz
=
z
+
offset
;
tmpz
=
z
+
offset
;
__asm__
volatile
(
__asm__
volatile
(
...
@@ -227,7 +227,7 @@ static void ff_fft_calc_mips(FFTContext *s, FFTComplex *z)
...
@@ -227,7 +227,7 @@ static void ff_fft_calc_mips(FFTContext *s, FFTComplex *z)
n34
=
3
*
n4
;
n34
=
3
*
n4
;
for
(
n
=
0
;
n
<
num_transforms
;
n
++
)
{
for
(
n
=
0
;
n
<
num_transforms
;
n
++
)
{
offset
=
fft_offsets_lut
[
n
]
<<
nbits
;
offset
=
ff
_ff
t_offsets_lut
[
n
]
<<
nbits
;
tmpz
=
z
+
offset
;
tmpz
=
z
+
offset
;
tmpz_n2
=
tmpz
+
n2
;
tmpz_n2
=
tmpz
+
n2
;
...
@@ -521,7 +521,7 @@ av_cold void ff_fft_init_mips(FFTContext *s)
...
@@ -521,7 +521,7 @@ av_cold void ff_fft_init_mips(FFTContext *s)
{
{
int
n
=
0
;
int
n
=
0
;
ff_fft_lut_init
(
fft_offsets_lut
,
0
,
1
<<
16
,
&
n
);
ff_fft_lut_init
(
ff
_ff
t_offsets_lut
,
0
,
1
<<
16
,
&
n
);
ff_init_ff_cos_tabs
(
16
);
ff_init_ff_cos_tabs
(
16
);
#if HAVE_INLINE_ASM
#if HAVE_INLINE_ASM
...
...
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