]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_bbox: add support for commands
authorPaul B Mahol <onemda@gmail.com>
Sun, 17 Jan 2021 11:22:28 +0000 (12:22 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sun, 17 Jan 2021 11:22:28 +0000 (12:22 +0100)
doc/filters.texi
libavfilter/vf_bbox.c

index fc2e2505669eaed1a034897eb1ec84fd21539efb..e4096a227ab409a395e47d2509511d4bb0a5ab32 100644 (file)
@@ -7144,6 +7144,10 @@ The filter accepts the following option:
 Set the minimal luminance value. Default is @code{16}.
 @end table
 
+@subsection Commands
+
+This filter supports the all above options as @ref{commands}.
+
 @section bilateral
 Apply bilateral filter, spatial smoothing while preserving edges.
 
index 5f429fe4cdd593fa7add3dfaaf8239dcc06b4125..acbb4ea16d6d157c17d3b5f58217886b5bf6ded2 100644 (file)
@@ -37,7 +37,7 @@ typedef struct BBoxContext {
 } BBoxContext;
 
 #define OFFSET(x) offsetof(BBoxContext, x)
-#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
+#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
 
 static const AVOption bbox_options[] = {
     { "min_val", "set minimum luminance value for bounding box", OFFSET(min_val), AV_OPT_TYPE_INT, { .i64 = 16 }, 0, UINT16_MAX, FLAGS },
@@ -162,4 +162,5 @@ AVFilter ff_vf_bbox = {
     .inputs        = bbox_inputs,
     .outputs       = bbox_outputs,
     .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
+    .process_command = ff_filter_process_command,
 };