Lines Matching refs:linewidth
1007 uint8_t letter, int linewidth)
1009 DBG(23, ".download_calibration... %c %d\n", letter, linewidth);
1014 comm[3] = (linewidth >> 8) & 0xFF;
1015 comm[4] = linewidth & 0xFF;
1026 return sanei_scsi_cmd(ms->sfd, comm, 6 + linewidth, 0, 0);
2332 SANE_Int busy, linewidth, lines;
2343 if ((status = get_scan_status(s, &busy, &linewidth, &lines))
2349 input = calloc(STRIPS * 3 * linewidth, sizeof(input[0]));
2350 combuff = calloc(linewidth + 6, sizeof(combuff[0]));
2359 nmax = SCSI_BUFF_SIZE / (3 * linewidth);
2365 buffsize = ntoget * 3 * linewidth;
2383 for (spot=0, i=0; spot < linewidth * STRIPS * 3; spot += linewidth) {
2394 calc_calibration(combuff + 8, scanline, linewidth - 2);
2395 if ((status = download_calibration(s, combuff, letter, linewidth))
2426 SANE_Int busy, linewidth, lines;
2465 &linewidth, &lines)) != SANE_STATUS_GOOD) {
2948 SANE_Int busy, linewidth, remaining;
2953 status = get_scan_status(s, &busy, &linewidth, &remaining);
2958 DBG(18, "read_from_scanner: gss busy, linewidth, remaining: %d, %d, %d\n",
2959 busy, linewidth, remaining);
2971 buffsize = *nlines * (s->pixel_bpl + s->header_bpl);/* == "* linewidth" */
3848 SANE_Int busy, linewidth;
3903 &linewidth, &(s->unscanned_lines))) !=
3922 s->pixel_bpl = linewidth;
3924 s->ppl = linewidth * 8;
3930 s->pixel_bpl = linewidth;
3931 s->ppl = linewidth * (8 / s->bits_per_color);
3933 s->pixel_bpl = linewidth * ((s->bits_per_color + 7) / 8);
3934 s->ppl = linewidth;
3943 s->pixel_bpl = linewidth * ((s->bits_per_color + 7) / 8);
3944 s->ppl = linewidth;
3950 s->pixel_bpl = (linewidth - 2) * 3 * ((s->bits_per_color + 7) / 8);
3951 s->ppl = linewidth - 2;
3957 s->pixel_bpl = linewidth * 3 * ((s->bits_per_color + 7) / 8);
3958 s->ppl = linewidth;
3964 s->pixel_bpl = linewidth * 3 * ((s->bits_per_color + 7) / 8);
3965 s->ppl = linewidth;
3971 s->pixel_bpl = linewidth * 3 * ((s->bits_per_color + 7) / 8);
3972 s->ppl = linewidth;