Lines Matching refs:param
267 return (s->param->source == PIXMA_SOURCE_ADF
268 || s->param->source == PIXMA_SOURCE_ADFDUP);
273 return (s->param->source == PIXMA_SOURCE_ADFDUP);
278 return (s->param->source == PIXMA_SOURCE_TPU);
387 switch (s->param->source)
445 const uint8_t *lut = s->param->gamma_table;
451 data[0] = (s->param->channels == 3) ? 0x10 : 0x01;
463 s->param->gamma));
464 pixma_fill_gamma_table (s->param->gamma, data + 4, 4096);
484 s->param->gamma));
485 pixma_fill_gamma_table (s->param->gamma, data + 4, 1024);
493 const pixma_scan_param_t * param)
501 raw_width = ALIGN_SUP (param->w + param->xs, 32);
502 /* PDBG (pixma_dbg (4, "*calc_raw_width***** width %u extended by %u and rounded to %u *****\n", param->w, param->xs, raw_width)); */
504 else if (param->channels == 1)
506 raw_width = ALIGN_SUP (param->w + param->xs, 12);
510 raw_width = ALIGN_SUP (param->w + param->xs, 4);
523 return (s->param->mode == PIXMA_SCAN_MODE_COLOR);
528 return (s->param->mode == PIXMA_SCAN_MODE_COLOR_48);
533 return (s->param->mode == PIXMA_SCAN_MODE_NEGATIVE_COLOR);
544 return (s->param->mode == PIXMA_SCAN_MODE_GRAY);
549 return (s->param->mode == PIXMA_SCAN_MODE_GRAY_16);
554 return (s->param->mode == PIXMA_SCAN_MODE_NEGATIVE_GRAY);
564 return (s->param->mode == PIXMA_SCAN_MODE_LINEART);
569 return (s->param->mode == PIXMA_SCAN_MODE_TPUIR);
577 s->param->wx ? s->param->line_size / s->param->w * s->param->wx
578 : s->param->line_size)
596 if (s->param->xdpi == 2400)
603 if (s->param->ydpi > 75)
605 mp->color_shift = s->param->ydpi / ((s->param->ydpi < 1200) ? 150 : 75);
608 mp->color_shift = s->param->ydpi / 75;
628 if (s->param->xdpi == 4800)
639 if (s->param->xdpi == 4800)
646 if (s->param->xdpi == 9600)
661 if (s->param->xdpi == 2400)
668 if (s->param->xdpi == 4800)
685 if (s->param->xdpi == 2400)
692 if (s->param->xdpi == 4800)
709 if (s->param->xdpi == 4800)
730 if (s->param->ydpi > 75)
736 mp->color_shift = s->param->ydpi / 50;
744 mp->color_shift = s->param->ydpi / 30;
753 if (s->param->ydpi > 150)
755 mp->color_shift = s->param->ydpi / 75;
764 mp->color_shift = s->param->ydpi / 50;
766 mp->color_shift = s->param->ydpi / 50;
803 unsigned raw_width = calc_raw_width (mp, s->param);
813 h1 = s->param->h + shifting; /* add lines for color shifting */
821 h2 = s->cfg->height * s->param->ydpi / 75 + shifting;
822 /* PDBG (pixma_dbg (4, "* send_scan_param: height calc (choose lesser) 2 %u = %u max. lines for scanner + %u lines for color shifting \n", h2, s->cfg->height * s->param->ydpi / 75, shifting )); */
827 h2 = s->cfg->height * s->param->ydpi / 75; /* this might be causing problems for generation 1 devices */
835 pixma_set_be16 (s->param->xdpi | 0x8000, data + 0x04);
836 pixma_set_be16 (s->param->ydpi | 0x8000, data + 0x06);
837 pixma_set_be32 (s->param->x, data + 0x08);
839 pixma_set_be32 (s->param->x - s->param->xs, data + 0x08);
840 pixma_set_be32 (s->param->y, data + 0x0c);
844 ((s->param->channels != 1) || is_gray_all (s) || is_lineart (s)) ?
846 data[0x19] = ((s->param->software_lineart) ? 8 : s->param->depth)
847 * ((is_gray_all (s) || is_lineart (s)) ? 3 : s->param->channels); /* bits per pixel */
945 pixma_set_be16 (s->param->xdpi | 0x8000, data + 0x08);
946 pixma_set_be16 (s->param->ydpi | 0x8000, data + 0x0a);
948 s->param->xdpi,s->param->ydpi,(s->param->x)-(s->param->xs),s->param->y,raw_width,h));*/
949 pixma_set_be32 (s->param->x - s->param->xs, data + 0x0c);
950 pixma_set_be32 (s->param->y, data + 0x10);
953 data[0x1c] = ((s->param->channels != 1) || is_tpuir (s) || is_gray_all (s) || is_lineart (s)) ? 0x08 : 0x04;
959 : (((s->param->software_lineart) ? 8 : s->param->depth)
960 * ((is_tpuir (s) || is_gray_all (s) || is_lineart (s)) ? 3 : s->param->channels)); /* bits per pixel */
991 if (s->param->mode == PIXMA_SCAN_MODE_NEGATIVE_COLOR
992 || s->param->mode == PIXMA_SCAN_MODE_NEGATIVE_GRAY)
1010 if (s->param->mode == PIXMA_SCAN_MODE_TPUIR)
1622 c = ((is_tpuir (s) || is_gray_all (s) || is_lineart (s)) ? 3 : s->param->channels)
1623 * ((s->param->software_lineart) ? 8 : s->param->depth) / 8;
1624 cw = c * s->param->w;
1625 cx = c * s->param->xs;
1630 n = s->param->xdpi / 600;
1633 n = s->param->xdpi / 2400;
1641 if ((s->cfg->pid == CS9000F_PID || s->cfg->pid == CS9000F_MII_PID) && (s->param->xdpi == 9600))
1649 if ((s->cfg->pid == MP960_PID) && (s->param->xdpi == 4800) && (test > 0))
1654 m = (n > 0) ? s->param->wx / n : 1;
1674 /* height = MIN (s->param->h + calc_shifting (s),
1675 s->cfg->height * s->param->ydpi / 75); */
1679 if ((s->cfg->pid == CS9000F_PID || s->cfg->pid == CS9000F_MII_PID) && (s->param->xdpi == 9600) && (test > 0))
1691 if ((s->cfg->pid == MP960_PID) && (s->param->xdpi == 4800) && (test > 0))
1710 c, n, m, s->param->wx, line_size)); */
1713 if (((s->cfg->pid == CS9000F_PID || s->cfg->pid == CS9000F_MII_PID) && (s->param->xdpi == 9600))
1714 || ((s->cfg->pid == MP960_PID) && (s->param->xdpi == 4800))
1715 || ((s->cfg->pid == MP810_PID) && (s->param->xdpi == 4800)))
1717 dptr = shift_colorsCS9000 (dptr, sptr, s->param->wx, s->param->xdpi,
1724 && ((s->param->mode == PIXMA_SCAN_MODE_COLOR_48)
1725 || (s->param->mode == PIXMA_SCAN_MODE_GRAY_16))
1726 && (s->param->xdpi == 4800)
1727 && (s->param->source == PIXMA_SOURCE_FLATBED))
1728 dptr = shift_colorsCS9000_4800 (dptr, sptr, s->param->wx,
1729 s->param->xdpi, s->cfg->pid, c,
1736 dptr = shift_colors (dptr, sptr, s->param->wx, s->param->xdpi,
1744 if ((((s->cfg->pid != CS9000F_PID && s->cfg->pid != CS9000F_MII_PID) || (s->param->xdpi < 9600))
1745 && ((s->cfg->pid != MP960_PID) || (s->param->xdpi < 4800))
1746 && ((s->cfg->pid != MP810_PID) || (s->param->xdpi < 4800)))
1751 if (!((s->cfg->pid == MP810_PID) && (s->param->xdpi == 4800))
1752 && !((s->cfg->pid == MP960_PID) && (s->param->xdpi == 4800))
1753 && !((s->cfg->pid == CS9000F_PID || s->cfg->pid == CS9000F_MII_PID) && (s->param->xdpi == 9600)))
1756 reorder_pixels (mp->linebuf, sptr, c, n, m, s->param->wx, line_size);
1759 if ((s->cfg->pid == CS9000F_PID || s->cfg->pid == CS9000F_MII_PID) && (s->param->xdpi == 9600))
1764 s->param->wx, line_size);
1766 cs9000f_second_reorder_pixels (mp->linebuf, sptr, c, s->param->wx,
1773 if ((((s->cfg->pid == MP960_PID) || (s->cfg->pid == MP810_PID)) && (s->param->xdpi == 4800))
1778 mp960_reorder_pixels (mp->linebuf, sptr, c, n, m, s->param->wx,
1785 || s->cfg->pid == MP990_PID) && (s->param->xdpi == 4800))
1788 mp970_reorder_pixels (mp->linebuf, sptr, c, s->param->wx, line_size);
1802 cptr = gptr = pixma_binarize_line (s->param, gptr, cptr, s->param->w, c);
1806 cptr = gptr = pixma_r_to_ir (gptr, cptr, s->param->w, c);
1813 cptr = gptr = pixma_rgb_to_gray (gptr, cptr, s->param->w, c);
2129 if (mp->generation == 4 && s->param->adf_pageid == 0)
2183 if (s->param->adf_pageid == 0 || mp->generation <= 2)