[FFmpeg-cvslog] mandelbrot: add missing options to the parsing code
Giorgio Vazzana
git at videolan.org
Sun Nov 13 01:30:26 CET 2011
ffmpeg | branch: master | Giorgio Vazzana <mywing81 at gmail.com> | Sun Nov 13 00:20:34 2011 +0100| [459bba58d247fbb631f2847cc3147041276a9138] | committer: Michael Niedermayer
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 at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=459bba58d247fbb631f2847cc3147041276a9138
---
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 a7a39ae..6acbd8c 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);
More information about the ffmpeg-cvslog
mailing list