Unified · Split
| @@ -73,11 +73,12 @@ typedef struct FFTdnoizContext { · 72 unmodified lines | ||
| 73 | 73 | |
| 74 | 74 | #define OFFSET(x) offsetof(FFTdnoizContext, x) |
| 75 | 75 | #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
| 76 | +#define TFLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM | |
| 76 | 77 | static const AVOption fftdnoiz_options[] = { |
| 77 | 78 | { "sigma", "set denoise strength", |
| 78 | − OFFSET(sigma), AV_OPT_TYPE_FLOAT, {.dbl=1}, 0, 30, .flags = FLAGS }, | |
| 79 | + OFFSET(sigma), AV_OPT_TYPE_FLOAT, {.dbl=1}, 0, 30, .flags = TFLAGS }, | |
| 79 | 80 | { "amount", "set amount of denoising", |
| 80 | − OFFSET(amount), AV_OPT_TYPE_FLOAT, {.dbl=1}, 0.01, 1, .flags = FLAGS }, | |
| 81 | + OFFSET(amount), AV_OPT_TYPE_FLOAT, {.dbl=1}, 0.01, 1, .flags = TFLAGS }, | |
| 81 | 82 | { "block", "set block log2(size)", |
| 82 | 83 | OFFSET(block_bits), AV_OPT_TYPE_INT, {.i64=4}, 3, 6, .flags = FLAGS }, |
| 83 | 84 | { "overlap", "set block overlap", |
| @@ -87,7 +88,7 @@ static const AVOption fftdnoiz_options[] = { · 3 unmodified lines | ||
| 87 | 88 | { "next", "set number of next frames for temporal denoising", |
| 88 | 89 | OFFSET(nb_next), AV_OPT_TYPE_INT, {.i64=0}, 0, 1, .flags = FLAGS }, |
| 89 | 90 | { "planes", "set planes to filter", |
| 90 | − OFFSET(planesf), AV_OPT_TYPE_INT, {.i64=7}, 0, 15, .flags = FLAGS }, | |
| 91 | + OFFSET(planesf), AV_OPT_TYPE_INT, {.i64=7}, 0, 15, .flags = TFLAGS }, | |
| 91 | 92 | { NULL } |
| 92 | 93 | }; |
| 93 | 94 | |
| @@ -758,4 +759,5 @@ const AVFilter ff_vf_fftdnoiz = { · 664 unmodified lines | ||
| 758 | 759 | .priv_class = &fftdnoiz_class, |
| 759 | 760 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | |
| 760 | 761 | AVFILTER_FLAG_SLICE_THREADS, |
| 762 | + .process_command = ff_filter_process_command, | |
| 761 | 763 | }; |