avfilter/vf_phase: add support for commands
This commit is contained in:
parent
e722b443e4
commit
b7817f23c0
@ -15777,6 +15777,10 @@ Filter selects among @samp{t}, @samp{b} and @samp{p} using image analysis only.
|
|||||||
@end table
|
@end table
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
|
@subsection Commands
|
||||||
|
|
||||||
|
This filter supports the all above options as @ref{commands}.
|
||||||
|
|
||||||
@section photosensitivity
|
@section photosensitivity
|
||||||
Reduce various flashes in video, so to help users with epilepsy.
|
Reduce various flashes in video, so to help users with epilepsy.
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ typedef struct PhaseContext {
|
|||||||
} PhaseContext;
|
} PhaseContext;
|
||||||
|
|
||||||
#define OFFSET(x) offsetof(PhaseContext, x)
|
#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 }
|
#define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, 0, 0, FLAGS, unit }
|
||||||
|
|
||||||
static const AVOption phase_options[] = {
|
static const AVOption phase_options[] = {
|
||||||
@ -245,4 +245,5 @@ AVFilter ff_vf_phase = {
|
|||||||
.inputs = phase_inputs,
|
.inputs = phase_inputs,
|
||||||
.outputs = phase_outputs,
|
.outputs = phase_outputs,
|
||||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
|
||||||
|
.process_command = ff_filter_process_command,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user