Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
890cef1f
Commit
890cef1f
authored
Oct 14, 2021
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_fftfilt: export FFT arrays size
parent
e1b820fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
filters.texi
doc/filters.texi
+4
-0
vf_fftfilt.c
libavfilter/vf_fftfilt.c
+4
-2
No files found.
doc/filters.texi
View file @
890cef1f
...
...
@@ -11963,6 +11963,10 @@ The width and height of the image.
@item N
The number of input frame, starting from 0.
@item WS
@item HS
The size of FFT array for horizontal and vertical processing.
@end table
@subsection Examples
...
...
libavfilter/vf_fftfilt.c
View file @
890cef1f
...
...
@@ -71,8 +71,8 @@ typedef struct FFTFILTContext {
int
(
*
irdft_horizontal
)(
AVFilterContext
*
ctx
,
void
*
arg
,
int
jobnr
,
int
nb_jobs
);
}
FFTFILTContext
;
static
const
char
*
const
var_names
[]
=
{
"X"
,
"Y"
,
"W"
,
"H"
,
"N"
,
NULL
};
enum
{
VAR_X
,
VAR_Y
,
VAR_W
,
VAR_H
,
VAR_N
,
VAR_VARS_NB
};
static
const
char
*
const
var_names
[]
=
{
"X"
,
"Y"
,
"W"
,
"H"
,
"N"
,
"WS"
,
"HS"
,
NULL
};
enum
{
VAR_X
,
VAR_Y
,
VAR_W
,
VAR_H
,
VAR_N
,
VAR_
WS
,
VAR_HS
,
VAR_
VARS_NB
};
enum
{
Y
=
0
,
U
,
V
};
...
...
@@ -268,6 +268,8 @@ static void do_eval(FFTFILTContext *s, AVFilterLink *inlink, int plane)
values
[
VAR_N
]
=
inlink
->
frame_count_out
;
values
[
VAR_W
]
=
s
->
planewidth
[
plane
];
values
[
VAR_H
]
=
s
->
planeheight
[
plane
];
values
[
VAR_WS
]
=
s
->
rdft_hlen
[
plane
];
values
[
VAR_HS
]
=
s
->
rdft_vlen
[
plane
];
for
(
i
=
0
;
i
<
s
->
rdft_hlen
[
plane
];
i
++
)
{
values
[
VAR_X
]
=
i
;
...
...
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