Lines Matching refs:optres
1218 /* NB. here int tl_x, int tl_y, int width, int height are in DPI units, not optres units! */
1263 /* Origin top left s->tl_x and s->tl_y are in optres units
1277 /* Z width height note the s->width and s->height are in optres units
1594 int dpi, optres;
1597 optres = s->hw->cap->optical_res;
1617 s->left * dpi / optres, s->top * dpi / optres, /* top/left start (dpi units)*/
1645 s->data_len = s->scan_bytes_per_line * floor (s->height * dpi / optres + 0.5); /* NB this is the length for a full scan */
1780 int dpi, optres;
1788 optres = s->hw->cap->optical_res;
1797 s->left = ((SANE_UNFIX(s->val[OPT_TL_X].w) / MM_PER_INCH) * optres) + 0.5;
1799 s->top = ((SANE_UNFIX(s->val[OPT_TL_Y].w) / MM_PER_INCH) * optres) + 0.5;
1804 s->val[OPT_TL_X].w) / MM_PER_INCH) * optres) + 0.5;
1807 s->val[OPT_TL_Y].w) / MM_PER_INCH) * optres) + 0.5;
1809 DBG(20, "%s: s->width = %d, s->height = %d optres units\n",
1812 s->params.pixels_per_line = s->width * dpi / optres + 0.5;
1818 s->params.lines = s->height * dpi / optres + 0.5;