Lines Matching defs:scale
406 unsigned scale; /* Scale factor for lower resolutions, the
407 * scanner doesn't support. We scale down the
668 raw_width = ALIGN_SUP ((param->w * mp->scale) + param->xs, 32);
693 /*PDBG (pixma_dbg (4, "%s: line_size=%ld, w=%d, wx=%d, scale=%d\n",
694 __func__, s->param->line_size, s->param->w, s->param->wx, mp->scale));*/
698 * mp->scale
707 unsigned xdpi = s->param->xdpi * mp->scale;
708 unsigned ydpi = s->param->xdpi * mp->scale;
709 unsigned x = s->param->x * mp->scale;
711 unsigned y = s->param->y * mp->scale;
713 unsigned h = MIN (s->param->h, s->cfg->height * s->param->ydpi / 75) * mp->scale;
1080 /* the scanned image must be shrunk by factor "scale"
1085 * example (scale=2):
1093 unsigned wx, unsigned scale, unsigned c)
1100 /*PDBG (pixma_dbg (4, "%s: w=%d, wx=%d, c=%d, scale=%d\n",
1101 __func__, w, wx, c, scale));
1120 for (unsigned m = 0; m < scale; m++) /* get pixels from shrunk lines */
1122 for (unsigned n = 0; n < scale; n++) /* get pixels from same line */
1127 dst[ic] = pixel / (scale * scale);
1132 src += c * scale;
1218 /* scale image */
1219 if (mp->scale > 1)
1222 shrink_image(cptr, sptr, s->param->xs, s->param->w, s->param->wx, mp->scale, c);
1372 sp->xs = (sp->x * mp->scale) % 32;
1408 mp->scale = 1;
1411 mp->scale = s->cfg->min_xdpi / sp->xdpi;
1413 /*PDBG (pixma_dbg (4, "*mp150_check_param***** xdpi=%u, min_xdpi=%u, scale=%u *****\n",
1414 sp->xdpi, s->cfg->min_xdpi, mp->scale));*/