Lines Matching defs:hwdcfg
222 struct st_hwdconfig *hwdcfg);
241 struct st_hwdconfig *hwdcfg,
244 struct st_hwdconfig *hwdcfg,
263 struct st_hwdconfig *hwdcfg,
274 struct st_hwdconfig *hwdcfg,
355 struct st_hwdconfig *hwdcfg,
579 struct st_hwdconfig *hwdcfg);
1558 struct st_hwdconfig hwdcfg;
1613 memset (&hwdcfg, 0, sizeof (struct st_hwdconfig));
1616 hwdcfg.scantype = scan.scantype;
1617 hwdcfg.calibrate = mybuffer[0];
1618 hwdcfg.arrangeline = arrangeline; /*1 */
1619 hwdcfg.highresolution = (scan.resolution_x > 1200) ? TRUE : FALSE;
1620 hwdcfg.sensorevenodddistance = dev->sensorcfg->evenodd_distance;
1622 SetScanParams (dev, dev->init_regs, &scan, &hwdcfg);
1637 struct st_scanparams *scancfg, struct st_hwdconfig *hwdcfg)
1650 dbg_hwdcfg (hwdcfg);
1658 scantype = hwdcfg->scantype;
1667 mycolormode = (hwdcfg->arrangeline != FIX_BY_SOFT) ? 3 : CM_COLOR;
1677 mymode = RTS_GetScanmode (dev, hwdcfg->scantype, myvalue, scancfg->resolution_x); /*0x0b */
1684 Scanmode_fitres (dev, hwdcfg->scantype, scancfg->colormode,
1695 Scanmode_maxres (dev, hwdcfg->scantype, scancfg->colormode);
1702 RTS_GetScanmode (dev, hwdcfg->scantype, myvalue, scan2.resolution_x);
1773 8)) ? hwdcfg->compression : FALSE;
1777 else if ((mycolormode == CM_GRAY) && (hwdcfg->highresolution == FALSE))
1780 if (hwdcfg->highresolution == FALSE)
1791 hwdcfg->sensorevenodddistance;
4713 struct st_scanparams *scancfg, struct st_hwdconfig *hwdcfg,
4718 DBG (DBG_FNC, "+ Gamma_Apply(*Regs, *scancfg, *hwdcfg, *mygamma):\n");
4721 if (hwdcfg->use_gamma_tables == FALSE)
8064 struct st_hwdconfig hwdcfg;
8074 memset (&hwdcfg, 0, sizeof (struct st_hwdconfig));
8131 hwdcfg.calibrate = RTS_Debug->calibrate;
8139 hwdcfg.arrangeline = 0;
8211 hwdcfg.scantype = scan.scantype;
8212 hwdcfg.motor_direction = MTR_FORWARD;
8221 hwdcfg.sensorevenodddistance = dev->sensorcfg->evenodd_distance;
8222 hwdcfg.highresolution = (scancfg.resolution_x <= 1200) ? FALSE : TRUE;
8242 hwdcfg.compression = TRUE;
8245 hwdcfg.arrangeline = arrangeline;
8252 hwdcfg.arrangeline = FIX_BY_SOFT;
8255 hwdcfg.arrangeline = FIX_BY_SOFT;
8348 hwdcfg.use_gamma_tables = TRUE;
8353 hwdcfg.white_shading = TRUE;
8354 hwdcfg.black_shading = TRUE;
8355 hwdcfg.unk3 = 0;
8356 RTS_Setup (dev, Regs, &scancfg, &hwdcfg, &calibdata->gain_offset);
8371 Gamma_Apply (dev, Regs, &scancfg, &hwdcfg, hp_gamma);
8380 RTS_Setup (dev, Regs, &scancfg, &hwdcfg, default_gain_offset);
8383 RTS_Debug->calibrate = hwdcfg.calibrate;
8680 struct st_hwdconfig *hwdcfg, SANE_Int mycolormode,
8694 if (hwdcfg->highresolution == TRUE)
8696 (hwdcfg->sensorevenodddistance * scancfg->resolution_y) /
8718 if (hwdcfg->highresolution == FALSE)
8736 hwdcfg->sensorevenodddistance) * scan2.resolution_y;
8755 "> RTS_Setup_Line_Distances(*Regs, *scancfg, *hwdcfg, mycolormode=%i, arrangeline=%i): %i\n",
8813 struct st_hwdconfig *hwdcfg, SANE_Int bytes_per_line)
8816 "> RTS_Setup_Shading(*Regs, *scancfg, *hwdcfg, bytes_per_line=%i)\n",
8819 if ((Regs != NULL) && (hwdcfg != NULL))
8828 data_bitset (&Regs[0x1bf], 0x18, hwdcfg->unk3); /*---xx---*/
8831 data_bitset (&Regs[0x1cf], 0x08, hwdcfg->black_shading); /*----x---*/
8834 data_bitset (&Regs[0x1cf], 0x04, hwdcfg->white_shading); /*-----x--*/
8836 if ((hwdcfg->white_shading != FALSE) && (hwdcfg->black_shading != FALSE)
8837 && (hwdcfg->unk3 != 0))
8842 /* if hwdcfg->black_shading */
8846 /* if hwdcfg->white_shading */
8930 RTS_Setup_Arrangeline (struct st_device *dev, struct st_hwdconfig *hwdcfg,
8934 (colormode == CM_LINEART) ? FALSE : hwdcfg->compression;
8937 || ((colormode == CM_GRAY) && (hwdcfg->highresolution == FALSE)))
8940 arrangeline2 = hwdcfg->arrangeline;
8942 dev->scanning->arrange_hres = hwdcfg->highresolution;
8944 (hwdcfg->highresolution == FALSE) ? 0 : hwdcfg->sensorevenodddistance;
9042 struct st_scanparams *scancfg, struct st_hwdconfig *hwdcfg,
9051 dbg_hwdcfg (hwdcfg);
9062 mycolormode = (hwdcfg->arrangeline != FIX_BY_SOFT) ? 3 : CM_COLOR;
9071 scantype = hwdcfg->scantype;
9092 hwdcfg->motorplus = sm->motorplus;
9101 RTS_Setup_Arrangeline (dev, hwdcfg, mycolormode);
9105 RTS_Setup_Line_Distances (dev, Regs, scancfg, hwdcfg, mycolormode,
9129 data_bitset (&Regs[0xd8], 0x80, ((hwdcfg->static_head == FALSE) ? 1 : 0)); /*x------- */
9132 RTS_Setup_Gamma (Regs, hwdcfg);
9135 RTS_Setup_Shading (Regs, scancfg, hwdcfg, bytes_per_line);
9138 hwdcfg->startpos =
9140 hwdcfg->motor_direction | MTR_ENABLED);
9166 data_bitset (&Regs[0x01], 0x10, hwdcfg->dummy_scan); /*---x----*/
9838 hwdcfg e838
10266 struct st_scanparams *scancfg, struct st_hwdconfig *hwdcfg)
10270 hwdcfg faac = */
10274 DBG (DBG_FNC, "+ RTS_GetImage_Read(buffer, scancfg, hwdcfg):\n");
10286 if (hwdcfg != NULL)
10287 if (hwdcfg->compression != FALSE)
10333 struct st_hwdconfig *hwdcfg;
10338 hwdcfg =
10340 if (hwdcfg != NULL)
10342 memset (hwdcfg, 0, sizeof (struct st_hwdconfig));
10353 hwdcfg->scantype = scan.scantype;
10354 hwdcfg->use_gamma_tables =
10356 hwdcfg->white_shading =
10358 hwdcfg->black_shading =
10360 hwdcfg->motor_direction =
10363 hwdcfg->compression =
10365 hwdcfg->static_head =
10367 hwdcfg->dummy_scan = (buffer == NULL) ? TRUE : FALSE;
10368 hwdcfg->arrangeline = 0;
10369 hwdcfg->highresolution =
10371 hwdcfg->unk3 = 0;
10390 RTS_Setup (dev, Regs, myscancfg, hwdcfg, gain_offset);
10408 RTS_Setup (dev, myRegs, &scan, hwdcfg,
10457 myscancfg->coord.top += hwdcfg->startpos;
10496 RTS_GetImage_Read (dev, buffer, myscancfg, hwdcfg); /*92e7 */
10518 free (hwdcfg);
14032 RTS_Setup_Gamma (SANE_Byte * Regs, struct st_hwdconfig *hwdcfg)
14034 DBG (DBG_FNC, "> RTS_Setup_Gamma(*Regs, *hwdcfg)\n");
14036 if ((hwdcfg != NULL) && (Regs != NULL))
14038 if (hwdcfg->use_gamma_tables != FALSE)
14043 data_bitset (&Regs[0x1d0], 0x0f, hwdcfg->gamma_tablesize);
14061 table_size = hwdcfg->startpos & 0xffff;