[FFmpeg-cvslog] avfilter/vf_vibrance: add support for commands

Paul B Mahol git at videolan.org
Fri Dec 27 22:32:02 EET 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Dec 27 21:31:04 2019 +0100| [6c883e214a1120938bb61caccb40e6ef62078add] | committer: Paul B Mahol

avfilter/vf_vibrance: add support for commands

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6c883e214a1120938bb61caccb40e6ef62078add
---

 doc/filters.texi          | 4 ++++
 libavfilter/vf_vibrance.c | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/doc/filters.texi b/doc/filters.texi
index 655a155c6a..57330d1fd9 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -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
 
+ at subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
 @anchor{vignette}
 @section vignette
 
diff --git a/libavfilter/vf_vibrance.c b/libavfilter/vf_vibrance.c
index aac61c0f10..8e1a55caca 100644
--- a/libavfilter/vf_vibrance.c
+++ b/libavfilter/vf_vibrance.c
@@ -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,
 };



More information about the ffmpeg-cvslog mailing list