History

avfilter/vf_maskedthreshold: add support for commands

Paul B Mahol committed 5 years ago

Commit 3336ca41 parent 64e572d2 files · +6 −1Browse files

Unified · Split

2 files
  1. doc/filters.texi +4 −0
  2. libavfilter/vf_maskedthreshold.c +2 −1
doc/filters.texi+4−0
@@ -14055,6 +14055,10 @@ copied from second stream. · 14054 unmodified lines
1405514055 By default value 0xf, all planes will be processed.
1405614056 @end table
1405714057
14058+@subsection Commands
14059+
14060+This filter supports the all above options as @ref{commands}.
14061+
1405814062 @section maskfun
1405914063 Create mask from input video.
1406014064
libavfilter/vf_maskedthreshold.c+2−1
@@ -43,7 +43,7 @@ typedef struct MaskedThresholdContext { · 42 unmodified lines
4343 } MaskedThresholdContext;
4444
4545 #define OFFSET(x) offsetof(MaskedThresholdContext, x)
46−#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
46+#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
4747
4848 typedef struct ThreadData {
4949 AVFrame *src, *ref, *dst;
@@ -295,4 +295,5 @@ AVFilter ff_vf_maskedthreshold = { · 245 unmodified lines
295295 .inputs = maskedthreshold_inputs,
296296 .outputs = maskedthreshold_outputs,
297297 .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS,
298+ .process_command = ff_filter_process_command,
298299 };

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