Lines Matching full:next_error
49 int* next_error = malloc((width+2) * 3 * sizeof(int));
51 memset(next_error, 0, (width+2) * 3 * sizeof(int));
53 next_error += 3;
69 next_error[(i-1)*3+ch] += e * 3 / 16; \
70 next_error[(i)*3+ch] += e * 5 / 16; \
71 next_error[(i+1)*3+ch] += e * 1 / 16; \
88 // error <- next_error; next_error <- 0
89 int* temp = error; error = next_error; next_error = temp;
90 memset(next_error, 0, (width+1) * 3 * sizeof(int));
96 free(next_error-3);