diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-10-14 20:22:20 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-10-14 20:26:23 +0200 |
commit | 890cef1ff6ebbcd14f107fedceed23aa3c80b087 (patch) | |
tree | 6acd1f37d77920ee51639f17d99bc53c3df99a92 /libavfilter/vf_fftfilt.c | |
parent | e1b820fa339a9cc3178105ff2c05611e8e751852 (diff) | |
download | ffmpeg-890cef1ff6ebbcd14f107fedceed23aa3c80b087.tar.gz |
avfilter/vf_fftfilt: export FFT arrays size
Diffstat (limited to 'libavfilter/vf_fftfilt.c')
-rw-r--r-- | libavfilter/vf_fftfilt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/vf_fftfilt.c b/libavfilter/vf_fftfilt.c index 28845a5013..37aa45ef8d 100644 --- a/libavfilter/vf_fftfilt.c +++ b/libavfilter/vf_fftfilt.c @@ -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; |