History

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

Clément Bœsch committed 13 years ago

Commit 791da471 parent bd85fee3 files · +2 −9Browse files

Unified · Split

3 files
  1. doc/filters.texi +1 −3
  2. libavfilter/avfilter.c +1 −0
  3. libavfilter/vsrc_mandelbrot.c +0 −6
doc/filters.texi+1−3
@@ -5919,9 +5919,7 @@ cellauto=p='@@@@ @@ @@@@':s=100x400:full=0:rule=18 · 5918 unmodified lines
59195919 Generate a Mandelbrot set fractal, and progressively zoom towards the
59205920 point specified with @var{start_x} and @var{start_y}.
59215921
5922−This source accepts a list of options in the form of
5923−@var{key}=@var{value} pairs separated by ":". A description of the
5924−accepted options follows.
5922+This source accepts the following options:
59255923
59265924 @table @option
59275925
libavfilter/avfilter.c+1−0
@@ -684,6 +684,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 683 unmodified lines
684684 !strcmp(filter->filter->name, "lut" ) ||
685685 !strcmp(filter->filter->name, "lutyuv" ) ||
686686 !strcmp(filter->filter->name, "lutrgb" ) ||
687+ !strcmp(filter->filter->name, "mandelbrot" ) ||
687688 !strcmp(filter->filter->name, "negate" ) ||
688689 !strcmp(filter->filter->name, "overlay" ) ||
689690 !strcmp(filter->filter->name, "pad" ) ||
libavfilter/vsrc_mandelbrot.c+0−6
@@ -122,13 +122,7 @@ AVFILTER_DEFINE_CLASS(mandelbrot); · 121 unmodified lines
122122 static av_cold int init(AVFilterContext *ctx, const char *args)
123123 {
124124 MBContext *mb = ctx->priv;
125− int err;
126125
127− mb->class = &mandelbrot_class;
128− av_opt_set_defaults(mb);
129−
130− if ((err = (av_set_options_string(mb, args, "=", ":"))) < 0)
131− return err;
132126 mb->bailout *= mb->bailout;
133127
134128 mb->start_scale /=mb->h;

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