Lines Matching defs:width
682 despeckle (int width, int height, SANE_Byte * in, SANE_Byte * out)
700 DBG (1, "despeckle: width=%d, height=%d\n", width, height);
702 for (x = i = 0; i < width * height; ++i)
704 if (x == 0 || x == width - 1)
726 if (++x >= width)
741 despeckle32 (int width, int height, SANE_Byte * in, SANE_Byte * out)
758 DBG (1, "despeckle32: width=%d, height=%d\n", width, height);
760 for (x = i = 0; i < width * height; ++i)
762 if (x == 0 || x == width - 1)
766 if (x >= width - 2)
797 if (++x >= width)
822 int width, height;
971 width = req.params.pixels_per_line;
976 despeckle32 (width / 2, req.params.lines / 2, buffer, extra);
980 assert (!(width & 1)); /* width must be even */
986 for (x = 0; x < width; x += 2)
993 if (x >= width - 2)
1021 src -= 2 * width; /* 4 bytes/pixel -> 2 pixels of 3 bytes each */
1024 for (x = 0; x < width; x += 2)
1029 if (x >= width - 2)
1033 yoff = 2 * width;
1038 if (x >= width - 2)
1861 changing width/height etc while scan is in progress. */
1897 int top, left, width, height, undecimated_width, undecimated_height;
2000 width = s->params.pixels_per_line;
2004 width /= 2; /* the expansion occurs through oversampling */
2007 undecimated_width = width * s->val[OPT_XFER_SCALE].w;
2068 height, width, (long) s->bytes_per_frame,
2073 req.num_bytes = width * height;