Lines Matching refs:buffer
261 _rgb2rgb (unsigned char __sane_unused__ *buffer, int __sane_unused__ pixels, int __sane_unused__ threshold)
269 _rgb2gray (unsigned char *buffer, int pixels, int __sane_unused__ threshold)
283 acc += aWeight[x % BYTES_PER_PIXEL_COLOR] * buffer[x];
286 buffer[x / BYTES_PER_PIXEL_COLOR] =
299 _rgb2lineart (unsigned char *buffer, int pixels, int threshold)
306 _rgb2gray (buffer, pixels, 0);
311 if (x < pixels && buffer[x] < thresh)
317 buffer[x / BITS_PER_BYTE] = (unsigned char) (acc);
397 int iCurrent = 0; /* buffer and time-holder swap flag */
399 unsigned char CalWhite[2][3]; /* toggling buffer */
484 iCurrent = !iCurrent; /* swap the test-buffer, and time-holder */
1298 /* calculate correction for filling of circular buffer */
1415 /* read a line from the transfer buffer */
1425 because we try read after the end of the buffer */
1434 DBG (DBG_MSG, "sane_read: read after end of buffer\n");