Lines Matching refs:scan2

1381 	  (dev->sensorcfg->line_distance * scan2.resolution_y) /
1413 scn->channel_size = (scan2.depth == 8) ? 1 : 2;
1423 if ((((dev->sensorcfg->line_distance * scan2.resolution_y) *
1653 /* Copy scancfg to scan2 */
1654 memcpy (&scan2, scancfg, sizeof (struct st_scanparams));
1661 scan2.depth = 8;
1698 scan2.resolution_x = fitres;
1699 scan2.resolution_y = fitres;
1702 RTS_GetScanmode (dev, hwdcfg->scantype, myvalue, scan2.resolution_x);
1711 (scan2.resolution_x * scancfg->coord.left) /
1714 (scan2.resolution_x * scancfg->coord.width) /
1717 (scan2.resolution_y * scancfg->coord.top) / dev->Resize->resolution_y;
1719 ((scan2.resolution_y * scancfg->coord.height) /
1722 switch (scan2.colormode)
1729 channel_size = (scan2.depth == 8) ? 1 : 2;
1730 dev->Resize->mode = (scan2.depth == 8) ? RSZ_GRAYL : RSZ_GRAYH;
1742 channel_size = (scan2.depth == 8) ? 1 : 2;
1743 dev->Resize->mode = (scan2.depth == 8) ? RSZ_COLOURL : RSZ_COLOURH;
1753 scan2.resolution_x = scancfg->resolution_x;
1754 scan2.resolution_y = scancfg->resolution_y;
1763 scan2.sensorresolution = dev->timings[scancfg->timing]->sensorresolution;
1765 scan2.shadinglength =
1766 (((scan2.sensorresolution * 17) / 2) + 3) & 0xfffffffc;
1768 scancfg->sensorresolution = scan2.sensorresolution;
1769 scancfg->shadinglength = scan2.shadinglength;
1772 && (scan2.depth <=
1798 dots_per_block = ((scan2.resolution_x > 2400)
1848 channel_size = (scan2.depth == 8) ? 1 : 2;
1870 scancfg->resolution_x = scan2.resolution_x;
1871 scancfg->resolution_y = scan2.resolution_y;
5516 SetLock (dev->usb_handle, NULL, (scan2.depth == 16) ? FALSE : TRUE);
5550 channel_size = (scan2.depth > 8) ? 2 : 1;
5637 if ((scn->arrange_hres == TRUE) || (scan2.colormode == CM_LINEART))
5647 scn->channel_size = (scan2.depth == 8) ? 1 : 2;
5672 if (scan2.colormode == CM_LINEART)
6088 if (scan2.colormode == CM_COLOR)
6102 scan2.resolution_x, rz->fromwidth, rz->mode);
6108 scan2.resolution_x, rz->fromwidth, rz->mode);
6112 if (scan2.colormode == CM_COLOR)
6122 scan2.resolution_x, rz->fromwidth, rz->mode);
6396 (scan2.depth == 12) ? (bytesperline * 3) / 4 : bytesperline;
6526 mycolormode = scan2.colormode;
6528 if ((scan2.colormode != CM_COLOR) && (scan2.channel == 3))
6581 channel_size = (scan2.depth == 8) ? 1 : 2;
6590 (dev->sensorcfg->line_distance * scan2.resolution_y) /
6625 if ((((dev->sensorcfg->line_distance * scan2.resolution_y) *
6754 Channel_size = (scan2.depth > 8) ? 2 : 1;
6755 max_value = (1 << scan2.depth) - 1;
6768 if (scan2.depth > 8)
6786 if (scan2.depth > 8)
6818 if (scan2.depth > 8)
6891 Channel_size = (scan2.depth > 8) ? 2 : 1;
6892 max_value = (1 << scan2.depth) - 1;
6906 if (scan2.depth > 8)
6933 if (scan2.depth > 8)
7019 channel_size = (scan2.depth > 8) ? 2 : 1;
7066 channel_size = (scan2.depth > 8) ? 2 : 1;
7101 /* fa64 = scan2.resolution_y */
7102 /* fa6c = scan2.resolution_x */
7116 if (scan2.colormode == CM_COLOR)
7127 rz->v3624, scan2.resolution_x, rz->fromwidth,
7131 if (rz->rescount > scan2.resolution_y)
7134 rz->rescount -= scan2.resolution_y;
7135 if (scan2.depth == 8)
7164 value += (scan2.resolution_y - rz->rescount);
7180 _B0 ((((scan2.resolution_y -
7183 scan2.resolution_y);
7204 (((scan2.resolution_y -
7208 scan2.resolution_y;
7237 rz->rescount += scan2.resolution_y;
7288 channel_size = (scan2.depth > 8) ? 2 : 1;
7290 if (rz->rescount < scan2.resolution_y)
7299 (((scan2.resolution_y -
7303 scan2.resolution_y;
7324 if (scan2.colormode == CM_COLOR)
7341 scan2.resolution_x, rz->fromwidth, rz->mode);
7448 if (scan2.depth == 12)
7482 channel_size = (scan2.depth > 8) ? 2 : 1;
7591 scan2:
7611 if ((scan2.colormode != CM_COLOR) && (scan2.channel == 3)
7615 return Read_NonColor_Block (dev, buffer, buffer_size, scan2.colormode,
7633 if (scan2.depth == 12)
7671 && (scan2.scantype == ST_NORMAL))
7673 scan2.depth);
8723 (dev->sensorcfg->line_distance * scan2.resolution_y) * 2;
8736 hwdcfg->sensorevenodddistance) * scan2.resolution_y;
8739 dev->sensorcfg->line_distance * scan2.resolution_y;
9069 memcpy (&scan2, scancfg, sizeof (struct st_scanparams));