History

lavfi/edgedetect: switch to an AVOptions-based system.

Clément Bœsch committed 13 years ago

Commit 1cdb9f41 parent 34610e13 files · +2 −8Browse files

Unified · Split

3 files
  1. doc/filters.texi +1 −1
  2. libavfilter/avfilter.c +1 −0
  3. libavfilter/vf_edgedetect.c +0 −7
doc/filters.texi+1−1
@@ -3008,7 +3008,7 @@ For more information about fontconfig, check: · 3007 unmodified lines
30083008
30093009 Detect and draw edges. The filter uses the Canny Edge Detection algorithm.
30103010
3011−This filter accepts the following optional named parameters:
3011+The filter accepts the following options:
30123012
30133013 @table @option
30143014 @item low, high
libavfilter/avfilter.c+1−0
@@ -667,6 +667,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 666 unmodified lines
667667 !strcmp(filter->filter->name, "drawbox" ) ||
668668 !strcmp(filter->filter->name, "drawtext" ) ||
669669 !strcmp(filter->filter->name, "ebur128" ) ||
670+ !strcmp(filter->filter->name, "edgedetect") ||
670671 !strcmp(filter->filter->name, "fade" ) ||
671672 !strcmp(filter->filter->name, "fieldorder") ||
672673 !strcmp(filter->filter->name, "fps" ) ||
libavfilter/vf_edgedetect.c+0−7
@@ -52,15 +52,8 @@ AVFILTER_DEFINE_CLASS(edgedetect); · 51 unmodified lines
5252
5353 static av_cold int init(AVFilterContext *ctx, const char *args)
5454 {
55− int ret;
5655 EdgeDetectContext *edgedetect = ctx->priv;
5756
58− edgedetect->class = &edgedetect_class;
59− av_opt_set_defaults(edgedetect);
60−
61− if ((ret = av_set_options_string(edgedetect, args, "=", ":")) < 0)
62− return ret;
63−
6457 edgedetect->low_u8 = edgedetect->low * 255. + .5;
6558 edgedetect->high_u8 = edgedetect->high * 255. + .5;
6659 return 0;

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