00001 /* sane - Scanner Access Now Easy. 00002 00003 Copyright (C) 2009 m. allan noah 00004 00005 This file is part of the SANE package. 00006 00007 SANE is free software; you can redistribute it and/or modify it 00008 under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 2 of the License, or 00010 (at your option) any later version. 00011 00012 SANE is distributed in the hope that it will be useful, but WITHOUT 00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00014 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 00015 License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with sane; see the file COPYING. If not, write to the Free 00019 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00020 00021 As a special exception, the authors of SANE give permission for 00022 additional uses of the libraries contained in this release of SANE. 00023 00024 The exception is that, if you link a SANE library with other files 00025 to produce an executable, this does not by itself cause the 00026 resulting executable to be covered by the GNU General Public 00027 License. Your use of that executable is in no way restricted on 00028 account of linking the SANE library code into it. 00029 00030 This exception does not, however, invalidate any other reasons why 00031 the executable file might be covered by the GNU General Public 00032 License. 00033 00034 If you submit changes to SANE to the maintainers to be included in 00035 a subsequent release, you agree by submitting the changes that 00036 those changes may be distributed with this exception intact. 00037 00038 If you write modifications of your own for SANE, it is your choice 00039 whether to permit this exception to apply to your modifications. 00040 If you do not wish that, delete this exception notice. 00041 */ 00042 00055 #ifndef SANEI_MAGIC_H 00056 #define SANEI_MAGIC_H 00057 00062 extern void sanei_magic_init( void ); 00063 00074 extern SANE_Status 00075 sanei_magic_despeck (SANE_Parameters * params, SANE_Byte * buffer, 00076 SANE_Int diam); 00077 00094 extern SANE_Status 00095 sanei_magic_findSkew(SANE_Parameters * params, SANE_Byte * buffer, 00096 int dpiX, int dpiY, int * centerX, int * centerY, double * finSlope); 00097 00112 extern SANE_Status 00113 sanei_magic_rotate (SANE_Parameters * params, SANE_Byte * buffer, 00114 int centerX, int centerY, double slope, int bg_color); 00115 00132 extern SANE_Status 00133 sanei_magic_findEdges(SANE_Parameters * params, SANE_Byte * buffer, 00134 int dpiX, int dpiY, int * top, int * bot, int * left, int * right); 00135 00150 extern SANE_Status 00151 sanei_magic_crop(SANE_Parameters * params, SANE_Byte * buffer, 00152 int top, int bot, int left, int right); 00153 00154 #endif /* SANEI_MAGIC_H */
1.5.6