Lines Matching refs:i
45 int i = 0; in to_565_raw_dither() local
56 int r = in[0] + error[i*3+0]; in to_565_raw_dither()
59 int g = in[1] + error[i*3+1]; in to_565_raw_dither()
62 int b = in[2] + error[i*3+2]; in to_565_raw_dither()
69 next_error[(i-1)*3+ch] += e * 3 / 16; \ in to_565_raw_dither()
70 next_error[(i)*3+ch] += e * 5 / 16; \ in to_565_raw_dither()
71 next_error[(i+1)*3+ch] += e * 1 / 16; \ in to_565_raw_dither()
72 error[(i+1)*3+ch] += e - ((e*1/16) + (e*3/16) + (e*5/16)); \ in to_565_raw_dither()
86 ++i; in to_565_raw_dither()
87 if (i == width) { in to_565_raw_dither()
91 i = 0; in to_565_raw_dither()