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
ea0f841a
Commit
ea0f841a
authored
Jan 07, 2003
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile fixes
Originally committed as revision 1411 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e1958604
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
27 deletions
+6
-27
fft-test.c
libavcodec/fft-test.c
+6
-27
No files found.
libavcodec/fft-test.c
View file @
ea0f841a
...
...
@@ -6,27 +6,6 @@
int
mm_flags
;
void
*
av_malloc
(
int
size
)
{
void
*
ptr
;
ptr
=
malloc
(
size
);
return
ptr
;
}
void
av_free
(
void
*
ptr
)
{
/* XXX: this test should not be needed on most libcs */
if
(
ptr
)
free
(
ptr
);
}
/* cannot call it directly because of 'void **' casting is not automatic */
void
__av_freep
(
void
**
ptr
)
{
av_free
(
*
ptr
);
*
ptr
=
NULL
;
}
/* reference fft */
#define MUL16(a,b) ((a) * (b))
...
...
@@ -209,7 +188,7 @@ int main(int argc, char **argv)
printf
(
"IMDCT"
);
else
printf
(
"MDCT"
);
mdct_init
(
m
,
fft_nbits
,
do_inverse
);
ff_
mdct_init
(
m
,
fft_nbits
,
do_inverse
);
}
else
{
if
(
do_inverse
)
printf
(
"IFFT"
);
...
...
@@ -233,12 +212,12 @@ int main(int argc, char **argv)
if
(
do_mdct
)
{
if
(
do_inverse
)
{
imdct_ref
((
float
*
)
tab_ref
,
(
float
*
)
tab1
,
fft_size
);
imdct_calc
(
m
,
tab2
,
(
float
*
)
tab1
,
tabtmp
);
ff_
imdct_calc
(
m
,
tab2
,
(
float
*
)
tab1
,
tabtmp
);
check_diff
((
float
*
)
tab_ref
,
tab2
,
fft_size
);
}
else
{
mdct_ref
((
float
*
)
tab_ref
,
(
float
*
)
tab1
,
fft_size
);
mdct_calc
(
m
,
tab2
,
(
float
*
)
tab1
,
tabtmp
);
ff_
mdct_calc
(
m
,
tab2
,
(
float
*
)
tab1
,
tabtmp
);
check_diff
((
float
*
)
tab_ref
,
tab2
,
fft_size
/
2
);
}
...
...
@@ -265,9 +244,9 @@ int main(int argc, char **argv)
for
(
it
=
0
;
it
<
nb_its
;
it
++
)
{
if
(
do_mdct
)
{
if
(
do_inverse
)
{
imdct_calc
(
m
,
(
float
*
)
tab
,
(
float
*
)
tab1
,
tabtmp
);
ff_
imdct_calc
(
m
,
(
float
*
)
tab
,
(
float
*
)
tab1
,
tabtmp
);
}
else
{
mdct_calc
(
m
,
(
float
*
)
tab
,
(
float
*
)
tab1
,
tabtmp
);
ff_
mdct_calc
(
m
,
(
float
*
)
tab
,
(
float
*
)
tab1
,
tabtmp
);
}
}
else
{
memcpy
(
tab
,
tab1
,
fft_size
*
sizeof
(
FFTComplex
));
...
...
@@ -286,7 +265,7 @@ int main(int argc, char **argv)
}
if
(
do_mdct
)
{
mdct_end
(
m
);
ff_
mdct_end
(
m
);
}
else
{
fft_end
(
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