avfilter/vf_phase: add support for commands

This commit is contained in:
Paul B Mahol 2021-01-16 20:38:54 +01:00
parent e722b443e4
commit b7817f23c0
2 changed files with 6 additions and 1 deletions

View File

@ -15777,6 +15777,10 @@ Filter selects among @samp{t}, @samp{b} and @samp{p} using image analysis only.
@end table
@end table
@subsection Commands
This filter supports the all above options as @ref{commands}.
@section photosensitivity
Reduce various flashes in video, so to help users with epilepsy.

View File

@ -74,7 +74,7 @@ typedef struct PhaseContext {
} PhaseContext;
#define OFFSET(x) offsetof(PhaseContext, x)
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
#define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, 0, 0, FLAGS, unit }
static const AVOption phase_options[] = {
@ -245,4 +245,5 @@ AVFilter ff_vf_phase = {
.inputs = phase_inputs,
.outputs = phase_outputs,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
.process_command = ff_filter_process_command,
};