~ubuntu-branches/ubuntu/maverick/gimp/maverick-updates

« back to all changes in this revision

Viewing changes to plug-ins/twain/tw_util.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-12-09 19:44:52 UTC
  • Revision ID: james.westby@ubuntu.com-20051209194452-yggpemjlofpjqyf4
Tags: upstream-2.2.9
ImportĀ upstreamĀ versionĀ 2.2.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * TWAIN Plug-in
 
3
 * Copyright (C) 1999 Craig Setera
 
4
 * Craig Setera <setera@home.com>
 
5
 * 03/31/1999
 
6
 *
 
7
 * Updated for Mac OS X support
 
8
 * Brion Vibber <brion@pobox.com>
 
9
 * 07/22/2004
 
10
 *
 
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.
 
15
 *
 
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.
 
20
 *
 
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.
 
24
 *
 
25
 *
 
26
 * Based on (at least) the following plug-ins:
 
27
 * Screenshot
 
28
 * GIF
 
29
 * Randomize
 
30
 *
 
31
 * Any suggestions, bug-reports or patches are welcome.
 
32
 *
 
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
 
36
 * images:
 
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)
 
41
 *
 
42
 * Prerequisites:
 
43
 * Should compile and run on both Win32 and Mac OS X 10.3 (possibly
 
44
 * also on 10.2).
 
45
 *
 
46
 * Known problems:
 
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.
 
51
 */
 
52
 
 
53
/*
 
54
 * Revision history
 
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
 
59
 *                     images.
 
60
 *  (07/23/04)  v0.6   Added Mac OS X support.
 
61
 */
 
62
#ifndef __TW_UTIL_H
 
63
#define __TW_UTIL_H
 
64
 
 
65
#include "tw_platform.h"
 
66
 
 
67
void LogMessage(char *, ...);
 
68
 
 
69
#ifdef _DEBUG
 
70
void logBegin(pTW_IMAGEINFO, void *);
 
71
void logData(pTW_IMAGEINFO, pTW_IMAGEMEMXFER, void *);
 
72
#endif
 
73
 
 
74
#endif /* __TW_UTIL_H */