3
* Copyright (C) 1999 Craig Setera
4
* Craig Setera <setera@home.com>
7
* Updated for Mac OS X support
8
* Brion Vibber <brion@pobox.com>
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* (at your option) any later version.
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
21
* You should have received a copy of the GNU General Public License
22
* along with this program; if not, write to the Free Software
23
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
* Based on (at least) the following plug-ins:
31
* Any suggestions, bug-reports or patches are welcome.
33
* This plug-in interfaces to the TWAIN support library in order
34
* to capture images from TWAIN devices directly into GIMP images.
35
* The plug-in is capable of acquiring the following type of
37
* - B/W (1 bit images translated to grayscale B/W)
38
* - Grayscale up to 16 bits per pixel
39
* - RGB up to 16 bits per sample (24, 30, 36, etc.)
40
* - Paletted images (both Gray and RGB)
43
* Should compile and run on both Win32 and Mac OS X 10.3 (possibly
47
* - Multiple image transfers will hang the plug-in. The current
48
* configuration compiles with a maximum of single image transfers.
49
* - On Mac OS X, canceling doesn't always close things out fully.
50
* - Epson TWAIN driver on Mac OS X crashes the plugin when scanning.
55
* (02/07/99) v0.1 First working version (internal)
56
* (02/09/99) v0.2 First release to anyone other than myself
57
* (02/15/99) v0.3 Added image dump and read support for debugging
58
* (03/31/99) v0.5 Added support for multi-byte samples and paletted
60
* (07/23/04) v0.6 Added Mac OS X support.
65
#include "tw_platform.h"
67
void LogMessage(char *, ...);
70
void logBegin(pTW_IMAGEINFO, void *);
71
void logData(pTW_IMAGEINFO, pTW_IMAGEMEMXFER, void *);
74
#endif /* __TW_UTIL_H */