Lines Matching refs:dpi
632 build_correction (P5_Device * dev, unsigned int dpi, unsigned int mode,
638 DBG (DBG_trace, "build_correction: dpi=%d, mode=%d\n", dpi, mode);
642 while (dev->calibration_data[j]->dpi != dpi)
712 * @param dpi desired scan resolution.
720 start_scan (P5_Device * dev, int mode, unsigned int dpi, unsigned int startx,
731 DBG (DBG_io, "start_scan: startx=%d, width=%d, dpi=%d\n", startx, width,
732 dpi);
735 * - reg2 : reg2 seems related to x dpi and provides only 100,
737 * - regF : lower nibble gives y dpi resolution ranging from 150
738 * to 1200 dpi.
740 xdpi = dpi;
741 switch (dpi)
803 /* handle case where dpi>xdpi */
805 if (dpi > xdpi)
807 width = (width * xdpi) / dpi;
808 start = (startx * xdpi) / dpi;
1034 /** @brief move at 150 dpi
1035 * move the paper at 150 dpi motor speed by the amount specified
1054 DBG (DBG_io, "move: skipping %d lines at %d dpi\n", skip, dev->ydpi);
1420 unsigned int i, j, k, dpi, pixels, read, black, white;
1448 dpi = dev->model->max_xdpi;
1459 dev->calibration_data[i]->dpi = dpi;
1462 status = start_scan (dev, MODE_COLOR, dpi, 0, pixels);
1467 "sheetfed_calibration: failed to start scan at %d dpi\n", dpi);
1531 /* average pixels and store in per dpi calibration data */
1559 dev->calibration_data[i]->dpi);
1562 dev->calibration_data[i]->dpi);
1578 dev->calibration_data[i]->dpi = dev->model->xdpi_values[i];
1580 coeff = ((float) dev->model->xdpi_values[i]) / (float) dpi;