History

avfilter/vf_threshold: add support for commands

Paul B Mahol committed 5 years ago

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

Showing the changes to libavfilter (1 of 2 files). Show all

Unified · Split

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