quantize_fs_dither(unsigned width,short * errorptr,int dir)1 quantize_fs_dither (unsigned width, short *errorptr, int dir) 2 { 3 short bpreverr; 4 unsigned col; 5 for (col = width; col > 0; col--) 6 errorptr += dir; 7 errorptr[0] = (short) bpreverr; 8 } 9 10 11