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
5919Generate a Mandelbrot set fractal, and progressively zoom towards the5919Generate a Mandelbrot set fractal, and progressively zoom towards the
5920point specified with @var{start_x} and @var{start_y}.5920point specified with @var{start_x} and @var{start_y}.
5921 5921
5922This source accepts a list of options in the form of5922This source accepts the following options:
5923@var{key}=@var{value} pairs separated by ":". A description of the
5924accepted options follows.
5925 5923
5926@table @option5924@table @option
5927 5925
libavfilter/avfilter.c+1−0
@@ -684,6 +684,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 683 unmodified lines
684 !strcmp(filter->filter->name, "lut" ) ||684 !strcmp(filter->filter->name, "lut" ) ||
685 !strcmp(filter->filter->name, "lutyuv" ) ||685 !strcmp(filter->filter->name, "lutyuv" ) ||
686 !strcmp(filter->filter->name, "lutrgb" ) ||686 !strcmp(filter->filter->name, "lutrgb" ) ||
687 !strcmp(filter->filter->name, "mandelbrot" ) ||
687 !strcmp(filter->filter->name, "negate" ) ||688 !strcmp(filter->filter->name, "negate" ) ||
688 !strcmp(filter->filter->name, "overlay" ) ||689 !strcmp(filter->filter->name, "overlay" ) ||
689 !strcmp(filter->filter->name, "pad" ) ||690 !strcmp(filter->filter->name, "pad" ) ||
libavfilter/vsrc_mandelbrot.c+0−6
@@ -122,13 +122,7 @@ AVFILTER_DEFINE_CLASS(mandelbrot); · 121 unmodified lines
122static av_cold int init(AVFilterContext *ctx, const char *args)122static av_cold int init(AVFilterContext *ctx, const char *args)
123{123{
124 MBContext *mb = ctx->priv;124 MBContext *mb = ctx->priv;
125 int err;
126 125
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;
132 mb->bailout *= mb->bailout;126 mb->bailout *= mb->bailout;
133 127
134 mb->start_scale /=mb->h;128 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