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
096a1d5b
Commit
096a1d5b
authored
Aug 29, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rdft: Move some variables into a separate block
This avoids an unused variable warning with hardcoded tables.
parent
b574e1e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
rdft.c
libavcodec/rdft.c
+5
-4
No files found.
libavcodec/rdft.c
View file @
096a1d5b
...
...
@@ -99,8 +99,6 @@ static void rdft_calc_c(RDFTContext *s, FFTSample *data)
av_cold
int
ff_rdft_init
(
RDFTContext
*
s
,
int
nbits
,
enum
RDFTransformType
trans
)
{
int
n
=
1
<<
nbits
;
int
i
;
const
double
theta
=
(
trans
==
DFT_R2C
||
trans
==
DFT_C2R
?
-
1
:
1
)
*
2
*
M_PI
/
n
;
s
->
nbits
=
nbits
;
s
->
inverse
=
trans
==
IDFT_C2R
||
trans
==
DFT_C2R
;
...
...
@@ -116,8 +114,11 @@ av_cold int ff_rdft_init(RDFTContext *s, int nbits, enum RDFTransformType trans)
s
->
tcos
=
ff_cos_tabs
[
nbits
];
s
->
tsin
=
ff_sin_tabs
[
nbits
]
+
(
trans
==
DFT_R2C
||
trans
==
DFT_C2R
)
*
(
n
>>
2
);
#if !CONFIG_HARDCODED_TABLES
for
(
i
=
0
;
i
<
(
n
>>
2
);
i
++
)
{
s
->
tsin
[
i
]
=
sin
(
i
*
theta
);
{
int
i
;
const
double
theta
=
(
trans
==
DFT_R2C
||
trans
==
DFT_C2R
?
-
1
:
1
)
*
2
*
M_PI
/
n
;
for
(
i
=
0
;
i
<
(
n
>>
2
);
i
++
)
s
->
tsin
[
i
]
=
sin
(
i
*
theta
);
}
#endif
s
->
rdft_calc
=
rdft_calc_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