summaryrefslogtreecommitdiff
path: root/src/scanner.h
diff options
context:
space:
mode:
authorAlessio Treglia <alessio@debian.org>2010-08-16 14:20:18 +0200
committerAlessio Treglia <alessio@debian.org>2010-08-16 14:20:18 +0200
commit37152f58469b7595694f7c42555d21d5198e3672 (patch)
tree5f23e309f8923a417fcc7e177a95bef584362fa7 /src/scanner.h
parent2a72bdeb81030847462135698e1cbff1c685ee18 (diff)
parentbbf22aaaa2fd5fe725a979f801472d52a1323242 (diff)
Merge commit 'upstream/2.31.90.1'
Diffstat (limited to 'src/scanner.h')
-rw-r--r--src/scanner.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/scanner.h b/src/scanner.h
index 5acdc84..72a4ffd 100644
--- a/src/scanner.h
+++ b/src/scanner.h
@@ -33,6 +33,9 @@ typedef struct
/* Bit depth */
gint depth;
+ /* Number of colour channels */
+ gint n_channels;
+
/* Resolution */
gdouble dpi;
@@ -50,14 +53,9 @@ typedef struct
/* Width in pixels and format */
gint width, depth;
- enum
- {
- LINE_GRAY,
- LINE_RGB,
- LINE_RED,
- LINE_GREEN,
- LINE_BLUE
- } format;
+
+ /* Channel for this line or -1 for all channels */
+ gint channel;
/* Raw line data */
guchar *data;