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
6e1b0cda
Commit
6e1b0cda
authored
Apr 01, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fft-test: fix all pointer type warnings.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
87688727
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
fft-test.c
libavcodec/fft-test.c
+5
-5
No files found.
libavcodec/fft-test.c
View file @
6e1b0cda
...
@@ -145,7 +145,7 @@ static void mdct_ref(FFTSample *output, FFTSample *input, int nbits)
...
@@ -145,7 +145,7 @@ static void mdct_ref(FFTSample *output, FFTSample *input, int nbits)
}
}
#if CONFIG_FFT_FLOAT
#if CONFIG_FFT_FLOAT
static
void
idct_ref
(
float
*
output
,
float
*
input
,
int
nbits
)
static
void
idct_ref
(
FFTSample
*
output
,
FFTSample
*
input
,
int
nbits
)
{
{
int
n
=
1
<<
nbits
;
int
n
=
1
<<
nbits
;
int
k
,
i
;
int
k
,
i
;
...
@@ -161,7 +161,7 @@ static void idct_ref(float *output, float *input, int nbits)
...
@@ -161,7 +161,7 @@ static void idct_ref(float *output, float *input, int nbits)
output
[
i
]
=
2
*
s
/
n
;
output
[
i
]
=
2
*
s
/
n
;
}
}
}
}
static
void
dct_ref
(
float
*
output
,
float
*
input
,
int
nbits
)
static
void
dct_ref
(
FFTSample
*
output
,
FFTSample
*
input
,
int
nbits
)
{
{
int
n
=
1
<<
nbits
;
int
n
=
1
<<
nbits
;
int
k
,
i
;
int
k
,
i
;
...
@@ -401,11 +401,11 @@ int main(int argc, char **argv)
...
@@ -401,11 +401,11 @@ int main(int argc, char **argv)
break
;
break
;
case
TRANSFORM_DCT
:
case
TRANSFORM_DCT
:
memcpy
(
tab
,
tab1
,
fft_size
*
sizeof
(
FFTComplex
));
memcpy
(
tab
,
tab1
,
fft_size
*
sizeof
(
FFTComplex
));
d
->
dct_calc
(
d
,
tab
);
d
->
dct_calc
(
d
,
(
FFTSample
*
)
tab
);
if
(
do_inverse
)
{
if
(
do_inverse
)
{
idct_ref
(
tab_ref
,
tab1
,
fft_nbits
);
idct_ref
(
(
FFTSample
*
)
tab_ref
,
(
FFTSample
*
)
tab1
,
fft_nbits
);
}
else
{
}
else
{
dct_ref
(
tab_ref
,
tab1
,
fft_nbits
);
dct_ref
(
(
FFTSample
*
)
tab_ref
,
(
FFTSample
*
)
tab1
,
fft_nbits
);
}
}
err
=
check_diff
((
float
*
)
tab_ref
,
(
float
*
)
tab
,
fft_size
,
1
.
0
);
err
=
check_diff
((
float
*
)
tab_ref
,
(
float
*
)
tab
,
fft_size
,
1
.
0
);
break
;
break
;
...
...
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