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

index ca12bf1b917ac30943b28ca0fb4608155aea02bc..655a155c6a2169dd15e299df46a47d6354afbf34 100644 (file)
@@ -12188,6 +12188,10 @@ Default value is @code{none}.
 Swap luma/chroma/alpha fields. Exchange even & odd lines. Default value is @code{0}.
 @end table
 
+@subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
 @section inflate
 
 Apply inflate effect to the video.
index ae0cc1938a375cc4e66195b7dd6e6676f4250075..6cd5f89f767a61eda4eabf1a054c7a98d4828f97 100644 (file)
@@ -46,7 +46,7 @@ typedef struct IlContext {
 } IlContext;
 
 #define OFFSET(x) offsetof(IlContext, 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 il_options[] = {
     {"luma_mode",   "select luma mode", OFFSET(luma_mode), AV_OPT_TYPE_INT, {.i64=MODE_NONE}, MODE_NONE, MODE_DEINTERLEAVE, FLAGS, "luma_mode"},
@@ -210,4 +210,5 @@ AVFilter ff_vf_il = {
     .outputs       = outputs,
     .priv_class    = &il_class,
     .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
+    .process_command = ff_filter_process_command,
 };