Lines Matching defs:width
1279 /* signals that scan width matches full ccd width */
8365 /* there is one form for full CCD width reads, and another for other
8838 /* read data by chunk EXACTLY the width of the scan area in the given */
8941 /* 32 bits I/O read , window must match the width of scan */
9071 * w is width of scanning area
9079 encodeWX (int width, int xstart, int dpi, int color, int *ccd, int bytes)
9085 xend = xstart + width;
9114 bpl = (color == 0 ? 1 : 3) * width * dpi;
9311 DBG (0, "\t->scan width=0x%X (%d)\n", xend - xskip - 1, xend - xskip - 1);
9402 DumpNB (int width, int height, unsigned char *data, char *name)
9422 fprintf (fic, "P5\n%d %d\n255\n", width, height);
9423 fwrite (data, width, height, fic);
9431 DumpRVB (int width, int height, unsigned char *data, char *name)
9452 fprintf (fic, "P6\n%d %d\n255\n", width, height);
9455 for (x = 0; x < width; x++)
9457 fputc (data[3 * y * width + 2 * width + x], fic);
9458 fputc (data[3 * y * width + width + x], fic);
9459 fputc (data[3 * y * width + x], fic);
9467 DumpRGB (int width, int height, unsigned char *data, char *name)
9483 fprintf (fic, "P6\n%d %d\n255\n", width, height);
9491 for (x = 0; x < width; x++)
9493 fputc (data[3 * y * width + x * 3], fic);
9494 fputc (data[3 * y * width + x * 3 + 1], fic);
9495 fputc (data[3 * y * width + x * 3 + 2], fic);
9544 computeCalibrationData (int color, int width, unsigned char *source,
9555 for (i = 0; i < width; i++)
9572 for (i = 0; i < width; i++)
9584 for (i = 0; i < width; i++)
9744 edgePosition (int width, int height, unsigned char *data)
9753 dbuffer = (unsigned char *) malloc (3 * width * height);
9754 memset (dbuffer, 0x00, 3 * width * height);
9758 for (x = 0; x < width; x++)
9768 i = x + y * width;
9769 d = data[i - width] - data[i];
9786 dbuffer[(x + dpos * width) * 3] = 0xFF;
9787 dbuffer[(x + dpos * width) * 3 + 1] = 0x00;
9788 dbuffer[(x + dpos * width) * 3 + 2] = 0x00;
9797 i = ((int) epos) * width;
9798 for (x = 0; x < width; x++)
9806 dbuffer[(width / 2 + y * width) * 3] = 0x00;
9807 dbuffer[(width / 2 + y * width) * 3 + 1] = 0xFF;
9808 dbuffer[(width / 2 + y * width) * 3 + 2] = 0x00;
9810 DumpRGB (width, height, dbuffer, NULL);
10036 int width = 5100; /* full usable CCD width */
10123 size = 3 * width * 70;
10125 size = width * 66;
10139 DumpRVB (width, 66, buffer, NULL);
10143 DumpNB (width, 66, buffer, NULL);
10146 computeCalibrationData (color, width, buffer, calibration);
10209 sanei_umax_pp_scan (int x, int y, int width, int height, int dpi, int color,
10289 (x, y - dataoffset, width, height + dataoffset, dpi, color, gain,
10563 sanei_umax_pp_startScan (int x, int y, int width, int height, int dpi,
10665 DBG (8, "startScan(%d,%d,%d,%d,%d,%d,%X);\n", x, y, width, height, dpi,
10805 /* width to meet this criteria ... */
10806 if ((getEPPMode () == 32) && (xdpi >= 600) && (width & 0x03)
10809 width += (4 - (width & 0x03));
10811 if (x + width > 5100)
10813 x = 5100 - width;
10819 tw = (width * xdpi) / hwdpi;
10865 /* round width and height */
10866 width = (tw * hwdpi) / xdpi;
11023 encodeWX (width, x, dpi, color, ccd, 0);
11967 /* first scan : taking a reference full width scan to
11968 * find usable full width of the CCD
12528 /* since we know that each scan line matches CCD width, we signals