From 34ba0094150d19af8bc480b10497bc003d9402ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Voltz?= Date: Sun, 5 Jan 2003 07:37:54 +0000 Subject: [PATCH] - made /dev/parport0 the default device for scanning - small picture quamity improvement --- ChangeLog | 5 +++++ backend/umax_pp.conf | 8 ++++---- backend/umax_pp_low.c | 10 ++++++---- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5e8b4f77c..e9cd51555 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-01-05 Stéphane Voltz + + * backend/umax_pp_low.c: small image quality improvement + * backend/umax_pp.conf: ppdev device is now default option + 2003-01-04 Henning Meier-Geinitz * frontend/saned.c: Print version number. diff --git a/backend/umax_pp.conf b/backend/umax_pp.conf index f4a24a220..78f5e1aa1 100644 --- a/backend/umax_pp.conf +++ b/backend/umax_pp.conf @@ -10,10 +10,10 @@ option buffer 2097152 # specify the port your scanner is connected to. Possible are 0x378 (lp0) # 0x278 (lp2) and 0x3c8 (lp1) -# on linux systems, you may provide the device name of the ppdev character device -# /dev/parport0, /dev/parport1, ...... -# default is direct hardware access since ppdev is available for linux only -port 0x378 +# on linux systems, you may provide the device name of the ppdev character +# device : /dev/parport0, /dev/parport1, ...... +# default is ppdev since major use of the backend is for linux +port /dev/parport0 # the following options are local to this scanner # gain for red channel, if not given, will be automatically computed diff --git a/backend/umax_pp_low.c b/backend/umax_pp_low.c index c8bb5606b..1aa7dfe35 100644 --- a/backend/umax_pp_low.c +++ b/backend/umax_pp_low.c @@ -1,4 +1,4 @@ -/* sane - Scanner Access Now Easy. +/** Copyright (C) 2001 Stéphane Voltz This file is part of the SANE package. @@ -7813,6 +7813,7 @@ sanei_umax_pp_StartScan (int x, int y, int width, int height, int dpi, -1 }; + #ifdef UMAX_PP_DANGEROUS_EXPERIMENT FILE *f = NULL; char line[1024], *ptr; @@ -8146,8 +8147,10 @@ sanei_umax_pp_StartScan (int x, int y, int width, int height, int dpi, if (color >= RGB_MODE) { - opsc53[6] = 0x00; opsc53[7] = 0x2F; + /* 00 seems to give better results ? */ + /* 80 some more gain, lamp power level ? */ + /* 8x does not make much difference */ opsc04[6] = 0x8F; if (sanei_umax_pp_getastra () == 1600) { @@ -8156,13 +8159,12 @@ sanei_umax_pp_StartScan (int x, int y, int width, int height, int dpi, } else { - opsc04[7] = 0xA0; + opsc04[7] = 0xF0; opsc53[13] = 0x09; } } else { - opsc53[6] = 0x60; opsc53[7] = 0x40; opsc53[13] = 0xC0; opsc04[6] = 0x80 | ((gain / 16) & 0x0F);