Home
last modified time | relevance | path

Searched refs:next_error (Results 1 – 1 of 1) sorted by relevance

/build/tools/rgb2565/
Dto565.c49 int* next_error = malloc((width+2) * 3 * sizeof(int)); in to_565_raw_dither() local
51 memset(next_error, 0, (width+2) * 3 * sizeof(int)); in to_565_raw_dither()
53 next_error += 3; 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()
89 int* temp = error; error = next_error; next_error = temp; in to_565_raw_dither()
90 memset(next_error, 0, (width+1) * 3 * sizeof(int)); in to_565_raw_dither()
96 free(next_error-3); in to_565_raw_dither()