History

avfilter/vf_maskedminmax: add support for commands

Paul B Mahol committed 5 years ago

Commit 64e572d1 parent 4fcfecd2 files · +12 −2Browse files

Unified · Split

2 files
  1. doc/filters.texi +8 −0
  2. libavfilter/vf_maskedminmax.c +4 −2
doc/filters.texi+8−0
@@ -13991,6 +13991,10 @@ copied from first stream. · 13990 unmodified lines
1399113991 By default value 0xf, all planes will be processed.
1399213992 @end table
1399313993
13994+@subsection Commands
13995+
13996+This filter supports the all above options as @ref{commands}.
13997+
1399413998 @section maskedmerge
1399513999
1399614000 Merge the first input stream with the second input stream using per pixel
@@ -14026,6 +14030,10 @@ copied from first stream. · 29 unmodified lines
1402614030 By default value 0xf, all planes will be processed.
1402714031 @end table
1402814032
14033+@subsection Commands
14034+
14035+This filter supports the all above options as @ref{commands}.
14036+
1402914037 @section maskedthreshold
1403014038 Pick pixels comparing absolute difference of two video streams with fixed
1403114039 threshold.
libavfilter/vf_maskedminmax.c+4−2
@@ -28,7 +28,7 @@ · 27 unmodified lines
2828 #include "framesync.h"
2929
3030 #define OFFSET(x) offsetof(MaskedMinMaxContext, x)
31−#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
31+#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
3232
3333 typedef struct ThreadData {
3434 AVFrame *src, *f1, *f2, *dst;
@@ -50,7 +50,7 @@ typedef struct MaskedMinMaxContext { · 15 unmodified lines
5050 } MaskedMinMaxContext;
5151
5252 static const AVOption maskedminmax_options[] = {
53− { "planes", "set planes", OFFSET(planes), AV_OPT_TYPE_INT, {.i64=0xF}, 0, 0xF, FLAGS },
53+ { "planes", "set planes", OFFSET(planes), AV_OPT_TYPE_INT, {.i64=0xF}, 0, 0xF, FLAGS },
5454 { NULL }
5555 };
5656
@@ -340,6 +340,7 @@ AVFilter ff_vf_maskedmin = { · 283 unmodified lines
340340 .inputs = maskedminmax_inputs,
341341 .outputs = maskedminmax_outputs,
342342 .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS,
343+ .process_command = ff_filter_process_command,
343344 };
344345
345346 #define maskedmax_options maskedminmax_options
@@ -357,4 +358,5 @@ AVFilter ff_vf_maskedmax = { · 11 unmodified lines
357358 .inputs = maskedminmax_inputs,
358359 .outputs = maskedminmax_outputs,
359360 .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS,
361+ .process_command = ff_filter_process_command,
360362 };

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