]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_despill: add support for commands
authorPaul B Mahol <onemda@gmail.com>
Wed, 18 Nov 2020 16:34:52 +0000 (17:34 +0100)
committerPaul B Mahol <onemda@gmail.com>
Wed, 18 Nov 2020 17:03:15 +0000 (18:03 +0100)
doc/filters.texi
libavfilter/vf_despill.c

index 375a82a9b2a1482e497b9607f7ffdcb1c9527aa8..a2d1a3aa9f33b8358ee2695a98098128e4e5c6c7 100644 (file)
@@ -9410,6 +9410,10 @@ Controls brightness of spill area, preserving colors.
 Modify alpha from generated spillmap.
 @end table
 
+@subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
 @section detelecine
 
 Apply an exact inverse of the telecine operation. It requires a predefined
index 64c27f40609269d430a183cc0176e3f756b02fdf..bf6c7ca2cbb4e514cb8ba040263efee8a7366a4f 100644 (file)
@@ -153,7 +153,7 @@ static const AVFilterPad despill_outputs[] = {
 };
 
 #define OFFSET(x) offsetof(DespillContext, 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
 
 static const AVOption despill_options[] = {
     { "type",       "set the screen type",     OFFSET(type),        AV_OPT_TYPE_INT,     {.i64=0},     0,   1, FLAGS, "type" },
@@ -179,5 +179,6 @@ AVFilter ff_vf_despill = {
     .query_formats = query_formats,
     .inputs        = despill_inputs,
     .outputs       = despill_outputs,
+    .process_command = ff_filter_process_command,
     .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
 };