]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_vibrance: add support for commands
authorPaul B Mahol <onemda@gmail.com>
Fri, 27 Dec 2019 20:31:04 +0000 (21:31 +0100)
committerPaul B Mahol <onemda@gmail.com>
Fri, 27 Dec 2019 20:31:04 +0000 (21:31 +0100)
doc/filters.texi
libavfilter/vf_vibrance.c

index 655a155c6a2169dd15e299df46a47d6354afbf34..57330d1fd909d78fe4782addcb3d121836d3861a 100644 (file)
@@ -19335,6 +19335,10 @@ If @code{intensity} is negative and this is set to 1, colors will change,
 otherwise colors will be less saturated, more towards gray.
 @end table
 
+@subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
 @anchor{vignette}
 @section vignette
 
index aac61c0f10848789df0659f206a778745d27056c..8e1a55caca875aef03ad0aa7d6e09eea6a1bbb2c 100644 (file)
@@ -224,7 +224,7 @@ static const AVFilterPad vibrance_outputs[] = {
 };
 
 #define OFFSET(x) offsetof(VibranceContext, x)
-#define VF AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
+#define VF AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
 
 static const AVOption vibrance_options[] = {
     { "intensity", "set the intensity value",   OFFSET(intensity),  AV_OPT_TYPE_FLOAT, {.dbl=0},       -2,  2, VF },
@@ -249,4 +249,5 @@ AVFilter ff_vf_vibrance = {
     .inputs        = vibrance_inputs,
     .outputs       = vibrance_outputs,
     .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
+    .process_command = ff_filter_process_command,
 };