Lines Matching refs:lines

366       /* calculate lines, pixels per line and bytes per line */
389 ms->params.lines = (SANE_Int) height_pixel;
411 DBG(30,"sane_get_parameters: format=%d, last_frame=%d, lines=%d\n",
412 ms->params.format,ms->params.last_frame, ms->params.lines);
1858 DBG(1, " CCD gap%24s: %d lines\n", " ", mi->ccd_gap);
1920 if ( *s == '#' || *s == '\0' ) /* ignore empty lines and comments */
1943 if ( *s == '#' || *s == '\0' ) /* ignore empty lines and comments */
3739 ms->params.lines = ms->src_remaining_lines;
4653 DBG(30, "scsi_read_image_info: ppl=%d, bpl=%d, lines=%d, remain=%d\n",
5530 /* calculate maximum number of lines to read */
5535 /* calculate number of lines that fit into the source buffer */
5555 /* segments. We allocate a second buffer to read new lines in */
5641 write_shading_buf_pnm(Microtek2_Scanner *ms, uint32_t lines)
5668 mi->geo_width / mi->calib_divisor, lines);
5669 for ( linenr=0; linenr < lines; linenr++ )
6048 uint32_t lines;
6132 lines = ms->src_remaining_lines;
6154 status = prepare_shading_data(ms, lines, &md->shading_table_d);
6272 lines = ms->src_remaining_lines;
6291 status = prepare_shading_data(ms, lines, &md->shading_table_w);
6297 write_shading_buf_pnm(ms, lines);
6352 prepare_shading_data(Microtek2_Scanner *ms, uint32_t lines, uint8_t **data)
6372 DBG(30, "prepare_shading_data: ms=%p, lines=%d, *data=%p\n",
6373 (void *) ms, lines, (void *) *data);
6395 sortbuf = malloc( lines * ms->lut_entry_size );
6397 (void *) sortbuf, lines * ms->lut_entry_size);
6418 for ( line = 0; line < lines; line++ )
6420 /* average the shading lines to get the shading data */
6425 value /= lines;
6436 qsort(sortbuf, lines, sizeof(uint16_t),
6438 value = *(sortbuf + ( lines - 1 ) / 2 );
6458 for ( line = 0; line < lines; line++ )
6460 /* average the shading lines to get the shading data */
6466 value /= lines;
6477 qsort(sortbuf, lines, sizeof(uint16_t),
6479 value = *(sortbuf + ( lines - 1 ) / 2 );
6495 for ( line = 0; line < lines; line++ )
6501 value /= lines;
6509 for ( line = 0; line < lines; line++ )
6515 value /= lines;
6664 /* calculates the mean value of the shading lines and stores one line of */
6746 /* calculating the median pixel values over the shading lines */
7187 DBG(30, "reader_process: transferlength=%d, lines=%d, linelength=%d, "
7323 DBG(30, "chunky_proc_data: lines=%d, bpl=%d, ppl=%d, bpp=%d, depth=%d"
7417 DBG(30, "segreg_proc_data: lines=%d, bpl=%d, ppl=%d, bpf=%d, bpp=%d,\n"
7959 DBG(30, "gray_proc_data: lines=%d, bpl=%d, ppl=%d, depth=%d\n",
8120 DBG(30, "proc_onebit_data: bytes_to_copy=%d, lines=%d\n",
8193 DBG(30, "lineartfake_proc_data: lines=%d, bpl=%d, ppl=%d, depth=%d\n",
8310 uint32_t lines;
8334 lines = ms->remaining_bytes / ms->bpl;
8335 for ( line = 0; line < lines; line++ )