mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-28 18:23:08 +00:00
mandelbrot: fix typo that led to hardcoded max iteration count.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ef4f403159
commit
0e5b05134b
@ -55,7 +55,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
|
|||||||
AVRational frame_rate_q;
|
AVRational frame_rate_q;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
mb->maxiter=1024;
|
mb->maxiter=256;
|
||||||
mb->start_x=-2.0;
|
mb->start_x=-2.0;
|
||||||
mb->start_y=-1.5;
|
mb->start_y=-1.5;
|
||||||
mb->start_scale=3.0;
|
mb->start_scale=3.0;
|
||||||
@ -127,7 +127,7 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize,
|
|||||||
double zi=ci;
|
double zi=ci;
|
||||||
uint32_t c=0;
|
uint32_t c=0;
|
||||||
|
|
||||||
for(i=0; i<256; i++){
|
for(i=0; i<mb->maxiter; i++){
|
||||||
double t;
|
double t;
|
||||||
if(zr*zr + zi*zi > mb->bailout){
|
if(zr*zr + zi*zi > mb->bailout){
|
||||||
switch(mb->outer){
|
switch(mb->outer){
|
||||||
|
Loading…
Reference in New Issue
Block a user