Lines Matching defs:width
665 DBG(DBG_inquiry,"FB maximum scan width.....................: %2.2f inch\n", dev->inquiry_fb_width);
680 DBG(DBG_inquiry,"UTA maximum scan width....................: %2.2f inch\n", dev->inquiry_uta_width);
711 DBG(DBG_inquiry,"DOR maximum scan width....................: %2.2f inch\n", dev->inquiry_dor_width);
2115 set_WD_width(buffer_r, dev->scanwidth); /* width */
2443 unsigned int width = 0;
2482 width = dev->scanwidth * dev->relevant_optical_res / dev->x_coordinate_base;
2486 width = width + dev->calibration_width_offset;
2487 DBG(DBG_warning," Using calibration width offset of %d\n", dev->calibration_width_offset);
2492 width = width * 3;
2510 width = (int)(dev->inquiry_fb_width * dev->inquiry_optical_res);
2516 width = width + dev->calibration_width_offset_batch;
2517 DBG(DBG_warning," Using calibration width offset for batch scanning of %d\n", dev->calibration_width_offset_batch);
2524 width = width + dev->calibration_width_offset;
2525 DBG(DBG_warning," Using calibration width offset of %d\n", dev->calibration_width_offset);
2531 width = width * 3;
2550 width = get_RS_SCC_calibration_bytesperline(dev->buffer[0]) / bytespp;
2558 DBG(DBG_info,"scanner sends %d lines with %d pixels and %d bytes/pixel\n", lines, width, bytespp);
2560 if (width * bytespp > dev->bufsize)
2571 average = calloc(width, sizeof(long));
2578 shading_data = calloc(width, bytespp);
2591 umax_read_shading_data(dev, width * bytespp);
2593 for (j=0; j<width; j++)
2601 for (j=0; j<width; j++)
2611 umax_read_shading_data(dev, width * bytespp);
2613 for (j=0; j<width; j++)
2621 for (j=0; j<width; j++)
2632 umax_read_shading_data(dev, width * bytespp);
2634 for (j=0; j<width; j++)
2642 for (j=0; j<width; j++)
2657 for (j=0; j<width; j++)
2668 for (j=0; j<width; j++)
2678 umax_send_shading_data(dev, shading_data, width * bytespp);
2896 if (dev->calibration_width_offset == -99999) /* no calibration-width-offset defined in umax.conf */
2899 DBG(DBG_warning," - adding calibration width offset of %d pixels\n", dev->calibration_width_offset);
2917 if (dev->calibration_width_offset == -99999) /* no calibration-width-offset defined in umax.conf */
2920 DBG(DBG_warning," - adding calibration width offset of %d pixels\n", dev->calibration_width_offset);
2927 if (dev->calibration_width_offset == -99999) /* no calibration-width-offset defined in umax.conf */
2930 DBG(DBG_warning," - adding calibration width offset of %d pixels\n", dev->calibration_width_offset);
2934 if (dev->calibration_width_offset_batch == -99999) /* no calibration-width-offset for batch scanning defined in umax.conf */
2937 DBG(DBG_warning," - adding calibration width offset for batch scanning of %d pixels\n", dev->calibration_width_offset_batch);
2944 if (dev->calibration_width_offset == -99999) /* no calibration-width-offset defined in umax.conf */
2947 DBG(DBG_warning," - adding calibration width offset of %d pixels\n", dev->calibration_width_offset);
2951 if (dev->calibration_width_offset_batch == -99999) /* no calibration-width-offset for batch scanning defined in umax.conf */
2954 DBG(DBG_warning," - adding calibration width offset for batch scanning of %d pixels\n", dev->calibration_width_offset_batch);
2961 if (dev->calibration_width_offset == -99999) /* no calibration-width-offset defined in umax.conf */
2964 DBG(DBG_warning," - adding calibration width offset of %d pixels\n", dev->calibration_width_offset);
2968 if (dev->calibration_width_offset_batch == -99999) /* no calibration-width-offset for batch scanning defined in umax.conf */
2971 DBG(DBG_warning," - adding calibration width offset for batch scanning of %d pixels\n", dev->calibration_width_offset_batch);
2983 if (dev->calibration_width_offset == -99999) /* no calibration-width-offset defined in umax.conf */
2986 DBG(DBG_warning," - adding calibration width offset of %d pixels\n", dev->calibration_width_offset);
2990 if (dev->calibration_width_offset_batch == -99999) /* no calibration-width-offset for batch scanning defined in umax.conf */
2994 DBG(DBG_warning," - adding calibration width offset for batch scanning of %d pixels\n", dev->calibration_width_offset_batch);
3011 if (dev->calibration_width_offset == -99999) /* no calibration-width-offset defined in umax.conf */
3014 DBG(DBG_warning," - adding calibration width offset of %d pixels\n", dev->calibration_width_offset);
3040 if (dev->calibration_width_offset == -99999) /* no calibration-width-offset defined in umax.conf */
3043 DBG(DBG_warning," - adding calibration width offset of %d pixels\n", dev->calibration_width_offset);
3047 if (dev->calibration_width_offset_batch == -99999) /* no calibration-width-offset for batch scanning defined in umax.conf */
3050 DBG(DBG_warning," - adding calibration width offset for batch scanning of %d pixels\n", dev->calibration_width_offset_batch);
3060 if (dev->calibration_width_offset == -99999) /* no calibration-width-offset defined in umax.conf */
3063 DBG(DBG_warning," - adding calibration width offset of %d pixels\n", dev->calibration_width_offset);
3067 if (dev->calibration_width_offset_batch == -99999) /* no calibration-width-offset for batch scanning defined in umax.conf */
3070 DBG(DBG_warning," - adding calibration width offset for batch scanning of %d pixels\n", dev->calibration_width_offset_batch);
3110 if (dev->calibration_width_offset == -99999) /* no calibration-width-offset defined in umax.conf */
3113 DBG(DBG_warning," - adding calibration width offset of %d pixels\n", dev->calibration_width_offset);
3406 inquiry_width = dev->inquiry_fb_width; /* flatbed width */
3413 inquiry_width = dev->inquiry_uta_x_off + dev->inquiry_uta_width; /* uta width */
3421 inquiry_width = dev->inquiry_dor_x_off + dev->inquiry_dor_width; /* dor width */
3456 /* Now calculate width and length in pixels */
4390 dev->width_in_pixels = 0; /* scan width in pixels */
4392 dev->scanwidth = 0; /* width in inch at x_coordinate_base dpi */
6048 else if (umax_test_configure_option(option_str, "calibration-width-offset-batch", &umax_calibration_width_offset_batch, -99999, 65535));
6049 else if (umax_test_configure_option(option_str, "calibration-width-offset", &umax_calibration_width_offset, -99999, 65535));
7187 double width, length, x_dpi, y_dpi;
7191 width = SANE_UNFIX(scanner->val[OPT_BR_X].w - scanner->val[OPT_TL_X].w);
7201 if (x_dpi > 0.0 && y_dpi > 0.0 && width > 0.0 && length > 0.0)
7206 scanner->params.pixels_per_line = width * x_dots_per_mm;
7668 DBG(DBG_sane_info,"width in pixels = %u\n", scanner->device->width_in_pixels);