diff options
author | Giorgio Vazzana <mywing81@gmail.com> | 2011-11-13 00:20:34 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-13 01:27:30 +0100 |
commit | 459bba58d247fbb631f2847cc3147041276a9138 (patch) | |
tree | 40bfa9bd1d6f46b6926a047e6dadd418758cd065 | |
parent | 545ec935a4b4e0f032ebd975907b41f6fe4465c9 (diff) | |
download | ffmpeg-459bba58d247fbb631f2847cc3147041276a9138.tar.gz |
mandelbrot: add missing options to the parsing code
The following options were added: end_scale, end_pts, bailout, outer.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/vsrc_mandelbrot.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c index a7a39ae35d..6acbd8c353 100644 --- a/libavfilter/vsrc_mandelbrot.c +++ b/libavfilter/vsrc_mandelbrot.c @@ -73,10 +73,13 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) mb->start_scale=3.0; mb->end_scale=0.3; mb->end_pts=800; - mb->bailout=100; + mb->bailout=10; mb->outer= NORMALIZED_ITERATION_COUNT; if (args) - sscanf(args, "%127[^:]:%127[^:]:%d:%lf:%lf:%lf", frame_size, frame_rate, &mb->maxiter, &mb->start_x, &mb->start_y, &mb->start_scale); + sscanf(args, "%127[^:]:%127[^:]:%d:%lf:%lf:%lf:%lf:%lf:%lf:%d", frame_size, frame_rate, + &mb->maxiter, &mb->start_x, &mb->start_y, &mb->start_scale, &mb->end_scale, + &mb->end_pts, &mb->bailout, &mb->outer); + mb->bailout *= mb->bailout; if (av_parse_video_size(&mb->w, &mb->h, frame_size) < 0) { av_log(ctx, AV_LOG_ERROR, "Invalid frame size: %s\n", frame_size); |