Lines Matching defs:dpi
1126 dev->dpi_range.min = SANE_FIX (72); /* some scanners don't like low dpi */
1422 x-resolution to 300 dpi and does *no* interpolation at higher
1452 /* The ScanExpress models limit their x-resolution to 600 dpi
1477 /* The ScanExpress models limit their x-resolution to 600 dpi
1502 /* The ScanExpress models limit their x-resolution to 600 dpi
1527 /* The ScanExpress models limit their x-resolution to 300 dpi
1704 SANE_Fixed w, dpi;
1735 dpi = (w + quant / 2) / quant;
1736 dpi *= quant;
1737 if (dpi != w)
1739 *(SANE_Word *) value = dpi;
1761 SANE_Fixed max_dpi, dpi;
1764 dpi = s->val[OPT_RESOLUTION].w;
1768 code = dpi >> SANE_FIXED_SCALE_SHIFT;
1777 if (dpi <= half_res)
1789 code = (dpi + quant / 2) / quant;
1983 /* 400, 500, 600, 900, 1200 dpi but the speed is only different */
1984 /* with 36, 150, 300, 600, 1200 dpi. */
2002 DBG (5, "set_window_se: hardware resolution is %d dpi; offset is %d\n",
3085 /* 51-74 and 91-149 dpi: */
3094 /* 75-90 and 150-300 dpi: */
3103 /* 301-600 dpi: */
3112 DBG (1, "don't know how to fix up line-distance for %d dpi\n",
3121 /* 1-50 dpi: */
3130 /* 51-300 dpi: */
3139 /*301-600 dpi: */
3151 /* 1-71 dpi: */
3160 /* 72-400 dpi: */
3169 /*401-800 dpi: */
3294 DBG (5, "get_window: resolution: %ld dpi (hardware: %d dpi)\n",
3601 3*bpl bytes. The maximum line distance for 1200 dpi is 32 */
4898 double dpi;
4900 dpi = SANE_UNFIX (s->val[OPT_RESOLUTION].w);
4901 max_lines = (int) (strip_height * dpi + 0.5);
6152 double width, height, dpi;
6158 dpi = SANE_UNFIX (s->val[OPT_RESOLUTION].w);
6162 if (dpi > 0.0 && width > 0.0 && height > 0.0)
6164 double dots_per_mm = dpi / MM_PER_INCH;
6312 /* use 36 dpi color in any case */
6321 /* use 36 dpi */
6326 /* use 30 dpi color mode */
6333 DBG (4, "sane_start: use fast preview (res=%d dpi)\n",