mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-24 23:30:49 +00:00
mandelbrot: only check periodicity once for each period instead of twice.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2fee131b9e
commit
1d06608732
@ -194,7 +194,7 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize,
|
||||
zi= 2*zr*zi + ci;
|
||||
zr= t + cr;
|
||||
if(use_zyklus){
|
||||
if(i && mb->zyklus[i>>1][0]==zr && mb->zyklus[i>>1][1]==zi)
|
||||
if((i&1) && mb->zyklus[i>>1][0]==zr && mb->zyklus[i>>1][1]==zi)
|
||||
break;
|
||||
mb->zyklus[i][0]= zr;
|
||||
mb->zyklus[i][1]= zi;
|
||||
|
Loading…
Reference in New Issue
Block a user