You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02: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:
@@ -194,7 +194,7 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize,
|
|||||||
zi= 2*zr*zi + ci;
|
zi= 2*zr*zi + ci;
|
||||||
zr= t + cr;
|
zr= t + cr;
|
||||||
if(use_zyklus){
|
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;
|
break;
|
||||||
mb->zyklus[i][0]= zr;
|
mb->zyklus[i][0]= zr;
|
||||||
mb->zyklus[i][1]= zi;
|
mb->zyklus[i][1]= zi;
|
||||||
|
Reference in New Issue
Block a user