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
166621ab
Commit
166621ab
authored
Mar 07, 2010
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: use public fft interface
Originally committed as revision 22292 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
c7094831
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ffplay.c
ffplay.c
+5
-5
No files found.
ffplay.c
View file @
166621ab
...
...
@@ -30,7 +30,7 @@
#include "libavcodec/audioconvert.h"
#include "libavcodec/colorspace.h"
#include "libavcodec/opt.h"
#include "libavcodec/fft.h"
#include "libavcodec/
av
fft.h"
#if CONFIG_AVFILTER
# include "libavfilter/avfilter.h"
...
...
@@ -165,7 +165,7 @@ typedef struct VideoState {
int16_t
sample_array
[
SAMPLE_ARRAY_SIZE
];
int
sample_array_index
;
int
last_i_start
;
RDFTContext
rdft
;
RDFTContext
*
rdft
;
int
rdft_bits
;
int
xpos
;
...
...
@@ -905,8 +905,8 @@ static void video_audio_display(VideoState *s)
}
else
{
nb_display_channels
=
FFMIN
(
nb_display_channels
,
2
);
if
(
rdft_bits
!=
s
->
rdft_bits
){
ff_rdft_end
(
&
s
->
rdft
);
ff_rdft_init
(
&
s
->
rdft
,
rdft_bits
,
DFT_R2C
);
av_rdft_end
(
s
->
rdft
);
s
->
rdft
=
av_rdft_init
(
rdft_bits
,
DFT_R2C
);
s
->
rdft_bits
=
rdft_bits
;
}
{
...
...
@@ -920,7 +920,7 @@ static void video_audio_display(VideoState *s)
if
(
i
>=
SAMPLE_ARRAY_SIZE
)
i
-=
SAMPLE_ARRAY_SIZE
;
}
ff_rdft_calc
(
&
s
->
rdft
,
data
[
ch
]);
av_rdft_calc
(
s
->
rdft
,
data
[
ch
]);
}
//least efficient way to do this, we should of course directly access it but its more than fast enough
for
(
y
=
0
;
y
<
s
->
height
;
y
++
){
...
...
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