#ifndef UTILS2D_H_INCLUDED #define UTILS2D_H_INCLUDED #include void outputRgb24Scanline( unsigned char *output, Pixel *scanline, int w ); void outputRgb24ScanlineDownsample2( unsigned char *output, Pixel *top, Pixel *bot, int inw ); inline bool threshEqual( double val1, double val2, double epsilon ) { double d = val1 - val2; if( d < 0.0 ) d = -d; return ( d < epsilon ); } #endif // UTILS2D_H_INCLUDED