History

avfilter/vf_lagfun: add support for commands

Paul B Mahol committed 5 years ago

Commit 633e3441 parent f0dd5c02 files · +6 −1Browse files

Unified · Split

2 files
  1. doc/filters.texi +4 −0
  2. libavfilter/vf_lagfun.c +2 −1
doc/filters.texi+4−0
@@ -13458,6 +13458,10 @@ Set factor for decaying. Default is .95. Allowed range is from 0 to 1. · 13457 unmodified lines
13458Set which planes to filter. Default is all. Allowed range is from 0 to 15.13458Set which planes to filter. Default is all. Allowed range is from 0 to 15.
13459@end table13459@end table
13460 13460
13461@subsection Commands
13462
13463This filter supports the all above options as @ref{commands}.
13464
13461@section lenscorrection13465@section lenscorrection
13462 13466
13463Correct radial lens distortion13467Correct radial lens distortion
libavfilter/vf_lagfun.c+2−1
@@ -211,7 +211,7 @@ static av_cold void uninit(AVFilterContext *ctx) · 210 unmodified lines
211}211}
212 212
213#define OFFSET(x) offsetof(LagfunContext, x)213#define OFFSET(x) offsetof(LagfunContext, x)
214#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM214#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_RUNTIME_PARAM
215 215
216static const AVOption lagfun_options[] = {216static const AVOption lagfun_options[] = {
217 { "decay", "set decay", OFFSET(decay), AV_OPT_TYPE_FLOAT, {.dbl=.95}, 0, 1, FLAGS },217 { "decay", "set decay", OFFSET(decay), AV_OPT_TYPE_FLOAT, {.dbl=.95}, 0, 1, FLAGS },
@@ -249,4 +249,5 @@ AVFilter ff_vf_lagfun = { · 31 unmodified lines
249 .outputs = outputs,249 .outputs = outputs,
250 .inputs = inputs,250 .inputs = inputs,
251 .flags = AVFILTER_FLAG_SLICE_THREADS,251 .flags = AVFILTER_FLAG_SLICE_THREADS,
252 .process_command = ff_filter_process_command,
252};253};

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