]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_phase: add support for commands
authorPaul B Mahol <onemda@gmail.com>
Sat, 16 Jan 2021 19:38:54 +0000 (20:38 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sat, 16 Jan 2021 19:47:52 +0000 (20:47 +0100)
doc/filters.texi
libavfilter/vf_phase.c

index 93fdd1ed44fa34551a9cc9e9a20eea6e309a1363..fc2e2505669eaed1a034897eb1ec84fd21539efb 100644 (file)
@@ -15777,6 +15777,10 @@ Filter selects among @samp{t}, @samp{b} and @samp{p} using image analysis only.
 @end table
 @end table
 
+@subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
 @section photosensitivity
 Reduce various flashes in video, so to help users with epilepsy.
 
index 8536444db75ee41a4210986a0b415ef77651187b..d4f580a60947fbe89ab0a7dc4b726cb1ad8c65f5 100644 (file)
@@ -74,7 +74,7 @@ typedef struct PhaseContext {
 } PhaseContext;
 
 #define OFFSET(x) offsetof(PhaseContext, 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
 #define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, 0, 0, FLAGS, unit }
 
 static const AVOption phase_options[] = {
@@ -245,4 +245,5 @@ AVFilter ff_vf_phase = {
     .inputs        = phase_inputs,
     .outputs       = phase_outputs,
     .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
+    .process_command = ff_filter_process_command,
 };