[FFmpeg-cvslog] avfilter/vf_phase: add support for commands
Paul B Mahol
git at videolan.org
Sat Jan 16 21:49:05 EET 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Jan 16 20:38:54 2021 +0100| [b7817f23c0e60082a546f441c783a70413fd904f] | committer: Paul B Mahol
avfilter/vf_phase: add support for commands
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b7817f23c0e60082a546f441c783a70413fd904f
---
doc/filters.texi | 4 ++++
libavfilter/vf_phase.c | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/doc/filters.texi b/doc/filters.texi
index 93fdd1ed44..fc2e250566 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -15777,6 +15777,10 @@ Filter selects among @samp{t}, @samp{b} and @samp{p} using image analysis only.
@end table
@end table
+ at 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.
diff --git a/libavfilter/vf_phase.c b/libavfilter/vf_phase.c
index 8536444db7..d4f580a609 100644
--- a/libavfilter/vf_phase.c
+++ b/libavfilter/vf_phase.c
@@ -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,
};
More information about the ffmpeg-cvslog
mailing list