]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_maskedthreshold: add support for commands
authorPaul B Mahol <onemda@gmail.com>
Sat, 19 Dec 2020 22:05:36 +0000 (23:05 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sat, 19 Dec 2020 22:08:09 +0000 (23:08 +0100)
doc/filters.texi
libavfilter/vf_maskedthreshold.c

index edb17579747545f8933530507073ff56cf0be923..89391deecb80e5dfbcabac6a478a59fa1af7f539 100644 (file)
@@ -14055,6 +14055,10 @@ copied from second stream.
 By default value 0xf, all planes will be processed.
 @end table
 
+@subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
 @section maskfun
 Create mask from input video.
 
index d925819f6a76abb92a498cdbb4b6951bb7a58c89..5a6ebb1a07d099be564b44466565e82b27716ba4 100644 (file)
@@ -43,7 +43,7 @@ typedef struct MaskedThresholdContext {
 } MaskedThresholdContext;
 
 #define OFFSET(x) offsetof(MaskedThresholdContext, x)
-#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
+#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
 
 typedef struct ThreadData {
     AVFrame *src, *ref, *dst;
@@ -295,4 +295,5 @@ AVFilter ff_vf_maskedthreshold = {
     .inputs        = maskedthreshold_inputs,
     .outputs       = maskedthreshold_outputs,
     .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS,
+    .process_command = ff_filter_process_command,
 };