summaryrefslogtreecommitdiff
path: root/backend/kodak-cmd.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 16:59:49 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2019-07-31 16:59:49 +0200
commit1687222e1b9e74c89cafbb5910e72d8ec7bfd40f (patch)
treed78102ce30207c63e7608eeba743efd680c888dc /backend/kodak-cmd.h
parent58912f68c2489bcee787599837447e0d64dfd61a (diff)
New upstream version 1.0.28upstream/1.0.28
Diffstat (limited to 'backend/kodak-cmd.h')
-rw-r--r--backend/kodak-cmd.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/backend/kodak-cmd.h b/backend/kodak-cmd.h
index 9f9880e..995d622 100644
--- a/backend/kodak-cmd.h
+++ b/backend/kodak-cmd.h
@@ -1,9 +1,9 @@
#ifndef KODAK_CMD_H
#define KODAK_CMD_H
-/*
+/*
* Part of SANE - Scanner Access Now Easy.
- *
+ *
* Please see to opening comments in kodak.c
*/
@@ -27,7 +27,7 @@ getnbyte (unsigned char *pnt, int nbytes)
{
unsigned int result = 0;
int i;
-
+
for (i = 0; i < nbytes; i++)
result = (result << 8) | (pnt[i] & 0xff);
return result;
@@ -37,7 +37,7 @@ static void
putnbyte (unsigned char *pnt, unsigned int value, unsigned int nbytes)
{
int i;
-
+
for (i = nbytes - 1; i >= 0; i--) {
pnt[i] = value & 0xff;
value = value >> 8;
@@ -398,7 +398,7 @@ putnbyte (unsigned char *pnt, unsigned int value, unsigned int nbytes)
/* output */
#define set_SR_datatype_code(sb, val) sb[0x02] = val
#define SR_datatype_imagedata 0x00
-#define SR_datatype_random 0x80
+#define SR_datatype_random 0x80
#define SR_datatype_imageheader 0x81
#define SR_len_imageheader 1088
@@ -416,11 +416,11 @@ putnbyte (unsigned char *pnt, unsigned int value, unsigned int nbytes)
#define get_SR_ih_length(in) getnbyte(in + 23, 4)
#define get_SR_ih_bpp(in) in[27]
#define get_SR_ih_comp_type(in) in[28]
-#define get_SR_ih_ACD(in) getbit(in + 29, 1, 5)
-#define get_SR_ih_MF(in) getbit(in + 29, 1, 4)
-#define get_SR_ih_RIF(in) getbit(in + 29, 1, 2)
-#define get_SR_ih_ID(in) getbit(in + 29, 1, 1)
-#define get_SR_ih_DE(in) getbit(in + 29, 1, 0)
+#define get_SR_ih_ACD(in) getbit(in + 29, 1, 5)
+#define get_SR_ih_MF(in) getbit(in + 29, 1, 4)
+#define get_SR_ih_RIF(in) getbit(in + 29, 1, 2)
+#define get_SR_ih_ID(in) getbit(in + 29, 1, 1)
+#define get_SR_ih_DE(in) getbit(in + 29, 1, 0)
#define get_SR_ih_skew_angle(in) getnbyte(in + 30, 2)
#define get_SR_ih_ia_level(in) in[32]
#define get_SR_ih_ia(in) getnbyte(in + 33, 60)