vsrc_mandelbrot: detect edges in interpol()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4ebbcdb3eb
commit
a5dfedd381
@ -252,6 +252,8 @@ static int interpol(MBContext *mb, uint32_t *color, int x, int y, int linesize)
|
|||||||
int ipolcd= (cc + dc);
|
int ipolcd= (cc + dc);
|
||||||
if(FFABS(ipolab - ipolcd) > 5)
|
if(FFABS(ipolab - ipolcd) > 5)
|
||||||
return 0;
|
return 0;
|
||||||
|
if(FFABS(ac-bc)+FFABS(cc-dc) > 20)
|
||||||
|
return 0;
|
||||||
ipol |= ((ipolab + ipolcd + 2)/4)<<s;
|
ipol |= ((ipolab + ipolcd + 2)/4)<<s;
|
||||||
}
|
}
|
||||||
color[x + y*linesize]= ipol;
|
color[x + y*linesize]= ipol;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user