lavfi/perms: switch to an AVOptions-based system.
This commit is contained in:
parent
5afd58fbb4
commit
8388e1e2b3
@ -6344,11 +6344,7 @@ Set read/write permissions for the output frames.
|
|||||||
These filters are mainly aimed at developers to test direct path in the
|
These filters are mainly aimed at developers to test direct path in the
|
||||||
following filter in the filtergraph.
|
following filter in the filtergraph.
|
||||||
|
|
||||||
The filters accept parameters as a list of @var{key}=@var{value} pairs,
|
The filters accept the following options:
|
||||||
separated by ":". If the key of the first options is omitted, the argument is
|
|
||||||
assumed to be the @var{mode}.
|
|
||||||
|
|
||||||
A description of the accepted parameters follows.
|
|
||||||
|
|
||||||
@table @option
|
@table @option
|
||||||
@item mode
|
@item mode
|
||||||
|
@ -681,6 +681,8 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
|
|||||||
!strcmp(filter->filter->name, "pad" ) ||
|
!strcmp(filter->filter->name, "pad" ) ||
|
||||||
!strcmp(filter->filter->name, "format") ||
|
!strcmp(filter->filter->name, "format") ||
|
||||||
!strcmp(filter->filter->name, "noformat") ||
|
!strcmp(filter->filter->name, "noformat") ||
|
||||||
|
!strcmp(filter->filter->name, "perms") ||
|
||||||
|
!strcmp(filter->filter->name, "aperms") ||
|
||||||
!strcmp(filter->filter->name, "resample") ||
|
!strcmp(filter->filter->name, "resample") ||
|
||||||
!strcmp(filter->filter->name, "showspectrum") ||
|
!strcmp(filter->filter->name, "showspectrum") ||
|
||||||
!strcmp(filter->filter->name, "silencedetect") ||
|
!strcmp(filter->filter->name, "silencedetect") ||
|
||||||
|
@ -111,8 +111,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *const shorthand[] = { "mode", NULL };
|
|
||||||
|
|
||||||
#if CONFIG_APERMS_FILTER
|
#if CONFIG_APERMS_FILTER
|
||||||
|
|
||||||
#define aperms_options options
|
#define aperms_options options
|
||||||
@ -143,7 +141,6 @@ AVFilter avfilter_af_aperms = {
|
|||||||
.inputs = aperms_inputs,
|
.inputs = aperms_inputs,
|
||||||
.outputs = aperms_outputs,
|
.outputs = aperms_outputs,
|
||||||
.priv_class = &aperms_class,
|
.priv_class = &aperms_class,
|
||||||
.shorthand = shorthand,
|
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_APERMS_FILTER */
|
#endif /* CONFIG_APERMS_FILTER */
|
||||||
|
|
||||||
@ -177,6 +174,5 @@ AVFilter avfilter_vf_perms = {
|
|||||||
.inputs = perms_inputs,
|
.inputs = perms_inputs,
|
||||||
.outputs = perms_outputs,
|
.outputs = perms_outputs,
|
||||||
.priv_class = &perms_class,
|
.priv_class = &perms_class,
|
||||||
.shorthand = shorthand,
|
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_PERMS_FILTER */
|
#endif /* CONFIG_PERMS_FILTER */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user