sane-project-website/old-archive/2001-04/0119.html

179 wiersze
9.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: [snapscan] High resolution scanning</TITLE>
<META NAME="Author" CONTENT="Sebastien Sable (Sebastien.Sable@snv.jussieu.fr)">
<META NAME="Subject" CONTENT="Re: [snapscan] High resolution scanning">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: [snapscan] High resolution scanning</H1>
<!-- received="Wed Apr 11 02:57:56 2001" -->
<!-- isoreceived="20010411095756" -->
<!-- sent="11 Apr 2001 11:44:59 +0200" -->
<!-- isosent="20010411094459" -->
<!-- name="Sebastien Sable" -->
<!-- email="Sebastien.Sable@snv.jussieu.fr" -->
<!-- subject="Re: [snapscan] High resolution scanning" -->
<!-- id="87lmp7u5wk.fsf@incubus.snv.jussieu.fr" -->
<!-- inreplyto="01041023255400.17340@oliverspc" -->
<STRONG>From:</STRONG> Sebastien Sable (<A HREF="mailto:Sebastien.Sable@snv.jussieu.fr?Subject=Re:%20[snapscan]%20High%20resolution%20scanning&In-Reply-To=&lt;87lmp7u5wk.fsf@incubus.snv.jussieu.fr&gt;"><EM>Sebastien.Sable@snv.jussieu.fr</EM></A>)<BR>
<STRONG>Date:</STRONG> Wed Apr 11 2001 - 02:44:59 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0120.html">Oliver Schwartz: "Re: [snapscan] High resolution scanning"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0118.html">Oliver Schwartz: "Re: [snapscan] sane/xscanimage transparency support"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0112.html">Oliver Schwartz: "[snapscan] High resolution scanning"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0120.html">Oliver Schwartz: "Re: [snapscan] High resolution scanning"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#119">[ date ]</A>
<A HREF="index.html#119">[ thread ]</A>
<A HREF="subject.html#119">[ subject ]</A>
<A HREF="author.html#119">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Oliver Schwartz &lt;<A HREF="mailto:Oliver.Schwartz@gmx.de?Subject=Re:%20[snapscan]%20High%20resolution%20scanning&In-Reply-To=&lt;87lmp7u5wk.fsf@incubus.snv.jussieu.fr&gt;">Oliver.Schwartz@gmx.de</A>&gt; writes:
<BR>
<P><EM>&gt; 1) x-resolution can only be increased up to the optical resolution. It's
</EM><BR>
<EM>&gt; possible to request higher resolution from the scanner, but it will only
</EM><BR>
<EM>&gt; return the image data with maximum resolution padded with junk. On my
</EM><BR>
<EM>&gt; scanner, which has an optical resolution of 600dpi, this means that for a
</EM><BR>
<EM>&gt; scan in 1200 dpi I get the scanned data on the left half of the image and
</EM><BR>
<EM>&gt; junk in the right half of the image. However, it's possible that there are
</EM><BR>
<EM>&gt; some scanners out there that do an interpolation in their firmware - anybody
</EM><BR>
<EM>&gt; seen this?
</EM><BR>
<P>I had the same thing with my Acer 300F when switching to 600dpi (that
<BR>
is half of the picture is junk) and the optical resolution is 300dpi.
<BR>
<P><EM>&gt; 2) Performing a scan on a wide scan area with high resolution will lead to a
</EM><BR>
<EM>&gt; hanging backend, because the size of one image line becomes larger than twice
</EM><BR>
<EM>&gt; the size of the SCSI buffer. Some computations inside the backend calculate
</EM><BR>
<EM>&gt; bufferSize/lineSize, which will evaluate to zero - the rest is left to your
</EM><BR>
<EM>&gt; imagination.
</EM><BR>
<P>I am not sure but I think this one has been corrected for some
<BR>
models. My scanner used to hang with higher resolutions and this code
<BR>
corrected this:
<BR>
<P>in snapscan-sources:
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;%s: Hung up because expected bytes is 0. Please report!&quot;,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;__FUNCTION__);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<BR>
<P>Maybe adding your model there would correct it. In this case, it seems
<BR>
that we should just remove the if test and put that as default
<BR>
behavior.
<BR>
<P>I will release an new version of snapscan today (if sourceforge works
<BR>
that is, it was broken for upload yesterday) with support for e20, e40
<BR>
and e50 and your patch for xsane crash.
<BR>
<P><PRE>
--
S<EFBFBD>bastien Sabl<62> &lt;<A HREF="mailto:Sebastien.Sable@snv.jussieu.fr?Subject=Re:%20[snapscan]%20High%20resolution%20scanning&In-Reply-To=&lt;87lmp7u5wk.fsf@incubus.snv.jussieu.fr&gt;">Sebastien.Sable@snv.jussieu.fr</A>&gt;
<A HREF="http://inova.snv.jussieu.fr/~sable/">http://inova.snv.jussieu.fr/~sable/</A>
<P>--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20[snapscan]%20High%20resolution%20scanning&In-Reply-To=&lt;87lmp7u5wk.fsf@incubus.snv.jussieu.fr&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0120.html">Oliver Schwartz: "Re: [snapscan] High resolution scanning"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0118.html">Oliver Schwartz: "Re: [snapscan] sane/xscanimage transparency support"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0112.html">Oliver Schwartz: "[snapscan] High resolution scanning"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0120.html">Oliver Schwartz: "Re: [snapscan] High resolution scanning"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#119">[ date ]</A>
<A HREF="index.html#119">[ thread ]</A>
<A HREF="subject.html#119">[ subject ]</A>
<A HREF="author.html#119">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Wed Apr 11 2001 - 02:58:47 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>