History

avfilter/vf_fftfilt: export FFT arrays size

Paul B Mahol committed 5 years ago

Commit 890cef11 parent e1b820f2 files · +8 −2Browse files

Unified · Split

2 files
  1. doc/filters.texi +4 −0
  2. libavfilter/vf_fftfilt.c +4 −2
doc/filters.texi+4−0
@@ -11963,6 +11963,10 @@ The width and height of the image. · 11962 unmodified lines
11963 11963
11964@item N11964@item N
11965The number of input frame, starting from 0.11965The number of input frame, starting from 0.
11966
11967@item WS
11968@item HS
11969The size of FFT array for horizontal and vertical processing.
11966@end table11970@end table
11967 11971
11968@subsection Examples11972@subsection Examples
libavfilter/vf_fftfilt.c+4−2
@@ -71,8 +71,8 @@ typedef struct FFTFILTContext { · 70 unmodified lines
71 int (*irdft_horizontal)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);71 int (*irdft_horizontal)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
72} FFTFILTContext;72} FFTFILTContext;
73 73
74static const char *const var_names[] = { "X", "Y", "W", "H", "N", NULL };74static const char *const var_names[] = { "X", "Y", "W", "H", "N", "WS", "HS", NULL };
75enum { VAR_X, VAR_Y, VAR_W, VAR_H, VAR_N, VAR_VARS_NB };75enum { VAR_X, VAR_Y, VAR_W, VAR_H, VAR_N, VAR_WS, VAR_HS, VAR_VARS_NB };
76 76
77enum { Y = 0, U, V };77enum { Y = 0, U, V };
78 78
@@ -268,6 +268,8 @@ static void do_eval(FFTFILTContext *s, AVFilterLink *inlink, int plane) · 189 unmodified lines
268 values[VAR_N] = inlink->frame_count_out;268 values[VAR_N] = inlink->frame_count_out;
269 values[VAR_W] = s->planewidth[plane];269 values[VAR_W] = s->planewidth[plane];
270 values[VAR_H] = s->planeheight[plane];270 values[VAR_H] = s->planeheight[plane];
271 values[VAR_WS] = s->rdft_hlen[plane];
272 values[VAR_HS] = s->rdft_vlen[plane];
271 273
272 for (i = 0; i < s->rdft_hlen[plane]; i++) {274 for (i = 0; i < s->rdft_hlen[plane]; i++) {
273 values[VAR_X] = i;275 values[VAR_X] = i;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t