1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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>
This commit is contained in:
Giorgio Vazzana 2011-11-13 00:20:34 +01:00 committed by Michael Niedermayer
parent 545ec935a4
commit 459bba58d2

View File

@ -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);