[sane-devel] New release of the alpha version of hp5400 SANE backend

Martijn van Oosterhout kleptog at svana.org
Wed Mar 5 00:43:03 GMT 2003


On Tue, Mar 04, 2003 at 07:23:06PM +0100, Thomas Soumarmon wrote:
> > Problems with scrambled images could be caused by an overflow of the
> > internal data buffer (at least that's what I found with niash12/14/19
> > chips). In that case, you should be able to correlate this to backtracking
> > (quickly moving back and forth of the lamp).
> > Do the scrambled images also occur if you scan only a narrow vertical
> > strip?
> 
> At first I thought you would be right but even with a narrow vertival strip, 
> most pixels are "absent". I'll send you on a separate mail a tiny part of the 
> vertical strip. It shows colored vertical lines (red and green).
> It might be related to the query sent to the scanner. We have to check if all 
> the flags are correct.

I need to do some scans in windows at higher resolutions to see if any other
flags get turned on. Unfortunatly I havn't found a way to trap *all* the
data going over the USB link.

My theory on the colour corruption is one of two things:

1. Some kind of internal buffer length. In other words, when the line length
exceeds a certain amount it breaks into multiple blocks per line.

2. Since the intrinsic resolution of the scanner is only 300dpi, for
everything higher it needs to move the head from side to side (I don't know
if this is true, but it makes an odd sound at higher res). So this means
that if it's sending data back in order that instead of the normal:

Red   (row x)
Green (row x+k)
Blue  (row x+2k)

that instead it's sending:

Red   (row x, pixels 0,8,16,24,...)
Green (row x+k, pixels 0,8,16,24,...)
Blue  (row x+2k, pixels 0,8,16,24,...)
Red   (row x, pixels 1,9,17,25,...)
Green (row x+k, pixels 1,9,17,25,...)
Blue  (row x+2k, pixels 1,9,17,25,...)

etc

If this is true then it's going to *very* interesting to sort that out.

Does this have any precedent or am I making this up?
-- 
Martijn van Oosterhout   <kleptog at svana.org>   http://svana.org/kleptog/
> Support bacteria! They're the only culture some people have.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20030305/142cb54c/attachment.sig>


More information about the sane-devel mailing list