Lines Matching defs:lines
90 int lines, SANE_Byte ** data);
417 write_pnm_file (char *title, int pixels, int lines, int color,
429 fprintf (fdbg, "P6\n%d %d\n255\n", pixels, lines);
430 for (y = 0; y < lines; y++)
445 fprintf (fdbg, "P5\n%d %d\n255\n", pixels, lines);
446 fwrite (data, pixels, lines, fdbg);
1036 int pixels, int yoffset, int lines, SANE_Byte ** data)
1044 DBG (15, "low_simple_scan: x=%d, pixels=%d (ex=%d), y=%d, lines=%d\n",
1045 xoffset, pixels, xoffset + pixels * regs[0x7a], yoffset, lines);
1050 yend = yoffset + lines;
1069 *data = (SANE_Byte *) malloc (bpl * lines);
1073 "low_simple_scan: failed to allocate %d bytes !\n", bpl * lines);
1096 needed = bpl * lines;
1097 DBG (1, "low_simple_scan: bpl=%d, lines=%d, needed=%lu.\n", bpl, lines,
1207 DBG (7, "starty=%d, endy=%d, lines=%d\n", sy, ey, ey - sy);
1956 or 3900 lines. This equates to 13" at 300dpi, so we must stop the scan
1958 0x0F3C (13"*300dpi) lines can be read.
1961 lines of data. For each read we poll twice, ignoring the first poll. This
1963 available. The number of lines (or number of buffers in our buffer space)
2173 /* create buffer to hold up to 10 lines of scan data */
2460 This function scans forward 59 lines, reading 88 bytes per line from the
2472 enough lines at 600dpi to read past the dot. We return the number of
2473 entirely white lines read consecutively, so we know how far past the
2476 To find the number of consecutive white lines we do the following:
2487 Next, we go through the buffer a line (88 bytes) at a time for 59 lines
2496 When all lines have been processed we return the white line count.
2825 /* Go through 59 lines */
5074 DBG (2, " Copying lines from buffer to data\n");
5110 to compute the number of lines at 1200 dpi to go back */
5443 /* read any available lines at the beginning of the buffer */
5527 int i, lines = 8, yoffset = 2;
5589 yoffset, lines, &data);
5600 write_pnm_file (title, pixels, lines, rts88xx_is_color (regs), data);
5602 average = average_area (regs, data, pixels, lines, &ra, &ga, &ba);
5616 lines, &data);
5625 average_area (regs, data, pixels, lines, &ra, &ga, &ba);
5627 write_pnm_file ("offset-final.pnm", pixels, lines, rts88xx_is_color (regs),
5669 int i, lines = 4, yoffset = 1;
5716 status = low_simple_scan (dev, regs, sx, pixels, yoffset, lines, &data);
5727 write_pnm_file (title, pixels, lines, rts88xx_is_color (regs), data);
5729 average_area (regs, data, pixels, lines, &ra, &ga, &ba);
5768 /* enough 75 dpi lines to "go off" home position dot,
5770 int lines = 4 + 4;
5772 int linetotal = lines + lineoffset;
5797 lines = (8 * lines) / regs[0x7a];
5801 data = (SANE_Byte *) malloc (bpl * lines);
5802 DBG (7, "pixels=%d, lines=%d, size=%d\n", pixels, lines, bpl * lines);
5807 bpl * lines);
5826 status = low_simple_scan (dev, regs, sx, pixels, lineoffset, lines, &data);
5837 /* the very first lines of the scan may include the dark dot used
5841 for (y = 0; (y < lines) && (yoffset == y - 1); y++)
5864 if (yoffset >= lines - 1)
5870 yoffset = lines - 2;
5877 write_pnm_file ("shading.pnm", pixels, lines, rts88xx_is_color (regs),
5882 /* there are 8 lines usable for shading calibration at 150 dpi, between
5885 if (yoffset + (8 * 4) / regs[0x7a] < lines)
5886 lines = yoffset + (8 * 4) / regs[0x7a];
5898 for (j = yoffset; j < lines; j++)
5901 (rtarget / (dev->shading_coeff[i] / (lines - yoffset)));
5905 for (j = yoffset; j < lines; j++)
5908 ((gtarget / dev->shading_coeff[i + pixels]) * (lines - yoffset));
5912 for (j = yoffset; j < lines; j++)
5917 (lines - yoffset));
5922 for (j = yoffset; j < lines; j++)
5927 (rtarget / dev->shading_coeff[i]) * (lines - yoffset);
5934 lines = (8 * 8) / regs[0x7a];
5937 lines = linetotal;
5940 status = low_simple_scan (dev, regs, sx, pixels, 1, lines, &data);
5951 write_pnm_file ("shading_bwd.pnm", pixels, lines, rts88xx_is_color (regs),