1 /* sane - Scanner Access Now Easy. 2 3 ScanMaker 3840 Backend 4 Copyright (C) 2005-7 Earle F. Philhower, III 5 earle@ziplabel.com - http://www.ziplabel.com 6 7 This program is free software; you can redistribute it and/or 8 modify it under the terms of the GNU General Public License as 9 published by the Free Software Foundation; either version 2 of the 10 License, or (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, but 13 WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program. If not, see <https://www.gnu.org/licenses/>. 19 20 As a special exception, the authors of SANE give permission for 21 additional uses of the libraries contained in this release of SANE. 22 23 The exception is that, if you link a SANE library with other files 24 to produce an executable, this does not by itself cause the 25 resulting executable to be covered by the GNU General Public 26 License. Your use of that executable is in no way restricted on 27 account of linking the SANE library code into it. 28 29 This exception does not, however, invalidate any other reasons why 30 the executable file might be covered by the GNU General Public 31 License. 32 33 If you submit changes to SANE to the maintainers to be included in 34 a subsequent release, you agree by submitting the changes that 35 those changes may be distributed with this exception intact. 36 37 If you write modifications of your own for SANE, it is your choice 38 whether to permit this exception to apply to your modifications. 39 If you do not wish that, delete this exception notice. 40 41 */ 42 43 #ifndef _SM3840_Params 44 #define _SM3840_Params 45 typedef struct SM3840_Params 46 { 47 int gray; /* 0, 1 */ 48 int halftone; /* 0, 1 (also set gray=1) */ 49 int lineart; /* 0, 1 (also set gray=1) */ 50 51 int dpi; /* 150, 300, 600, 1200 */ 52 int bpp; /* 8, 16 */ 53 54 double gain; /* 0.01...9.9 */ 55 int offset; /* 0..4095 */ 56 57 int lamp; /* 1..15 mins */ 58 59 int threshold; /* 0...255 luminosity */ 60 61 /* Input to configure(), in inches */ 62 double top, left; 63 double width, height; 64 65 /* Output from configure(), in pixels */ 66 int topline; 67 int scanlines; 68 int leftpix; 69 int scanpix; 70 int linelen; /* bytes per line */ 71 } SM3840_Params; 72 #endif 73