From 7668b6832d3c1fd5555be5f4cf6f8e9930dd9c4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Thu, 11 Apr 2013 01:01:49 +0200 Subject: [PATCH] lavfi/idet: switch to an AVOptions-based system. --- doc/filters.texi | 9 +++++++++ libavfilter/avfilter.c | 1 + libavfilter/vf_idet.c | 3 --- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 001cd50a2e..96682486ce 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -3730,6 +3730,15 @@ Detect video interlacing type. This filter tries to detect if the input is interlaced or progressive, top or bottom field first. +The filter accepts the following options: + +@table @option +@item intl_thres +Set interlacing threshold. +@item prog_thres +Set progressive threshold. +@end table + @section il Deinterleave or interleave fields. diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index e8f836a9a6..8db477cc58 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -682,6 +682,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque !strcmp(filter->filter->name, "histeq" ) || !strcmp(filter->filter->name, "histogram" ) || !strcmp(filter->filter->name, "hqdn3d" ) || + !strcmp(filter->filter->name, "idet" ) || !strcmp(filter->filter->name, "ocv" ) || !strcmp(filter->filter->name, "life" ) || !strcmp(filter->filter->name, "lut" ) || diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c index 275302f16c..bef7f3ee3d 100644 --- a/libavfilter/vf_idet.c +++ b/libavfilter/vf_idet.c @@ -304,8 +304,6 @@ static const AVFilterPad idet_outputs[] = { { NULL } }; -static const char *const shorthand[] = { "intl_thres", "prog_thres", NULL }; - AVFilter avfilter_vf_idet = { .name = "idet", .description = NULL_IF_CONFIG_SMALL("Interlace detect Filter."), @@ -317,5 +315,4 @@ AVFilter avfilter_vf_idet = { .inputs = idet_inputs, .outputs = idet_outputs, .priv_class = &idet_class, - .shorthand = shorthand, };