Lines Matching defs:width
633 unsigned int start, unsigned int width)
637 DBG (DBG_proc, "build_correction: start=%d, width=%d\n", start, width);
662 dev->gain = (float *) malloc (width * sizeof (float));
669 dev->offset = (uint8_t *) malloc (width);
686 for (i = 0; i < width; i += step)
715 * @param width width of the scanned area
721 unsigned int width)
731 DBG (DBG_io, "start_scan: startx=%d, width=%d, dpi=%d\n", startx, width,
807 width = (width * xdpi) / dpi;
815 width = width * 3;
817 end = start + width + 1;
822 build_correction (dev, xdpi, mode, start, width);
1056 /* we do a real scan of small width, discarding data */
1135 unsigned int i, start, end, count, width;
1137 /* compute width in bytes */
1140 width = pixels * 3;
1144 width = pixels;
1147 /* we allow the calibration target to be narrower than full width, ie
1149 start = (5 * width) / 100;
1150 end = (95 * width) / 100;
1163 if (count > (3 * width) / 100)
1184 unsigned int i, start, end, count, width;
1186 /* compute width in bytes */
1189 width = pixels * 3;
1193 width = pixels;
1196 /* we allow the calibration target to be narrower than full width, ie
1198 start = (5 * width) / 100;
1199 end = (95 * width) / 100;
1212 if (count > (3 * width) / 100)
1226 write_gray_data (unsigned char *image, char *name, SANE_Int width,
1234 fprintf (fdbg, "P5\n%d %d\n255\n", width, height);
1235 fwrite (image, width, height, fdbg);
1243 write_rgb_data (char *name, unsigned char *image, SANE_Int width,
1251 fprintf (fdbg, "P6\n%d %d\n255\n", width, height);
1252 fwrite (image, width * 3, height, fdbg);