Browse Source

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

tags/n2.0
Clément Bœsch 13 years ago
parent
commit
791da4706c
3 changed files with 2 additions and 9 deletions
  1. +1
    -3
      doc/filters.texi
  2. +1
    -0
      libavfilter/avfilter.c
  3. +0
    -6
      libavfilter/vsrc_mandelbrot.c

+ 1
- 3
doc/filters.texi View File

@@ -5919,9 +5919,7 @@ cellauto=p='@@@@ @@ @@@@':s=100x400:full=0:rule=18
Generate a Mandelbrot set fractal, and progressively zoom towards the
point specified with @var{start_x} and @var{start_y}.

This source accepts a list of options in the form of
@var{key}=@var{value} pairs separated by ":". A description of the
accepted options follows.
This source accepts the following options:

@table @option



+ 1
- 0
libavfilter/avfilter.c View File

@@ -684,6 +684,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
!strcmp(filter->filter->name, "lut" ) ||
!strcmp(filter->filter->name, "lutyuv" ) ||
!strcmp(filter->filter->name, "lutrgb" ) ||
!strcmp(filter->filter->name, "mandelbrot" ) ||
!strcmp(filter->filter->name, "negate" ) ||
!strcmp(filter->filter->name, "overlay" ) ||
!strcmp(filter->filter->name, "pad" ) ||


+ 0
- 6
libavfilter/vsrc_mandelbrot.c View File

@@ -122,13 +122,7 @@ AVFILTER_DEFINE_CLASS(mandelbrot);
static av_cold int init(AVFilterContext *ctx, const char *args)
{
MBContext *mb = ctx->priv;
int err;

mb->class = &mandelbrot_class;
av_opt_set_defaults(mb);

if ((err = (av_set_options_string(mb, args, "=", ":"))) < 0)
return err;
mb->bailout *= mb->bailout;

mb->start_scale /=mb->h;


Loading…
Cancel
Save