1 /*
2    SANE EPSON backend
3    Copyright (C) 2001 SEIKO EPSON Corporation
4 
5    Date         Author      Reason
6    06/01/2001   N.Sasaki    New
7 
8    This file is part of the `iscan' program.
9 
10    This program is free software; you can redistribute it and/or modify
11    it under the terms of the GNU General Public License as published by
12    the Free Software Foundation; either version 2 of the License, or
13    (at your option) any later version.
14 
15    This program is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18    GNU General Public License for more details.
19 
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 
24    As a special exception, the copyright holders give permission
25    to link the code of this program with the esmod library and
26    distribute linked combinations including the two.  You must obey
27    the GNU General Public License in all respects for all of the
28    code used other then esmod.
29 */
30 
31 #ifndef ___PISA_DEFAULT_VAL_H
32 #define ___PISA_DEFAULT_VAL_H
33 
34 #define PREFERENCE	".iscan_preference"
35 
36 // gamma
37 #define DEFGAMMA	1.0
38 #define MINGAMMA	0.5
39 #define MAXGAMMA	5.0
40 #define LINEGAMMA	0.17
41 #define PAGEGAMMA	0.34
42 
43 // highlight
44 #define DEFHIGHLIGHT	245
45 #define MINHIGHLIGHT	61
46 #define MAXHIGHLIGHT	490
47 #define LINEHIGHLIGHT	15
48 #define PAGEHIGHLIGHT	30
49 
50 // shadow
51 #define DEFSHADOW	8
52 #define MINSHADOW	0
53 #define MAXSHADOW	60
54 #define LINESHADOW	1
55 #define PAGESHADOW	2
56 
57 // threshold
58 #define DEFTHRESHOLD	160
59 #define MINTHRESHOLD	0
60 #define MAXTHRESHOLD	255
61 #define LINETHRESHOLD	1
62 #define PAGETHRESHOLD	5
63 
64 // gray balance
65 #define DEFGRAYBALANCE	0
66 #define MINGRAYBALANCE	0
67 #define MAXGRAYBALANCE	100
68 #define LINEGRAYBALANCE	5
69 #define PAGEGRAYBALANCE	25
70 
71 // saturation
72 #define DEFSATURATION	0
73 #define MINSATURATION	-100
74 #define MAXSATURATION	100
75 #define LINESATURATION	5
76 #define PAGESATURATION	25
77 
78 // window position
79 #define POS_MAIN_X	20
80 #define POS_MAIN_Y	20
81 #define POS_CONFIG_X	100
82 #define POS_CONFIG_Y	100
83 #define POS_PRINT_X	100
84 #define POS_PRINT_Y	100
85 
86 #endif // ___PISA_DEFAULT_VAL_H
87 
88