Lines Matching refs:lines
1863 DBG (dbg_level, "%s: pixel_per_line: %d, lines: %d\n",
1864 func, params->pixels_per_line, params->lines);
2030 DBG (dbg_level, "%s: [61] background lines: %d\n",
3034 DBG (3, "sane_compute_parameters: overscan lines: %d\n", overscan);
3039 Calculate offsets for skipping lines later with considering overscan
3076 - skip bottom lines at page n=0, front and rear
3077 - skip top lines at page n>0, front and rear
3090 - skip top lines at page n=0, front and rear
3091 - skip bottom lines at page n>0, front and rear
3105 /* convert to lines */
3148 - skip bottom lines at page n=0
3149 - skip top lines at page n>0
3159 - skip top lines at page n=0
3160 - skip bottom lines at page n>0
3171 /* convert to lines */
3202 s->params.lines = s->avdimen.hw_lines * s->avdimen.xres / s->avdimen.hw_xres;
3204 /* we can't know how many lines we'll see with an ADF because that depends on the paper length */
3205 s->params.lines = -1;
5012 /* convert to lines */
5050 /* convert to lines */
5197 format->lines = result[3];
5217 format->lines /= 3; /* line interleave */
5431 sort_data = malloc (format->lines * 2);
5447 /* copy all lines for pixel i into the linear array sort_data */
5448 for (line = 0; line < format->lines; ++ line) {
5459 temp = bubble_sort (sort_data, format->lines);
5628 /* size = lines * bytes_per_channel * pixels_per_line * channel */
5632 calib_data_size = (size_t) calib_format.lines * (size_t) calib_bytes_per_line;
5688 calib_format.lines * calib_format.channels);
6491 const int lines = s->val[OPT_BACKGROUND].w * (s->avdimen.interlaced_duplex ? 2 : 1);
6497 if (lines == 0) {
6511 size = (size_t) bytes_per_line * (size_t) lines;
6531 for (i = 0; i < lines;)
6542 this_lines = lines;
6549 DBG (3, "get_background_raster: line: %d, lines: %d, %lu bytes\n",
6572 bytes_per_line / bpp, lines);
6574 fwrite (background, 1, (size_t) bytes_per_line * (size_t) lines, f);
6585 for (l = 0; l < lines; ++l)
6611 for (i = 0; i < lines; ++i)
6613 int dst_i = i / 2 + (i % 2) * (lines / 2);
6619 dst_i = i / 2 + ((i+1) % 2) * (lines / 2);
6657 for (i = 0; i < lines; ++i)
6672 for (l = 0; l < lines; ++l)
7138 s->opt[OPT_BACKGROUND].name = "background-lines";
7139 s->opt[OPT_BACKGROUND].title = "Background raster lines";
7140 s->opt[OPT_BACKGROUND].desc = "The background raster controls the additional background lines to scan before the paper is feed through the scanner.";
7583 /* it takes quite a few lines to saturate the (USB) bus */
7660 before all lines are transferred for ADF paper end. */
7779 /* for all lines we have in the buffer: */
7808 /* Here we flip the image by writing the lines from the end of the file to the beginning. */
7813 fseek (rear_fp, ((0 - s->params.lines) - (SANE_Int) absline - 2) * s->avdimen.hw_bytes_per_line, SEEK_SET);
7857 const unsigned int lines = useful_bytes / (unsigned int) s->avdimen.hw_bytes_per_line;
7859 for (l = 0; l < lines; ++l)
7890 unsigned int lines = useful_bytes / (unsigned int) s->avdimen.hw_bytes_per_line;
7892 for (l = 0; l < lines; ++l)
7910 unsigned int lines = useful_bytes / (unsigned int) s->avdimen.hw_bytes_per_line;
7912 for (l = 0; l < lines; ++l)
7948 unsigned int lines = useful_bytes / (unsigned int) s->avdimen.hw_bytes_per_line;
7971 for (l = 0; l < lines; ++ l)
8022 DBG (7, "reader_process: skip due past intended front page lines: %d\n", sy);
8162 } /* end while not all lines or inf. mode */
8172 if (exit_status == SANE_STATUS_EOF && line < s->params.lines) {
8177 line, s->params.lines);
8178 while (line < s->params.lines) {
8187 long lines;
8191 lines = ftell(fp) / s->params.bytes_per_line;
8194 for (long line = 0; line < lines; line++) {
8203 if ( (!s->duplex_rear_valid && (line > (lines - s->avdimen.offset.front.bottom))) ||
8204 (s->duplex_rear_valid && (line > (lines - s->avdimen.offset.rear.bottom))) ) {
8205 DBG (7, "reader_process: skip due read offset line: %ld to %ld\n", line, lines);
8256 SANE_Int lines = s->params.lines;
8258 s->params.lines = -line;
8260 s->params.lines = lines;
9077 /* add background raster lines */
9078 params->lines += s->val[OPT_BACKGROUND].w;