Menu

Commit [r2460]  Maximize  Restore  History

min = 2 * abs(*(frame+x+(y-1)*width) - *(frame+x+(y+1)*width)) is a lot

better (especially inside a double nested loop) than:
d = *(frame+x+(y-1)*width) - *(frame+x+(y+1)*width) ;
min = d < 0 ? -d:d;
d = *(frame+x+(y-1)*width) - *(frame+x+(y+1)*width) ;
min += d < 0 ? -d:d;
Also do a bit of tidying (unused/unneded ABS macro removed)

sms00 2004-11-05

changed /trunk/mjpeg_play/yuvdeinterlace/sinc_interpolation.c
/trunk/mjpeg_play/yuvdeinterlace/sinc_interpolation.c Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.