Lines Matching defs:dpi
531 /* we set up to the lowest available dpi value */
915 SANE_Int dpi; /* dpi for scan */
922 dpi = session->options[OPT_RESOLUTION].value.w;
951 dev->lds = (dev->model->lds * dpi) / dev->model->max_ydpi;
955 session->params.lines = ((br_y - tl_y) * dpi) / MM_PER_INCH;
958 session->params.pixels_per_line = ((br_x - tl_x) * dpi) / MM_PER_INCH;
988 dev->xdpi = dpi;
989 dev->ydpi = dpi;
991 /* handle bounds of motor's dpi range */
995 dev->lines = (dev->lines * dev->model->max_ydpi) / dpi;
1008 dev->lines = (dev->lines * dev->model->min_ydpi) / dpi;
1013 ((SANE_UNFIX (dev->model->x_offset) + tl_x) * dpi) / MM_PER_INCH;
1213 /* 600 dpi is 300x600 physical, and 400 is 200x400 */
1766 * pixels. The SANE API allow to control x and y dpi independently, but this is
1767 * rarely done and may confuse both frontends and users. In case a dpi value exists
1836 /* initial value is lowest available dpi */