Lines Matching refs:line
120 /* Used for line-distance correction: */
663 /* reset line-distance values */
1372 own line-distance correction code. */
1388 /* FIXME; experiment with different line distance codes later */
1586 "attach: scanner doesn't need line-distance correction\n");
1588 DBG (4, "attach: scanner has N1 line-distance correction\n");
1590 DBG (4, "attach: scanner has N2 line-distance correction\n");
1592 DBG (4, "attach: scanner has block line-distance correction\n");
1594 DBG (4, "attach: scanner has normal line-distance correction\n");
1876 /* Some scanners need a larger scanarea for line-distance correction */
1986 /* compensate for different line counts for r/g/b */
2144 SANE_Int line;
2154 for (line = 0; line < s->hw->cal.lines; line++)
2157 s->hw->cal.buffer + line * len, &len);
2176 SANE_Word column, line, color;
2205 for (line = 0; line < s->hw->cal.lines; line++)
2356 SANE_Word line;
2360 for (line = 0; line < s->hw->cal.lines; line++)
2362 + line * bytes_per_color
3067 /* According to Andreas Czechanowski, the line-distance values
3112 DBG (1, "don't know how to fix up line-distance for %d dpi\n",
3186 /* need to do line-distance adjustment ourselves... */
3229 line-distance correction in color mode */
3404 SANE_Int c, num_saved_lines, line;
3408 /* This buffer must be big enough to hold maximum line distance
3409 times max_bpl bytes. The maximum line distance for the
3442 line = s->ld.index[c]++ - s->ld.ld_line;
3443 out_ptr = out + line * bpl + c;
3481 SANE_Int c, num_saved_lines, line;
3488 /* This buffer must be big enough to hold maximum line distance
3489 times max_bpl bytes. The maximum line distance for the 600 II N
3523 line = s->ld.index[c]++ - s->ld.ld_line;
3524 out_ptr = out + line * bpl + c;
3531 DBG (5, "fix_line_distance_n_1: copied line %d (color %d)\n",
3532 line, c);
3576 SANE_Int bpc = bpl / 3; /* bytes per color (per line) */
3600 /* This buffer must be big enough to hold maximum line distance times
3601 3*bpl bytes. The maximum line distance for 1200 dpi is 32 */
3620 /* The scan area must be longer than desired because of the line
3657 /* This line must be processed, not dropped. */
3706 DBG (5, "fix_line_distance_se: got saved line: %d; line: %d; "
3736 DBG (5, "fix_line_distance_se: got saved line: %d; line: %d; "
3755 /* This line must be processed, not dropped. */
3760 /* There's still a line to be output for current color.
3761 Then shuffle current color line to output buffer. */
3782 "fix_line_distance_se: got line: %d; color: %d; "
3813 DBG (5, "fix_line_distance_se: got line: %d; color: "
3820 /* At least one component missing, so save this line. */
3823 DBG (5, "fix_line_distance_se: saved line %d; color %d\n",
3833 DBG (5, "fix_line_distance_se: ignored line; color: %d\n",
3971 SANE_Int index[3]; /* index of the next output line for color C */
3974 /* Initialize the indices with the line distances that were returned
4021 SANE_Int c, num_saved_lines, line, max_index, min_index;
4070 line = s->ld.index[c]++ - s->ld.ld_line;
4071 out_ptr = out + line * bpl + c;
4078 DBG (5, "fix_line_distance_block: copied line %d (color %d)\n",
4079 line + s->ld.ld_line, c);
4117 "index=(%d,%d,%d), line = %d, lines = %d\n",
4683 /* need to revert line direction */
4795 /* need to revert line direction */
4918 DBG (4, "reader_process: %d lines per buffer, %d bytes per line, "
4951 /* get temporary buffer for line-distance correction and/or bit
4954 of lines_per_buffer). This requires that the line distance
4975 /* reset counter of line number for line-dictance correction */
4988 while (s->line < s->hw->lines)
4991 MIN (s->hw->lines - s->line, (max_buffers * lines_per_buffer));
5057 if ((s->line < s->hw->lines) && (buffer_count < max_buffers))
5059 if (s->line + lines_per_buffer >= s->hw->lines)
5062 bstat[buffernumber].lines = s->hw->lines - s->line;
5075 s->line += bstat[buffernumber].lines;
5096 DBG (5, "reader_process: buffer %d: entered (line %d of %d,"
5097 " buffer %d)\n", buffernumber + 1, s->line,
5169 SANE_Char line[PATH_MAX], *word, *end;
5220 while (sanei_config_read (line, sizeof (line), fp))
5225 cp = sanei_config_get_string (line, &word);
5226 if (!word || cp == line)
5228 DBG (5, "sane_init: config file line %d: ignoring empty line\n",
5236 DBG (5, "sane_init: config file line %d: ignoring comment line\n",
5250 "sane_init: config file line %d: missing quotation mark?\n",
5263 "sane_init: config file line %d: missing quotation mark?\n",
5272 DBG (3, "sane-init: config file line %d: strip-height "
5278 DBG (3, "sane-init: config file line %d: strip-height `%s' "
5287 DBG (3, "sane_init: config file line %d: strip-height set "
5296 DBG (3, "sane_init: config file line %d: enabling force-wait\n",
5305 DBG (3, "sane_init: config file line %d: disabling "
5327 "sane_init: config file line %d: enabling "
5333 DBG (3, "sane_init: config file line %d: option "
5342 DBG (3, "sane_init: config file line %d: option "
5355 DBG (3, "sane_init: config file line %d: enabling "
5361 DBG (3, "sane_init: config file line %d: option "
5374 DBG (3, "sane_init: config file line %d: disabling "
5380 DBG (3, "sane_init: config file line %d: option "
5393 DBG (3, "sane_init: config file line %d: enabling "
5399 DBG (3, "sane_init: config file line %d: option "
5417 "sane_init: config file line %d: missing quotation mark?\n",
5427 DBG (3, "sane-init: config file line %d: buffersize must "
5433 DBG (3, "sane-init: config file line %d: buffersize `%s' "
5447 "sane_init: config file line %d: buffersize set "
5453 DBG (3, "sane_init: config file line %d: option "
5472 "sane_init: config file line %d: missing quotation mark?\n",
5482 DBG (3, "sane-init: config file line %d:: blocksize must "
5488 DBG (3, "sane-init: config file line %d: blocksize `%s' "
5500 DBG (3, "sane_init: config file line %d: blocksize set "
5506 DBG (3, "sane_init: config file line %d: option "
5517 DBG (3, "sane_init: config file line %d: ignoring unknown "
5527 DBG (4, "sane_init: config file line %d: trying to attach `%s'\n",
5528 linenumber, line);
5529 sanei_config_attach_matching_devices (line, attach_one_device);
6540 s->line = 0;