1 /* sane - Scanner Access Now Easy. 2 Copyright (C) 2000-2003 Jochen Eisinger <jochen.eisinger@gmx.net> 3 This file is part of the SANE package. 4 5 This program is free software; you can redistribute it and/or 6 modify it under the terms of the GNU General Public License as 7 published by the Free Software Foundation; either version 2 of the 8 License, or (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, but 11 WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <https://www.gnu.org/licenses/>. 17 18 As a special exception, the authors of SANE give permission for 19 additional uses of the libraries contained in this release of SANE. 20 21 The exception is that, if you link a SANE library with other files 22 to produce an executable, this does not by itself cause the 23 resulting executable to be covered by the GNU General Public 24 License. Your use of that executable is in no way restricted on 25 account of linking the SANE library code into it. 26 27 This exception does not, however, invalidate any other reasons why 28 the executable file might be covered by the GNU General Public 29 License. 30 31 If you submit changes to SANE to the maintainers to be included in 32 a subsequent release, you agree by submitting the changes that 33 those changes may be distributed with this exception intact. 34 35 If you write modifications of your own for SANE, it is your choice 36 whether to permit this exception to apply to your modifications. 37 If you do not wish that, delete this exception notice. 38 39 This file implements the hardware driver scanners using a 300dpi CCD */ 40 #ifndef __MUSTEK_PP_CCD300_H 41 #define __MUSTEK_PP_CCD300_H 42 43 44 /* i might sort and comment this struct one day... */ 45 46 typedef struct 47 { 48 unsigned char asic; 49 unsigned char ccd_type; 50 int top; 51 int motor_stop; 52 int bank_count; 53 unsigned int wait_bank; 54 int hwres; 55 int adjustskip; 56 int ref_black; 57 int ref_red; 58 int ref_green; 59 int ref_blue; 60 int res_step; 61 int blackpos; 62 int motor_step; 63 int saved_skipcount; 64 int channel; 65 int saved_mode; 66 int saved_invert; 67 int skipcount; 68 int saved_skipimagebyte; 69 int skipimagebytes; 70 int saved_adjustskip; 71 int saved_res; 72 int saved_hwres; 73 int saved_res_step; 74 int saved_line_step; 75 int line_step; 76 int saved_channel; 77 unsigned char *calib_g; 78 unsigned char *calib_r; 79 unsigned char *calib_b; 80 int line_diff; 81 int bw; 82 unsigned char **red; 83 unsigned char **blue; 84 unsigned char *green; 85 int redline; 86 int blueline; 87 int ccd_line; 88 int rdiff; 89 int bdiff; 90 int gdiff; 91 int green_offs; 92 int blue_offs; 93 int motor_phase; 94 int image_control; 95 int lines; 96 int lines_left; 97 } 98 mustek_pp_ccd300_priv; 99 100 #endif 101