History

avfilter/vf_swaprect: add support for commands

Paul B Mahol committed 5 years ago

Commit 73ff84c1 parent ca042672 files · +6 −1Browse files

Unified · Split

2 files
  1. doc/filters.texi +4 −0
  2. libavfilter/vf_swaprect.c +2 −1
doc/filters.texi+4−0
@@ -19168,6 +19168,10 @@ The timestamp expressed in seconds. It's NAN if the input timestamp is unknown. · 19167 unmodified lines
1916819168 the position in the file of the input frame, NAN if unknown
1916919169 @end table
1917019170
19171+@subsection Commands
19172+
19173+This filter supports the all above options as @ref{commands}.
19174+
1917119175 @section swapuv
1917219176 Swap U & V plane.
1917319177
libavfilter/vf_swaprect.c+2−1
@@ -43,7 +43,7 @@ typedef struct SwapRectContext { · 42 unmodified lines
4343 } SwapRectContext;
4444
4545 #define OFFSET(x) offsetof(SwapRectContext, x)
46−#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM
46+#define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
4747 static const AVOption swaprect_options[] = {
4848 { "w", "set rect width", OFFSET(w), AV_OPT_TYPE_STRING, {.str="w/2"}, 0, 0, .flags = FLAGS },
4949 { "h", "set rect height", OFFSET(h), AV_OPT_TYPE_STRING, {.str="h/2"}, 0, 0, .flags = FLAGS },
@@ -253,4 +253,5 @@ AVFilter ff_vf_swaprect = { · 203 unmodified lines
253253 .inputs = inputs,
254254 .outputs = outputs,
255255 .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
256+ .process_command = ff_filter_process_command,
256257 };

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