History

avfilter/vf_threshold: add support for commands

Paul B Mahol committed 5 years ago

Commit 207e9b11 parent 6210cc82 files · +6 −1Browse files

Unified · Split

2 files
  1. doc/filters.texi +4 −0
  2. libavfilter/vf_threshold.c +2 −1
doc/filters.texi+4−0
@@ -19863,6 +19863,10 @@ otherwise fourth stream pixel component value will be picked. · 19862 unmodified lines
1986319863
1986419864 Using color source filter one can perform various types of thresholding:
1986519865
19866+@subsection Commands
19867+
19868+This filter supports the all options as @ref{commands}.
19869+
1986619870 @subsection Examples
1986719871
1986819872 @itemize
libavfilter/vf_threshold.c+2−1
@@ -34,7 +34,7 @@ · 33 unmodified lines
3434 #include "threshold.h"
3535
3636 #define OFFSET(x) offsetof(ThresholdContext, x)
37−#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
37+#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
3838
3939 static const AVOption threshold_options[] = {
4040 { "planes", "set planes to filter", OFFSET(planes), AV_OPT_TYPE_INT, {.i64=15}, 0, 15, FLAGS},
@@ -365,4 +365,5 @@ const AVFilter ff_vf_threshold = { · 324 unmodified lines
365365 .inputs = inputs,
366366 .outputs = outputs,
367367 .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS,
368+ .process_command = ff_filter_process_command,
368369 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t