Lines Matching defs:nlines
2577 static SANE_Status pack_flat_data(Microtek_Scanner *s, size_t nlines)
2581 size_t nbytes = nlines * rb->bpl;
2608 for (line=0; line<nlines; line++) {
2634 for (line=0; line<nlines; line++) {
2670 pack_seqrgb_data (Microtek_Scanner *s, size_t nlines)
2685 dr = dg = db = nlines * rb->bpl;
2707 for (seg = 0, id = 0; seg < nlines * 3; seg++, id = (id+1)%3) {
2768 pack_goofyrgb_data(Microtek_Scanner *s, size_t nlines)
2786 seg < nlines * 3;
2817 for (seg = 0; seg < nlines * 3; seg++) {
2882 pack_seq2r2g2b_data(Microtek_Scanner *s, size_t nlines)
2886 size_t nbytes = nlines * rb->bpl;
2908 for (line = 0; line < nlines; line++) {
2945 read_from_scanner (Microtek_Scanner *s, int *nlines)
2965 *nlines = MIN(remaining, s->max_scsi_lines);
2966 DBG(18, "sane_read: max_scsi: %d, rem: %d, nlines: %d\n",
2967 s->max_scsi_lines, remaining, *nlines);
2970 if (*nlines > 0) {
2971 buffsize = *nlines * (s->pixel_bpl + s->header_bpl);/* == "* linewidth" */
2972 status = read_scan_data(s, *nlines, s->scsi_buffer, &buffsize);
2977 s->unscanned_lines -= *nlines;
2990 pack_into_ring(Microtek_Scanner *s, int nlines)
2997 status = pack_flat_data(s, nlines); break;
2999 status = pack_seqrgb_data(s, nlines); break;
3001 status = pack_goofyrgb_data(s, nlines); break;
3003 status = pack_seq2r2g2b_data(s, nlines); break;
4065 int nlines;
4080 if ((status = read_from_scanner(s, &nlines)) != SANE_STATUS_GOOD) {
4084 if ((status = pack_into_ring(s, nlines)) != SANE_STATUS_GOOD) {