[sane-devel] genesys backend

Pierre Willenbrock pierre at pirsoft.dnsalias.org
Mon Sep 12 15:59:18 UTC 2005


Hi

While updating the gl841 patch for my website i noticed a small error
introduced while preparing the conversion patch.

Stéphane VOLTZ schrieb:
> 	Hello
> 
> 	I got time to test, and have it work at 75 and 150 dpi. This let me time scan 
> with both methods: got exactly the same time on my 850MHz Duron. Better, the 
> old function produced a slight bakctracking at the beginning of the scan, 
> with the new function, it's now gone. So I checked it in.
That was a small fix elsewhere. After detecting the slider is at begin
of scanning area there was a wait of 500ms(iirc), before checking if
there is data available. In 500ms the scanner fills its internal buffer,
and backtracks.
I can't imagine that the scanner would report more data to be available
than there actually is, so the slider position check may go away too.

> 	600 dpi scan failed, so the new data reading function needs some fixes, but 
> can be done later.
The function should consume the exact amount of data given in
dev->read_bytes_left. I'm sorry to be not very helpful with that problem.

Regards,
  Pierre
-------------- next part --------------
Index: genesys/genesys.c
===================================================================
RCS file: /cvsroot/sane/experimental/genesys/genesys.c,v
retrieving revision 1.34
diff -u -r1.34 genesys.c
--- genesys/genesys.c	11 Sep 2005 18:47:31 -0000	1.34
+++ genesys/genesys.c	12 Sep 2005 15:34:07 -0000
@@ -3601,7 +3601,7 @@
 		      break;
 	      }
 	  } else {
-#if WORDS_BIGENDIAN
+#ifdef WORDS_BIGENDIAN
 	      if (depth == 16) {
 		  status = genesys_reorder_components_endian_16(
 		      work_buffer_src, work_buffer_dst,


More information about the sane-devel mailing list